Bruce Beare | b73dc66 | 2010-07-12 07:53:28 -0700 | [diff] [blame] | 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. |
| 4 | ifeq ($(CALLED_FROM_SETUP),true) |
| 5 | |
Dan Willemsen | 60d9c67 | 2016-05-27 15:15:47 -0700 | [diff] [blame] | 6 | ifneq ($(filter /%,$(SOONG_HOST_OUT_EXECUTABLES)),) |
| 7 | ABP := $(SOONG_HOST_OUT_EXECUTABLES) |
Jean-Baptiste Queru | ffe03c9 | 2011-12-06 10:29:46 -0800 | [diff] [blame] | 8 | else |
Dan Willemsen | 60d9c67 | 2016-05-27 15:15:47 -0700 | [diff] [blame] | 9 | ABP := $(PWD)/$(SOONG_HOST_OUT_EXECUTABLES) |
| 10 | endif |
| 11 | ifneq ($(filter /%,$(HOST_OUT_EXECUTABLES)),) |
| 12 | ABP := $(ABP):$(HOST_OUT_EXECUTABLES) |
| 13 | else |
| 14 | ABP := $(ABP):$(PWD)/$(HOST_OUT_EXECUTABLES) |
Jean-Baptiste Queru | ffe03c9 | 2011-12-06 10:29:46 -0800 | [diff] [blame] | 15 | endif |
Bruce Beare | b73dc66 | 2010-07-12 07:53:28 -0700 | [diff] [blame] | 16 | |
Bruce Beare | b73dc66 | 2010-07-12 07:53:28 -0700 | [diff] [blame] | 17 | ANDROID_BUILD_PATHS := $(ABP) |
| 18 | ANDROID_PREBUILTS := prebuilt/$(HOST_PREBUILT_TAG) |
Jing Yu | f5172c7 | 2012-03-29 20:45:50 -0700 | [diff] [blame] | 19 | ANDROID_GCC_PREBUILTS := prebuilts/gcc/$(HOST_PREBUILT_TAG) |
Yi Kong | dfd00b1 | 2019-05-21 16:00:04 -0700 | [diff] [blame^] | 20 | ANDROID_CLANG_PREBUILTS := prebuilts/clang/host/$(HOST_PREBUILT_TAG) |
Bruce Beare | b73dc66 | 2010-07-12 07:53:28 -0700 | [diff] [blame] | 21 | |
Ying Wang | 08800fd | 2016-03-03 20:57:21 -0800 | [diff] [blame] | 22 | # Dump mulitple variables to "<var>=<value>" pairs, one per line. |
| 23 | # The output may be executed as bash script. |
| 24 | # Input variables: |
| 25 | # DUMP_MANY_VARS: the list of variable names. |
| 26 | # DUMP_VAR_PREFIX: an optional prefix of the variable name added to the output. |
Ying Wang | 08800fd | 2016-03-03 20:57:21 -0800 | [diff] [blame] | 27 | .PHONY: dump-many-vars |
| 28 | dump-many-vars : |
Dan Willemsen | 8cf5aa5 | 2017-10-17 01:30:14 -0700 | [diff] [blame] | 29 | @$(foreach v, $(DUMP_MANY_VARS),\ |
Ying Wang | 08800fd | 2016-03-03 20:57:21 -0800 | [diff] [blame] | 30 | echo "$(DUMP_VAR_PREFIX)$(v)='$($(v))'";) |
Ying Wang | 08800fd | 2016-03-03 20:57:21 -0800 | [diff] [blame] | 31 | |
| 32 | endif # CALLED_FROM_SETUP |