Bug 1318565 - Allow extensions with permission to read from tainted Canvas r=bz
[gecko.git] / build / automation-build.mk
blobe25f90c5d3aba017d7db98662db37325d89c56bd
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='"$(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 ($(host_os), cygwin)
36 AUTOMATION_PPARGS += -DIS_CYGWIN=1
37 endif
39 ifeq ($(ENABLE_TESTS), 1)
40 AUTOMATION_PPARGS += -DIS_TEST_BUILD=1
41 else
42 AUTOMATION_PPARGS += -DIS_TEST_BUILD=0
43 endif
45 ifeq ($(MOZ_DEBUG), 1)
46 AUTOMATION_PPARGS += -DIS_DEBUG_BUILD=1
47 else
48 AUTOMATION_PPARGS += -DIS_DEBUG_BUILD=0
49 endif
51 ifdef MOZ_CRASHREPORTER
52 AUTOMATION_PPARGS += -DCRASHREPORTER=1
53 else
54 AUTOMATION_PPARGS += -DCRASHREPORTER=0
55 endif
57 ifdef MOZ_ASAN
58 AUTOMATION_PPARGS += -DIS_ASAN=1
59 else
60 AUTOMATION_PPARGS += -DIS_ASAN=0
61 endif
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