platform_build_soong/cmd
Sasha Smundak c0c9ef9964 Provide an option to reduce build's verbosity.
If ANDROID_QUIET_BUILD environment variable is set to '1', do not show 20
lines of the environment variables. In addition, for the failing step show
only the step name and output, omitting the command proper (the verbose log
as well as error.log still contains it).
If build succeeds, the output of the build itself consists of a single
line:
```
> m androidmk
[100% NN/NN] <last command>
```

When it fails, the output does not contain sometimes very long command
line:
```
> m androidmk
[ 97% NN/MM] test androidmk
FAILED: <step>
--- FAIL: TestEndToEnd (0.01s)
    androidmk_test.go:1025: failed testcase 'prebuilt_etc_TARGET_OUT_ETC'
        input:
        include $(CLEAR_VARS)
        LOCAL_MODULE := etc.test1
        LOCAL_MODULE_CLASS := ETC
        LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/foo/bar
        include $(BUILD_PREBUILT)

        expected:
        prebuilt_etc {
            name: "etc.test1",
            filename: "foo/bar",
        }

        got:
        prebuilt_etc {
            name: "etc.test1",
            filename: "foo/bar",

        }

FAIL
17:50:53 ninja failed with: exit status 1
```
[The related change in build/make/envsetup.sh suppresses timing display
when the same variable is set.]

Change-Id: I4d3c72457de031ff58a324c2fe98f4c1d10f8239
Test: treehugger
2019-02-07 12:21:45 -08:00
..
dep_fixer Fix lint errors caught by go test 2018-07-16 15:24:43 -07:00
extract_jar_packages Regenerate R.java files from LOCAL_STATIC_ANDROID_LIBRARIES 2018-05-02 13:11:01 -07:00
extract_linker Rework how linux_bionic is built with LLD 2018-10-22 15:46:03 -07:00
fileslist fileslist: hash the content of symlink, not the file it points to. 2017-03-29 13:43:41 -07:00
host_bionic_inject Fix the host bionic linker check; add tests 2018-11-12 22:29:44 -08:00
javac_wrapper Use SoongJavacWrapper for javadoc 2018-10-02 16:45:37 -07:00
merge_zips Fix par file zip offsets 2018-12-03 15:55:15 -08:00
multiproduct_kati Provide an option to reduce build's verbosity. 2019-02-07 12:21:45 -08:00
path_interposer Fix lint errors caught by go test 2018-07-16 15:24:43 -07:00
pom2bp pom2bp: clean up templates 2018-08-30 11:18:50 -07:00
pom2mk Add pom2mk -exclude 2018-04-23 16:16:52 -07:00
sbox Use __SBOX_OUT_DIR__ in sbox output file list 2018-02-21 14:55:34 -08:00
soong_build Use Config/DeviceConfig functions to access ProductVariables 2018-04-11 01:45:14 +00:00
soong_env Switch to blueprint's microfactory 2017-07-24 15:29:14 -07:00
soong_ui Provide an option to reduce build's verbosity. 2019-02-07 12:21:45 -08:00
zip2zip Keep directories when moving glob results 2018-11-01 20:34:44 +00:00
zipsync Fix format string issues 2018-03-28 15:54:52 -07:00