2010-07-12 16:53:28 +02:00
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# the setpath shell function in envsetup.sh uses this to figure out
|
|
|
|
# what to add to the path given the config we have chosen.
|
|
|
|
ifeq ($(CALLED_FROM_SETUP),true)
|
|
|
|
|
2016-05-28 00:15:47 +02:00
|
|
|
ifneq ($(filter /%,$(SOONG_HOST_OUT_EXECUTABLES)),)
|
|
|
|
ABP := $(SOONG_HOST_OUT_EXECUTABLES)
|
|
|
|
else
|
|
|
|
ABP := $(PWD)/$(SOONG_HOST_OUT_EXECUTABLES)
|
|
|
|
endif
|
2011-12-06 19:29:46 +01:00
|
|
|
ifneq ($(filter /%,$(HOST_OUT_EXECUTABLES)),)
|
2016-05-28 00:15:47 +02:00
|
|
|
ABP := $(ABP):$(HOST_OUT_EXECUTABLES)
|
2011-12-06 19:29:46 +01:00
|
|
|
else
|
2016-05-28 00:15:47 +02:00
|
|
|
ABP := $(ABP):$(PWD)/$(HOST_OUT_EXECUTABLES)
|
2011-12-06 19:29:46 +01:00
|
|
|
endif
|
2010-07-12 16:53:28 +02:00
|
|
|
|
|
|
|
ANDROID_BUILD_PATHS := $(ABP)
|
|
|
|
ANDROID_PREBUILTS := prebuilt/$(HOST_PREBUILT_TAG)
|
2012-03-30 05:45:50 +02:00
|
|
|
ANDROID_GCC_PREBUILTS := prebuilts/gcc/$(HOST_PREBUILT_TAG)
|
2019-05-22 01:00:04 +02:00
|
|
|
ANDROID_CLANG_PREBUILTS := prebuilts/clang/host/$(HOST_PREBUILT_TAG)
|
2010-07-12 16:53:28 +02:00
|
|
|
|
2016-03-04 05:57:21 +01:00
|
|
|
# Dump mulitple variables to "<var>=<value>" pairs, one per line.
|
|
|
|
# The output may be executed as bash script.
|
|
|
|
# Input variables:
|
|
|
|
# DUMP_MANY_VARS: the list of variable names.
|
|
|
|
# DUMP_VAR_PREFIX: an optional prefix of the variable name added to the output.
|
|
|
|
.PHONY: dump-many-vars
|
|
|
|
dump-many-vars :
|
2017-10-17 10:30:14 +02:00
|
|
|
@$(foreach v, $(DUMP_MANY_VARS),\
|
2019-05-31 05:59:50 +02:00
|
|
|
printf "%s='%s'\n" '$(DUMP_VAR_PREFIX)$(v)' '$($(v))';)
|
2016-03-04 05:57:21 +01:00
|
|
|
|
|
|
|
endif # CALLED_FROM_SETUP
|