testing/gtest/Makefile.in

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testing/gtest/Makefile.in	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.7 +
     1.8 +# Avoid recursive make to avoid having to add files to the gtest/ subdirectory
     1.9 +# (which is third-party code), and to make the build faster.
    1.10 +
    1.11 +include $(topsrcdir)/config/rules.mk
    1.12 +
    1.13 +# Bug 1028035: Linking xul-gtest.dll takes too long, so we disable GTest on
    1.14 +# Windows PGO builds.
    1.15 +ifeq (1_WINNT,$(MOZ_PGO)_$(OS_ARCH))
    1.16 +SKIP_GTEST_DURING_MAKE_CHECK ?= 1
    1.17 +endif
    1.18 +
    1.19 +ifeq (browser,$(MOZ_BUILD_APP))
    1.20 +ifdef COMPILE_ENVIRONMENT
    1.21 +ifneq (1,$(SKIP_GTEST_DURING_MAKE_CHECK))
    1.22 +check gtest::
    1.23 +	$(MAKE) -C $(DEPTH)/toolkit/library gtestxul
    1.24 +ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
    1.25 +	$(MAKE) -C $(DEPTH)/browser/app repackage
    1.26 +endif
    1.27 +	$(PYTHON) $(topsrcdir)/testing/gtest/rungtests.py --xre-path=$(DIST)/bin --symbols-path=$(DIST)/crashreporter-symbols $(DIST)/bin/$(MOZ_APP_NAME)$(BIN_SUFFIX)
    1.28 +else
    1.29 +check gtest::
    1.30 +	echo GTest skipped during make check
    1.31 +endif
    1.32 +endif
    1.33 +endif

mercurial