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
12 ifeq (1_WINNT
,$(MOZ_PGO
)_
$(OS_ARCH
))
13 SKIP_GTEST_DURING_MAKE_CHECK ?
= 1
16 ifeq (browser
,$(MOZ_BUILD_APP
))
17 ifdef COMPILE_ENVIRONMENT
19 $(MAKE
) -C
$(DEPTH
)/toolkit
/library gtestxul
20 ifeq (cocoa
,$(MOZ_WIDGET_TOOLKIT
))
21 $(MAKE
) -C
$(DEPTH
)/browser
/app repackage
23 ifneq (1,$(SKIP_GTEST_DURING_MAKE_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
)
30 $(PYTHON
) $(topsrcdir
)/testing
/gtest
/rungtests.py
--xre-path
=$(DIST
)/bin
--symbols-path
=$(DIST
)/crashreporter-symbols
$(DIST
)/bin
/$(MOZ_APP_NAME
)$(BIN_SUFFIX
)
34 echo GTest skipped during make
check