Bumping manifests a=b2g-bump
[gecko.git] / testing / gtest / Makefile.in
blob7c123635fd140a07d72a36556824641830f9ce60
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 gtest::
19 $(MAKE) -C $(DEPTH)/toolkit/library gtestxul
20 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
21 $(MAKE) -C $(DEPTH)/browser/app repackage
22 endif
23 ifneq (1,$(SKIP_GTEST_DURING_MAKE_CHECK))
24 check::
25 $(MAKE) -C $(DEPTH)/toolkit/library gtestxul
26 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
27 $(MAKE) -C $(DEPTH)/browser/app repackage
28 $(PYTHON) $(topsrcdir)/testing/gtest/rungtests.py --xre-path=$(DIST)/$(MOZ_MACBUNDLE_NAME)/Contents/Resources --symbols-path=$(DIST)/crashreporter-symbols $(DIST)/$(MOZ_MACBUNDLE_NAME)/Contents/MacOS/$(MOZ_APP_NAME)$(BIN_SUFFIX)
29 else
30 $(PYTHON) $(topsrcdir)/testing/gtest/rungtests.py --xre-path=$(DIST)/bin --symbols-path=$(DIST)/crashreporter-symbols $(DIST)/bin/$(MOZ_APP_NAME)$(BIN_SUFFIX)
31 endif
32 else
33 check::
34 echo GTest skipped during make check
35 endif
36 endif
37 endif