1# --------------------------------------------------------------- 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 6ifneq ($(filter /%,$(SOONG_HOST_OUT_EXECUTABLES)),) 7ABP := $(SOONG_HOST_OUT_EXECUTABLES) 8else 9ABP := $(PWD)/$(SOONG_HOST_OUT_EXECUTABLES) 10endif 11ifneq ($(filter /%,$(HOST_OUT_EXECUTABLES)),) 12ABP := $(ABP):$(HOST_OUT_EXECUTABLES) 13else 14ABP := $(ABP):$(PWD)/$(HOST_OUT_EXECUTABLES) 15endif 16 17ANDROID_BUILD_PATHS := $(ABP) 18ANDROID_PREBUILTS := prebuilt/$(HOST_PREBUILT_TAG) 19ANDROID_GCC_PREBUILTS := prebuilts/gcc/$(HOST_PREBUILT_TAG) 20 21# 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. 26.PHONY: dump-many-vars 27dump-many-vars : 28 @$(foreach v, $(DUMP_MANY_VARS),\ 29 echo "$(DUMP_VAR_PREFIX)$(v)='$($(v))'";) 30 31endif # CALLED_FROM_SETUP 32