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
= $(abspath
$(MOZILLA_DIR
))
12 _CERTS_SRC_DIR
= $(ABSOLUTE_TOPSRCDIR
)/build
/pgo
/certs
15 -DBROWSER_PATH
=$(browser_path
) \
16 -DXPC_BIN_PATH
='"$(DIST)/bin"' \
17 -DBIN_SUFFIX
='"$(BIN_SUFFIX)"' \
18 -DPROFILE_DIR
='"$(_PROFILE_DIR)"' \
19 -DCERTS_SRC_DIR
='"$(_CERTS_SRC_DIR)"' \
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 ($(host_os
), cygwin
)
36 AUTOMATION_PPARGS
+= -DIS_CYGWIN
=1
39 ifeq ($(ENABLE_TESTS
), 1)
40 AUTOMATION_PPARGS
+= -DIS_TEST_BUILD
=1
42 AUTOMATION_PPARGS
+= -DIS_TEST_BUILD
=0
45 ifeq ($(MOZ_DEBUG
), 1)
46 AUTOMATION_PPARGS
+= -DIS_DEBUG_BUILD
=1
48 AUTOMATION_PPARGS
+= -DIS_DEBUG_BUILD
=0
51 ifdef MOZ_CRASHREPORTER
52 AUTOMATION_PPARGS
+= -DCRASHREPORTER
=1
54 AUTOMATION_PPARGS
+= -DCRASHREPORTER
=0
58 AUTOMATION_PPARGS
+= -DIS_ASAN
=1
60 AUTOMATION_PPARGS
+= -DIS_ASAN
=0
63 automation.py
: $(MOZILLA_DIR
)/build
/automation.py.in
$(MOZILLA_DIR
)/build
/automation-build.mk
64 $(call py_action
,preprocessor
, \
65 $(AUTOMATION_PPARGS
) $(DEFINES
) $(ACDEFINES
) $< -o
$@
)
67 GARBAGE
+= automation.py automation.pyc