1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/config/makefiles/functions.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +# 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +# 1.10 +# functions.mk 1.11 +# 1.12 +# Defines functions that are needed by various Makefiles throughout the build 1.13 +# system, which are needed before config.mk can be included. 1.14 +# 1.15 + 1.16 +# Define an include-at-most-once flag 1.17 +ifdef INCLUDED_FUNCTIONS_MK 1.18 +$(error Do not include functions.mk twice!) 1.19 +endif 1.20 +INCLUDED_FUNCTIONS_MK = 1 1.21 + 1.22 +core_abspath = $(error core_abspath is unsupported, use $$(abspath) instead) 1.23 +core_realpath = $(error core_realpath is unsupported) 1.24 + 1.25 +core_winabspath = $(error core_winabspath is unsupported) 1.26 + 1.27 +# Run a named Python build action. The first argument is the name of the build 1.28 +# action. The second argument are the arguments to pass to the action (space 1.29 +# delimited arguments). e.g. 1.30 +# 1.31 +# libs:: 1.32 +# $(call py_action,purge_manifests,_build_manifests/purge/foo.manifest) 1.33 +ifdef .PYMAKE 1.34 +py_action = %mozbuild.action.$(1) main $(2) 1.35 +else 1.36 +py_action = $(PYTHON) -m mozbuild.action.$(1) $(2) 1.37 +endif