2009-02-12 16:49:53 +03:00
|
|
|
|
|
|
|
ifeq ($(USE_SHORT_LIBNAME), 1)
|
|
|
|
PROGRAM = $(MOZ_APP_NAME)$(BIN_SUFFIX)
|
|
|
|
else
|
|
|
|
PROGRAM = $(MOZ_APP_NAME)-bin$(BIN_SUFFIX)
|
|
|
|
endif
|
|
|
|
|
|
|
|
TARGET_DIST = $(TARGET_DEPTH)/dist
|
|
|
|
|
|
|
|
ifeq ($(MOZ_BUILD_APP),camino)
|
|
|
|
browser_path = \"$(TARGET_DIST)/Camino.app/Contents/MacOS/Camino\"
|
|
|
|
else
|
|
|
|
ifeq ($(OS_ARCH),Darwin)
|
|
|
|
ifdef MOZ_DEBUG
|
2009-02-12 18:21:35 +03:00
|
|
|
browser_path = \"$(TARGET_DIST)/$(MOZ_APP_DISPLAYNAME)Debug.app/Contents/MacOS/$(PROGRAM)\"
|
2009-02-12 16:49:53 +03:00
|
|
|
else
|
|
|
|
browser_path = \"$(TARGET_DIST)/$(MOZ_APP_DISPLAYNAME).app/Contents/MacOS/$(PROGRAM)\"
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
browser_path = \"$(TARGET_DIST)/bin/$(PROGRAM)\"
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
_PROFILE_DIR = $(TARGET_DEPTH)/_profile/pgo
|
2009-03-10 20:36:14 +03:00
|
|
|
_SYMBOLS_PATH = $(TARGET_DIST)/crashreporter-symbols
|
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-03-10 20:36:14 +03:00
|
|
|
-DSYMBOLS_PATH=\"$(_SYMBOLS_PATH)\" \
|
2009-08-11 02:52:29 +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-05-12 15:28:44 +04:00
|
|
|
$(CURDIR)/automationutils.py:
|
2009-07-17 12:25:41 +04:00
|
|
|
$(INSTALL) $(MOZILLA_DIR)/build/automationutils.py .
|
2009-05-11 23:54:39 +04:00
|
|
|
|
2009-07-17 12:25:41 +04:00
|
|
|
automation.py: $(MOZILLA_DIR)/build/automation.py.in $(MOZILLA_DIR)/build/automation-build.mk $(CURDIR)/automationutils.py
|
|
|
|
$(PYTHON) $(MOZILLA_DIR)/config/Preprocessor.py \
|
2009-02-12 16:49:53 +03:00
|
|
|
$(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $< > $@
|
2009-05-11 23:54:39 +04:00
|
|
|
|
2009-05-12 15:57:44 +04:00
|
|
|
GARBAGE += automation.py $(CURDIR)/automationutils.py
|