2010-07-12 22:53:28 +08: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 06:15:47 +08:00
|
|
|
ifneq ($(filter /%,$(SOONG_HOST_OUT_EXECUTABLES)),)
|
|
|
|
ABP := $(SOONG_HOST_OUT_EXECUTABLES)
|
|
|
|
else
|
|
|
|
ABP := $(PWD)/$(SOONG_HOST_OUT_EXECUTABLES)
|
|
|
|
endif
|
2011-12-07 02:29:46 +08:00
|
|
|
ifneq ($(filter /%,$(HOST_OUT_EXECUTABLES)),)
|
2016-05-28 06:15:47 +08:00
|
|
|
ABP := $(ABP):$(HOST_OUT_EXECUTABLES)
|
2011-12-07 02:29:46 +08:00
|
|
|
else
|
2016-05-28 06:15:47 +08:00
|
|
|
ABP := $(ABP):$(PWD)/$(HOST_OUT_EXECUTABLES)
|
2011-12-07 02:29:46 +08:00
|
|
|
endif
|
2010-07-12 22:53:28 +08:00
|
|
|
|
|
|
|
ANDROID_BUILD_PATHS := $(ABP)
|
|
|
|
ANDROID_PREBUILTS := prebuilt/$(HOST_PREBUILT_TAG)
|
2012-03-30 11:45:50 +08:00
|
|
|
ANDROID_GCC_PREBUILTS := prebuilts/gcc/$(HOST_PREBUILT_TAG)
|
2019-05-22 07:00:04 +08:00
|
|
|
ANDROID_CLANG_PREBUILTS := prebuilts/clang/host/$(HOST_PREBUILT_TAG)
|
2010-07-12 22:53:28 +08:00
|
|
|
|
2016-03-04 12:57:21 +08: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 16:30:14 +08:00
|
|
|
@$(foreach v, $(DUMP_MANY_VARS),\
|
2016-03-04 12:57:21 +08:00
|
|
|
echo "$(DUMP_VAR_PREFIX)$(v)='$($(v))'";)
|
|
|
|
|
|
|
|
endif # CALLED_FROM_SETUP
|