blob: 59efb048b8b629080e5a5efc550b37d860825352 [file] [log] [blame]
Bruce Beareb73dc662010-07-12 07:53:28 -07001# ---------------------------------------------------------------
2# the setpath shell function in envsetup.sh uses this to figure out
3# what to add to the path given the config we have chosen.
4ifeq ($(CALLED_FROM_SETUP),true)
5
Dan Willemsen60d9c672016-05-27 15:15:47 -07006ifneq ($(filter /%,$(SOONG_HOST_OUT_EXECUTABLES)),)
7ABP := $(SOONG_HOST_OUT_EXECUTABLES)
Jean-Baptiste Queruffe03c92011-12-06 10:29:46 -08008else
Dan Willemsen60d9c672016-05-27 15:15:47 -07009ABP := $(PWD)/$(SOONG_HOST_OUT_EXECUTABLES)
10endif
11ifneq ($(filter /%,$(HOST_OUT_EXECUTABLES)),)
12ABP := $(ABP):$(HOST_OUT_EXECUTABLES)
13else
14ABP := $(ABP):$(PWD)/$(HOST_OUT_EXECUTABLES)
Jean-Baptiste Queruffe03c92011-12-06 10:29:46 -080015endif
Bruce Beareb73dc662010-07-12 07:53:28 -070016
Bruce Beareb73dc662010-07-12 07:53:28 -070017ANDROID_BUILD_PATHS := $(ABP)
18ANDROID_PREBUILTS := prebuilt/$(HOST_PREBUILT_TAG)
Jing Yuf5172c72012-03-29 20:45:50 -070019ANDROID_GCC_PREBUILTS := prebuilts/gcc/$(HOST_PREBUILT_TAG)
Bruce Beareb73dc662010-07-12 07:53:28 -070020
Ying Wang08800fd2016-03-03 20:57:21 -080021# Dump mulitple variables to "<var>=<value>" pairs, one per line.
22# The output may be executed as bash script.
23# Input variables:
24# DUMP_MANY_VARS: the list of variable names.
25# DUMP_VAR_PREFIX: an optional prefix of the variable name added to the output.
Ying Wang08800fd2016-03-03 20:57:21 -080026.PHONY: dump-many-vars
27dump-many-vars :
Dan Willemsen8cf5aa52017-10-17 01:30:14 -070028 @$(foreach v, $(DUMP_MANY_VARS),\
Ying Wang08800fd2016-03-03 20:57:21 -080029 echo "$(DUMP_VAR_PREFIX)$(v)='$($(v))'";)
Ying Wang08800fd2016-03-03 20:57:21 -080030
31endif # CALLED_FROM_SETUP