build/automation-build.mk
author Philip Jägenstedt <philip@foolip.org>
Mon, 09 Apr 2018 14:42:02 +0000
changeset 413474 3582e94198299a6c64414d17a79d9b6343fd1849
parent 272886 a1ded8c2c798947ff3dc110e727df7eea5bb1f8b
child 416490 d6ab3049b56061284e9e0e10410588766c7245d9
permissions -rw-r--r--
Bug 1444948 [wpt PR 9977] - Remove the rest of Sauce support for stability runs (including JWT), a=testonly Automatic update from web-platform-testsRemove the rest of Sauce support for stability runs (including JWT) (#9977) Fixes https://github.com/w3c/web-platform-tests/issues/9903. wpt-commits: 18ce941a0840daaa8a17fbe54449c6acc092b442 wpt-pr: 9977 wpt-commits: 18ce941a0840daaa8a17fbe54449c6acc092b442 wpt-pr: 9977

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

include $(MOZILLA_DIR)/build/binary-location.mk

browser_path := '"$(browser_path)"'

_PROFILE_DIR = $(TARGET_DEPTH)/_profile/pgo

ABSOLUTE_TOPSRCDIR = $(abspath $(MOZILLA_DIR))
_CERTS_SRC_DIR = $(ABSOLUTE_TOPSRCDIR)/build/pgo/certs

AUTOMATION_PPARGS = 	\
			-DBROWSER_PATH=$(browser_path) \
			-DXPC_BIN_PATH='"$(DIST)/bin"' \
			-DBIN_SUFFIX='"$(BIN_SUFFIX)"' \
			-DPROFILE_DIR='"$(_PROFILE_DIR)"' \
			-DCERTS_SRC_DIR='"$(_CERTS_SRC_DIR)"' \
			-DPERL='"$(PERL)"' \
			$(NULL)

ifeq ($(OS_ARCH),Darwin)
AUTOMATION_PPARGS += -DIS_MAC=1
else
AUTOMATION_PPARGS += -DIS_MAC=0
endif

ifeq ($(OS_ARCH),Linux)
AUTOMATION_PPARGS += -DIS_LINUX=1
else
AUTOMATION_PPARGS += -DIS_LINUX=0
endif

ifeq ($(host_os), cygwin)
AUTOMATION_PPARGS += -DIS_CYGWIN=1
endif

ifeq ($(ENABLE_TESTS), 1)
AUTOMATION_PPARGS += -DIS_TEST_BUILD=1
else
AUTOMATION_PPARGS += -DIS_TEST_BUILD=0
endif

ifeq ($(MOZ_DEBUG), 1)
AUTOMATION_PPARGS += -DIS_DEBUG_BUILD=1
else
AUTOMATION_PPARGS += -DIS_DEBUG_BUILD=0
endif

ifdef MOZ_CRASHREPORTER
AUTOMATION_PPARGS += -DCRASHREPORTER=1
else
AUTOMATION_PPARGS += -DCRASHREPORTER=0
endif

ifdef MOZ_ASAN
AUTOMATION_PPARGS += -DIS_ASAN=1
else
AUTOMATION_PPARGS += -DIS_ASAN=0
endif

automation.py: $(MOZILLA_DIR)/build/automation.py.in $(MOZILLA_DIR)/build/automation-build.mk
	$(call py_action,preprocessor, \
	$(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $< -o $@)

GARBAGE += automation.py automation.pyc