platform_build_soong/cmd
Dan Willemsen 051133ba54 Add --dumpvar[s]-mode to replace config.mk uses
build/soong/soong_ui.bash --dumpvars-mode \
    --vars="..." \
    --abs-vars="..." \
    --var-prefix="..." \
    --abs-var-prefix="..."

is similar to the previous:

  CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core \
  make -f build/core/config.mk dump-many-vars \
    DUMP_MANY_VARS="..." \
    DUMP_MANY_ABS_VARS="..." \
    DUMP_VAR_PREFIX="..." \
    DUMP_ABS_VAR_PREFIX="..."

and

  build/soong/soong_ui.bash --dumpvar-mode [--abs] VAR

is similar to the previous:

  CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core \
  make -f build/core/config.mk dumpvar-[abs-]-VAR

But uses soong_ui and ckati, so that we use a consistent make parser and
sandboxing configurations.

One major output difference between the pure make implementation and
this one is that report_config in Go is implemented using embedded
newlines in single quotes, while the make implementation uses `` with
embedded echo commands. This seems to work fine for both bash and zsh,
and report_config isn't meant to be machine-parsed anyways.

Test: build/soong/soong_ui.bash --dumpvar-mode report_config
Test: build/soong/soong_ui.bash --dumpvar-mode TARGET_DEVICE
Test: build/soong/soong_ui.bash --dumpvar-mode --abs PRODUCT_OUT
Test: build/soong/soong_ui.bash --dumpvar-mode --abs ALL_PRODUCTS
Test: build/soong/soong_ui.bash --dumpvars-mode --vars="report_config TARGET_DEVICE" --abs-vars="ALL_PRODUCTS"
Test: build/soong/soong_ui.bash --dumpvars-mode --vars=TARGET_DEVICE --abs-vars=PRODUCT_OUT --var-prefix=v_ --abs-var-prefix=a_
Change-Id: I0fbd0732bbf6fcfcd24084cf3c830a91a4b6bfc2
2017-10-17 12:57:41 -07:00
..
extract_linker Extract the linker and embed it into host bionic binaries 2017-09-20 15:34:33 -07:00
fileslist fileslist: hash the content of symlink, not the file it points to. 2017-03-29 13:43:41 -07:00
javac_wrapper Don't write output during tests 2017-04-20 11:24:07 -07:00
merge_zips Add -stripFile argument to merge_zips 2017-10-04 17:19:43 -07:00
multiproduct_kati Switch product configs from make to ckati 2017-10-12 18:11:08 -07:00
pom2mk Add pom2mk, a maven repo -> Android.mk tool 2017-06-07 23:25:16 -07:00
sbox Make absolute OUT_DIR work with sbox 2017-06-12 16:36:17 -07:00
soong_build Add integration testing infrastructure 2017-07-14 14:19:51 -07:00
soong_env Switch to blueprint's microfactory 2017-07-24 15:29:14 -07:00
soong_ui Add --dumpvar[s]-mode to replace config.mk uses 2017-10-17 12:57:41 -07:00
soong_zip Make some params in soong_zip explicit and/or exported 2017-10-12 12:51:52 -07:00
zip2zip Extract jar-sorting to be accessible to soong_zip 2017-08-24 14:43:35 -07:00