2012-05-22 13:45:24 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
# Avoid recursive make to avoid having to add files to the gtest/ subdirectory
|
|
|
|
# (which is third-party code), and to make the build faster.
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2014-06-08 19:00:58 -07:00
|
|
|
# Bug 1028035: Linking xul-gtest.dll takes too long, so we disable GTest on
|
|
|
|
# Windows PGO builds.
|
2014-06-25 15:59:24 -07:00
|
|
|
ifeq (1_WINNT,$(MOZ_PGO)_$(OS_ARCH))
|
2014-06-08 19:00:58 -07:00
|
|
|
SKIP_GTEST_DURING_MAKE_CHECK ?= 1
|
|
|
|
endif
|
|
|
|
|
2013-03-11 11:47:40 -07:00
|
|
|
ifeq (browser,$(MOZ_BUILD_APP))
|
2013-11-06 17:37:45 -08:00
|
|
|
ifdef COMPILE_ENVIRONMENT
|
2014-06-04 12:17:44 -07:00
|
|
|
gtest::
|
|
|
|
$(MAKE) -C $(DEPTH)/toolkit/library gtestxul
|
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
$(MAKE) -C $(DEPTH)/browser/app repackage
|
|
|
|
endif
|
2014-06-08 19:00:58 -07:00
|
|
|
ifneq (1,$(SKIP_GTEST_DURING_MAKE_CHECK))
|
2014-06-04 12:17:44 -07:00
|
|
|
check::
|
2013-03-11 11:47:40 -07:00
|
|
|
$(MAKE) -C $(DEPTH)/toolkit/library gtestxul
|
2013-11-07 18:42:22 -08:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
$(MAKE) -C $(DEPTH)/browser/app repackage
|
|
|
|
endif
|
2013-04-25 10:56:43 -07:00
|
|
|
$(PYTHON) $(topsrcdir)/testing/gtest/rungtests.py --xre-path=$(DIST)/bin --symbols-path=$(DIST)/crashreporter-symbols $(DIST)/bin/$(MOZ_APP_NAME)$(BIN_SUFFIX)
|
2014-06-08 19:00:58 -07:00
|
|
|
else
|
|
|
|
check::
|
|
|
|
echo GTest skipped during make check
|
2013-03-11 11:47:40 -07:00
|
|
|
endif
|
|
|
|
endif
|
2014-02-12 05:23:41 -08:00
|
|
|
endif
|