platform_build_soong/scripts
Dan Willemsen b82471ad6d Add a unified status reporting UI
This adds a new status package that merges the running of "actions"
(ninja calls them edges) of multiple tools into one view of the current
state, and gives that to a number of different outputs.

For inputs:

Kati's output parser has been rewritten (and moved) to map onto the
StartAction/FinishAction API. A byproduct of this is that the build
servers should be able to extract errors from Kati better, since they
look like the errors that Ninja used to write.

Ninja is no longer directly connected to the terminal, but its output is
read via the protobuf frontend API, so it's just another tool whose
output becomes merged together.

multiproduct_kati loses its custom status routines, and uses the common
one instead.

For outputs:

The primary output is the ui/terminal.Status type, which along with
ui/terminal.Writer now controls everything about the terminal output.
Today, this doesn't really change any behaviors, but having all terminal
output going through here allows a more complicated (multi-line / full
window) status display in the future.

The tracer acts as an output of the status package, tracing all the
action start / finish events. This replaces reading the .ninja_log file,
so it now properly handles multiple output files from a single action.

A new rotated log file (out/error.log, or out/dist/logs/error.log) just
contains a description of all of the errors that happened during the
current build.

Another new compressed and rotated log file (out/verbose.log.gz, or
out/dist/logs/verbose.log.gz) contains the full verbose (showcommands)
log of every execution run by the build. Since this is now written on
every build, the showcommands argument is now ignored -- if you want to
get the commands run, look at the log file after the build.

Test: m
Test: <built-in tests>
Test: NINJA_ARGS="-t list" m
Test: check the build.trace.gz
Test: check the new log files
Change-Id: If1d8994890d43ef68f65aa10ddd8e6e06dc7013a
2018-07-12 14:15:31 -07:00
..
build-ndk-prebuilts.sh Flounder's been dead so long it smells. 2018-05-10 13:55:30 -07:00
copygcclib.sh Add license headers to all go and shell files 2017-11-17 23:05:26 +00:00
diff_build_graphs.sh Have diff_build_graphs.sh print the number of lines in the diff 2017-11-29 12:54:43 -08:00
gen-kotlin-build-file.sh Fix error in build when OUT_DIR_COMMON_BASE is used 2018-07-10 12:42:22 -07:00
jar-args.sh Add license headers to all go and shell files 2017-11-17 23:05:26 +00:00
jar-wrapper.sh Add default jar wrapper when wrapper property is not specified 2017-11-03 15:19:15 -07:00
jars-to-module-info-java.sh Add license headers to all go and shell files 2017-11-17 23:05:26 +00:00
manifest_fixer.py add --uses-library option to manifest_fixer.py 2018-06-20 12:03:09 +09:00
manifest_fixer_test.py add --uses-library option to manifest_fixer.py 2018-06-20 12:03:09 +09:00
microfactory.bash Add a unified status reporting UI 2018-07-12 14:15:31 -07:00
setup_go_workspace_for_soong.sh Make setup_go_workspace_for_soong work on Mac 2017-12-04 14:58:00 -08:00
strip.sh Use llvm-{objcopy,strip} when clang lld is used. 2018-06-07 16:04:14 -07:00
toc.sh Fix mac sdk build 2018-06-03 16:19:56 -07:00