2010-12-10 12:11:09 +03:00
|
|
|
include $(MOZILLA_DIR)/build/binary-location.mk
|
2009-02-12 16:49:53 +03:00
|
|
|
|
2010-12-10 01:47:21 +03:00
|
|
|
browser_path := \"$(browser_path)\"
|
2009-02-12 16:49:53 +03:00
|
|
|
|
|
|
|
_PROFILE_DIR = $(TARGET_DEPTH)/_profile/pgo
|
2009-02-22 22:09:09 +03:00
|
|
|
|
2009-07-17 12:25:41 +04:00
|
|
|
ABSOLUTE_TOPSRCDIR = $(call core_abspath,$(MOZILLA_DIR))
|
2009-02-22 22:09:09 +03:00
|
|
|
_CERTS_SRC_DIR = $(ABSOLUTE_TOPSRCDIR)/build/pgo/certs
|
2009-02-12 16:49:53 +03:00
|
|
|
|
|
|
|
AUTOMATION_PPARGS = \
|
|
|
|
-DBROWSER_PATH=$(browser_path) \
|
|
|
|
-DXPC_BIN_PATH=\"$(LIBXUL_DIST)/bin\" \
|
|
|
|
-DBIN_SUFFIX=\"$(BIN_SUFFIX)\" \
|
|
|
|
-DPROFILE_DIR=\"$(_PROFILE_DIR)\" \
|
|
|
|
-DCERTS_SRC_DIR=\"$(_CERTS_SRC_DIR)\" \
|
2009-09-22 18:13:27 +04:00
|
|
|
-DPERL="\"$(PERL)\"" \
|
2009-02-12 16:49:53 +03:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),Darwin)
|
|
|
|
AUTOMATION_PPARGS += -DIS_MAC=1
|
|
|
|
else
|
|
|
|
AUTOMATION_PPARGS += -DIS_MAC=0
|
|
|
|
endif
|
|
|
|
|
2009-08-11 02:52:29 +04:00
|
|
|
ifeq ($(OS_ARCH),Linux)
|
|
|
|
AUTOMATION_PPARGS += -DIS_LINUX=1
|
|
|
|
else
|
|
|
|
AUTOMATION_PPARGS += -DIS_LINUX=0
|
|
|
|
endif
|
|
|
|
|
2009-02-12 16:49:53 +03:00
|
|
|
ifeq ($(MOZ_BUILD_APP),camino)
|
|
|
|
AUTOMATION_PPARGS += -DIS_CAMINO=1
|
|
|
|
else
|
|
|
|
AUTOMATION_PPARGS += -DIS_CAMINO=0
|
|
|
|
endif
|
|
|
|
|
|
|
|
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-14 00:56:24 +04:00
|
|
|
ifdef MOZ_CRASHREPORTER
|
|
|
|
AUTOMATION_PPARGS += -DCRASHREPORTER=1
|
|
|
|
else
|
|
|
|
AUTOMATION_PPARGS += -DCRASHREPORTER=0
|
|
|
|
endif
|
|
|
|
|
2010-01-12 02:55:51 +03:00
|
|
|
automation.py: $(MOZILLA_DIR)/build/automation.py.in $(MOZILLA_DIR)/build/automation-build.mk
|
2009-07-17 12:25:41 +04:00
|
|
|
$(PYTHON) $(MOZILLA_DIR)/config/Preprocessor.py \
|
2009-02-12 16:49:53 +03:00
|
|
|
$(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $< > $@
|
2010-03-05 16:41:53 +03:00
|
|
|
|
2010-04-19 12:17:51 +04:00
|
|
|
GARBAGE += automation.py automation.pyc
|