2012-05-21 11:12:37 +00: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/.
|
|
|
|
|
2010-12-10 09:11:09 +00:00
|
|
|
include $(MOZILLA_DIR)/build/binary-location.mk
|
2009-02-12 13:49:53 +00:00
|
|
|
|
2013-12-02 21:34:21 +00:00
|
|
|
browser_path := '"$(browser_path)"'
|
2009-02-12 13:49:53 +00:00
|
|
|
|
|
|
|
_PROFILE_DIR = $(TARGET_DEPTH)/_profile/pgo
|
2009-02-22 19:09:09 +00:00
|
|
|
|
2013-10-16 22:55:16 +00:00
|
|
|
ABSOLUTE_TOPSRCDIR = $(abspath $(MOZILLA_DIR))
|
2009-02-22 19:09:09 +00:00
|
|
|
_CERTS_SRC_DIR = $(ABSOLUTE_TOPSRCDIR)/build/pgo/certs
|
2009-02-12 13:49:53 +00:00
|
|
|
|
|
|
|
AUTOMATION_PPARGS = \
|
|
|
|
-DBROWSER_PATH=$(browser_path) \
|
2015-11-13 09:23:24 +00:00
|
|
|
-DXPC_BIN_PATH='"$(DIST)/bin"' \
|
2013-12-02 21:34:21 +00:00
|
|
|
-DBIN_SUFFIX='"$(BIN_SUFFIX)"' \
|
|
|
|
-DPROFILE_DIR='"$(_PROFILE_DIR)"' \
|
|
|
|
-DCERTS_SRC_DIR='"$(_CERTS_SRC_DIR)"' \
|
|
|
|
-DPERL='"$(PERL)"' \
|
2009-02-12 13:49:53 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),Darwin)
|
|
|
|
AUTOMATION_PPARGS += -DIS_MAC=1
|
|
|
|
else
|
|
|
|
AUTOMATION_PPARGS += -DIS_MAC=0
|
|
|
|
endif
|
|
|
|
|
2009-08-10 22:52:29 +00:00
|
|
|
ifeq ($(OS_ARCH),Linux)
|
|
|
|
AUTOMATION_PPARGS += -DIS_LINUX=1
|
|
|
|
else
|
|
|
|
AUTOMATION_PPARGS += -DIS_LINUX=0
|
|
|
|
endif
|
|
|
|
|
2009-02-12 13:49:53 +00:00
|
|
|
ifeq ($(host_os), cygwin)
|
|
|
|
AUTOMATION_PPARGS += -DIS_CYGWIN=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(ENABLE_TESTS), 1)
|
|
|
|
AUTOMATION_PPARGS += -DIS_TEST_BUILD=1
|
|
|
|
else
|
|
|
|
AUTOMATION_PPARGS += -DIS_TEST_BUILD=0
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_DEBUG), 1)
|
|
|
|
AUTOMATION_PPARGS += -DIS_DEBUG_BUILD=1
|
|
|
|
else
|
|
|
|
AUTOMATION_PPARGS += -DIS_DEBUG_BUILD=0
|
|
|
|
endif
|
|
|
|
|
2009-10-13 20:56:24 +00:00
|
|
|
ifdef MOZ_CRASHREPORTER
|
|
|
|
AUTOMATION_PPARGS += -DCRASHREPORTER=1
|
|
|
|
else
|
|
|
|
AUTOMATION_PPARGS += -DCRASHREPORTER=0
|
|
|
|
endif
|
|
|
|
|
2013-01-22 15:48:02 +00:00
|
|
|
ifdef MOZ_ASAN
|
|
|
|
AUTOMATION_PPARGS += -DIS_ASAN=1
|
|
|
|
else
|
|
|
|
AUTOMATION_PPARGS += -DIS_ASAN=0
|
|
|
|
endif
|
|
|
|
|
2010-01-11 23:55:51 +00:00
|
|
|
automation.py: $(MOZILLA_DIR)/build/automation.py.in $(MOZILLA_DIR)/build/automation-build.mk
|
2013-11-09 01:35:44 +00:00
|
|
|
$(call py_action,preprocessor, \
|
|
|
|
$(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $< -o $@)
|
2010-03-05 13:41:53 +00:00
|
|
|
|
2010-04-19 08:17:51 +00:00
|
|
|
GARBAGE += automation.py automation.pyc
|