Bug 1022167 - Ensure fence delivery of thebes layer in b2g process r=nical
[gecko.git] / build / automation-build.mk
blob3bbc0a7cede254cdaea110f2cd182e8c01ac89f3
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
14 AUTOMATION_PPARGS = \
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)"' \
21 $(NULL)
23 ifeq ($(OS_ARCH),Darwin)
24 AUTOMATION_PPARGS += -DIS_MAC=1
25 else
26 AUTOMATION_PPARGS += -DIS_MAC=0
27 endif
29 ifeq ($(OS_ARCH),Linux)
30 AUTOMATION_PPARGS += -DIS_LINUX=1
31 else
32 AUTOMATION_PPARGS += -DIS_LINUX=0
33 endif
35 ifeq ($(MOZ_BUILD_APP),camino)
36 AUTOMATION_PPARGS += -DIS_CAMINO=1
37 else
38 AUTOMATION_PPARGS += -DIS_CAMINO=0
39 endif
41 ifeq ($(host_os), cygwin)
42 AUTOMATION_PPARGS += -DIS_CYGWIN=1
43 endif
45 ifeq ($(ENABLE_TESTS), 1)
46 AUTOMATION_PPARGS += -DIS_TEST_BUILD=1
47 else
48 AUTOMATION_PPARGS += -DIS_TEST_BUILD=0
49 endif
51 ifeq ($(MOZ_DEBUG), 1)
52 AUTOMATION_PPARGS += -DIS_DEBUG_BUILD=1
53 else
54 AUTOMATION_PPARGS += -DIS_DEBUG_BUILD=0
55 endif
57 ifdef MOZ_CRASHREPORTER
58 AUTOMATION_PPARGS += -DCRASHREPORTER=1
59 else
60 AUTOMATION_PPARGS += -DCRASHREPORTER=0
61 endif
63 ifdef MOZ_ASAN
64 AUTOMATION_PPARGS += -DIS_ASAN=1
65 else
66 AUTOMATION_PPARGS += -DIS_ASAN=0
67 endif
69 automation.py: $(MOZILLA_DIR)/build/automation.py.in $(MOZILLA_DIR)/build/automation-build.mk
70 $(call py_action,preprocessor, \
71 $(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $< -o $@)
73 GARBAGE += automation.py automation.pyc