1 include $(MOZILLA_DIR
)/build
/binary-location.mk
3 browser_path
:= \"$(browser_path
)\"
5 _PROFILE_DIR
= $(TARGET_DEPTH
)/_profile
/pgo
7 ABSOLUTE_TOPSRCDIR
= $(call core_abspath
,$(MOZILLA_DIR
))
8 _CERTS_SRC_DIR
= $(ABSOLUTE_TOPSRCDIR
)/build
/pgo
/certs
11 -DBROWSER_PATH
=$(browser_path
) \
12 -DXPC_BIN_PATH
=\"$(LIBXUL_DIST
)/bin
\" \
13 -DBIN_SUFFIX
=\"$(BIN_SUFFIX
)\" \
14 -DPROFILE_DIR
=\"$(_PROFILE_DIR
)\" \
15 -DCERTS_SRC_DIR
=\"$(_CERTS_SRC_DIR
)\" \
16 -DPERL
="\"$(PERL)\"" \
19 ifeq ($(OS_ARCH
),Darwin
)
20 AUTOMATION_PPARGS
+= -DIS_MAC
=1
22 AUTOMATION_PPARGS
+= -DIS_MAC
=0
25 ifeq ($(OS_ARCH
),Linux
)
26 AUTOMATION_PPARGS
+= -DIS_LINUX
=1
28 AUTOMATION_PPARGS
+= -DIS_LINUX
=0
31 ifeq ($(MOZ_BUILD_APP
),camino
)
32 AUTOMATION_PPARGS
+= -DIS_CAMINO
=1
34 AUTOMATION_PPARGS
+= -DIS_CAMINO
=0
37 ifeq ($(host_os
), cygwin
)
38 AUTOMATION_PPARGS
+= -DIS_CYGWIN
=1
41 ifeq ($(ENABLE_TESTS
), 1)
42 AUTOMATION_PPARGS
+= -DIS_TEST_BUILD
=1
44 AUTOMATION_PPARGS
+= -DIS_TEST_BUILD
=0
47 ifeq ($(MOZ_DEBUG
), 1)
48 AUTOMATION_PPARGS
+= -DIS_DEBUG_BUILD
=1
50 AUTOMATION_PPARGS
+= -DIS_DEBUG_BUILD
=0
53 ifdef MOZ_CRASHREPORTER
54 AUTOMATION_PPARGS
+= -DCRASHREPORTER
=1
56 AUTOMATION_PPARGS
+= -DCRASHREPORTER
=0
59 automation.py
: $(MOZILLA_DIR
)/build
/automation.py.in
$(MOZILLA_DIR
)/build
/automation-build.mk
60 $(PYTHON
) $(MOZILLA_DIR
)/config
/Preprocessor.py \
61 $(AUTOMATION_PPARGS
) $(DEFINES
) $(ACDEFINES
) $< > $@
63 GARBAGE
+= automation.py automation.pyc