Bug 1832284 - Fix rooting hazard in JSObject::swap r=sfink
[gecko.git] / config / makefiles / functions.mk
blob93282c402965368d3272353abf4f319fbff79d3b
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 # functions.mk
9 # Defines functions that are needed by various Makefiles throughout the build
10 # system, which are needed before config.mk can be included.
13 # Define an include-at-most-once flag
14 ifdef INCLUDED_FUNCTIONS_MK
15 $(error Do not include functions.mk twice!)
16 endif
17 INCLUDED_FUNCTIONS_MK = 1
19 core_abspath = $(error core_abspath is unsupported, use $$(abspath) instead)
20 core_realpath = $(error core_realpath is unsupported)
22 core_winabspath = $(error core_winabspath is unsupported)
24 # Run a named Python build action. The first argument is the name of the build
25 # action. The second argument are the arguments to pass to the action (space
26 # delimited arguments). e.g.
28 # libs::
29 # $(call py_action,purge_manifests,_build_manifests/purge/foo.manifest)
30 py_action = $(PYTHON3) -m mozbuild.action.$(1) $(2)