github.com/westcoastroms/westcoastroms-build@v0.0.0-20190928114312-2350e5a73030/build/make/core/dumpvar.mk (about)

     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  
     6  ifneq ($(filter /%,$(SOONG_HOST_OUT_EXECUTABLES)),)
     7  ABP := $(SOONG_HOST_OUT_EXECUTABLES)
     8  else
     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)
    15  endif
    16  
    17  ANDROID_BUILD_PATHS := $(ABP)
    18  ANDROID_PREBUILTS := prebuilt/$(HOST_PREBUILT_TAG)
    19  ANDROID_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
    27  dump-many-vars :
    28  	@$(foreach v, $(DUMP_MANY_VARS),\
    29  	  echo "$(DUMP_VAR_PREFIX)$(v)='$($(v))'";)
    30  
    31  endif # CALLED_FROM_SETUP