1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 include $(MOZILLA_DIR
)/build
/binary-location.mk
7 browser_path
:= \"$(browser_path
)\"
9 _PROFILE_DIR
= $(TARGET_DEPTH
)/_profile
/pgo
11 ABSOLUTE_TOPSRCDIR
= $(call core_abspath
,$(MOZILLA_DIR
))
12 _CERTS_SRC_DIR
= $(ABSOLUTE_TOPSRCDIR
)/build
/pgo
/certs
15 -DBROWSER_PATH
=$(browser_path
) \
16 -DXPC_BIN_PATH
=\"$(LIBXUL_DIST
)/bin
\" \
17 -DBIN_SUFFIX
=\"$(BIN_SUFFIX
)\" \
18 -DPROFILE_DIR
=\"$(_PROFILE_DIR
)\" \
19 -DCERTS_SRC_DIR
=\"$(_CERTS_SRC_DIR
)\" \
20 -DPERL
="\"$(PERL)\"" \
23 ifeq ($(OS_ARCH
),Darwin
)
24 AUTOMATION_PPARGS
+= -DIS_MAC
=1
26 AUTOMATION_PPARGS
+= -DIS_MAC
=0
29 ifeq ($(OS_ARCH
),Linux
)
30 AUTOMATION_PPARGS
+= -DIS_LINUX
=1
32 AUTOMATION_PPARGS
+= -DIS_LINUX
=0
35 ifeq ($(MOZ_BUILD_APP
),camino
)
36 AUTOMATION_PPARGS
+= -DIS_CAMINO
=1
38 AUTOMATION_PPARGS
+= -DIS_CAMINO
=0
41 ifeq ($(host_os
), cygwin
)
42 AUTOMATION_PPARGS
+= -DIS_CYGWIN
=1
45 ifeq ($(ENABLE_TESTS
), 1)
46 AUTOMATION_PPARGS
+= -DIS_TEST_BUILD
=1
48 AUTOMATION_PPARGS
+= -DIS_TEST_BUILD
=0
51 ifeq ($(MOZ_DEBUG
), 1)
52 AUTOMATION_PPARGS
+= -DIS_DEBUG_BUILD
=1
54 AUTOMATION_PPARGS
+= -DIS_DEBUG_BUILD
=0
57 ifdef MOZ_CRASHREPORTER
58 AUTOMATION_PPARGS
+= -DCRASHREPORTER
=1
60 AUTOMATION_PPARGS
+= -DCRASHREPORTER
=0
64 AUTOMATION_PPARGS
+= -DIS_ASAN
=1
66 AUTOMATION_PPARGS
+= -DIS_ASAN
=0
69 automation.py
: $(MOZILLA_DIR
)/build
/automation.py.in
$(MOZILLA_DIR
)/build
/automation-build.mk
70 $(PYTHON
) $(MOZILLA_DIR
)/config
/Preprocessor.py \
71 $(AUTOMATION_PPARGS
) $(DEFINES
) $(ACDEFINES
) $< > $@
73 GARBAGE
+= automation.py automation.pyc