diff options
author | Colin Cross <ccross@android.com> | 2017-05-09 13:45:28 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2017-05-10 11:04:16 -0700 |
commit | 67a5c132c53ce0715f4d169fc26dd537294feaca (patch) | |
tree | 03b682110bcc16e74c5884a561df44c359c0b3ae /cc/ndk_library.go | |
parent | 570e18ffaa4cc389f28d42c4ce9d4d213e21be34 (diff) | |
download | build_soong-67a5c132c53ce0715f4d169fc26dd537294feaca.tar.gz build_soong-67a5c132c53ce0715f4d169fc26dd537294feaca.tar.bz2 build_soong-67a5c132c53ce0715f4d169fc26dd537294feaca.zip |
Prettify soong ninja build descriptions
Descriptions currently look like:
[ 0% 4/29328] cc out-soong/.intermediates/external/clang/lib/Sema/libclangSema/android_arm_armv7-a-neon_denver_static_core/obj/external/clang/lib/Sema/SemaCodeComplete.o
This is not very helpful - most of the characters are used to show the
output path, which contains useful information like target architecture,
but also contains most of the path to the source files twice, and less
useful information like the exact variant name used by soong.
Make the descriptions look like:
[ 0% 3/29329] //external/clang/lib/Sema:libclangSema clang++ SemaTemplateInstantiate.cpp
This is //path/to/module:modulename tool relative/path/to/source/file
Test: builds, looks pretty
Change-Id: I3087aa7d4eb1860ef6239d77407b8b35445616d7
Diffstat (limited to 'cc/ndk_library.go')
-rw-r--r-- | cc/ndk_library.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cc/ndk_library.go b/cc/ndk_library.go index 1bd63a98..ba3ec7d2 100644 --- a/cc/ndk_library.go +++ b/cc/ndk_library.go @@ -32,7 +32,6 @@ var ( blueprint.RuleParams{ Command: "$toolPath --arch $arch --api $apiLevel --api-map " + "$apiMap $vndk $in $out", - Description: "genStubSrc $out", CommandDeps: []string{"$toolPath"}, }, "arch", "apiLevel", "apiMap", "vndk") @@ -251,10 +250,11 @@ func compileStubLibrary(ctx ModuleContext, flags Flags, symbolFile, apiLevel, vn symbolFilePath := android.PathForModuleSrc(ctx, symbolFile) apiLevelsJson := android.GetApiLevelsJson(ctx) ctx.ModuleBuild(pctx, android.ModuleBuildParams{ - Rule: genStubSrc, - Outputs: []android.WritablePath{stubSrcPath, versionScriptPath}, - Input: symbolFilePath, - Implicits: []android.Path{apiLevelsJson}, + Rule: genStubSrc, + Description: "generate stubs " + symbolFilePath.Rel(), + Outputs: []android.WritablePath{stubSrcPath, versionScriptPath}, + Input: symbolFilePath, + Implicits: []android.Path{apiLevelsJson}, Args: map[string]string{ "arch": arch, "apiLevel": apiLevel, |