Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 # Avoid recursive make to avoid having to add files to the gtest/ subdirectory
6 # (which is third-party code), and to make the build faster.
8 include $(topsrcdir)/config/rules.mk
10 # Bug 1028035: Linking xul-gtest.dll takes too long, so we disable GTest on
11 # Windows PGO builds.
12 ifeq (1_WINNT,$(MOZ_PGO)_$(OS_ARCH))
13 SKIP_GTEST_DURING_MAKE_CHECK ?= 1
14 endif
16 ifeq (browser,$(MOZ_BUILD_APP))
17 ifdef COMPILE_ENVIRONMENT
18 ifneq (1,$(SKIP_GTEST_DURING_MAKE_CHECK))
19 check gtest::
20 $(MAKE) -C $(DEPTH)/toolkit/library gtestxul
21 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
22 $(MAKE) -C $(DEPTH)/browser/app repackage
23 endif
24 $(PYTHON) $(topsrcdir)/testing/gtest/rungtests.py --xre-path=$(DIST)/bin --symbols-path=$(DIST)/crashreporter-symbols $(DIST)/bin/$(MOZ_APP_NAME)$(BIN_SUFFIX)
25 else
26 check gtest::
27 echo GTest skipped during make check
28 endif
29 endif
30 endif