platform_build_soong/cc
Dan Willemsen 581341d4f2 Native Coverage support in Soong (gcov)
This is configured the same as make -- a global NATIVE_COVERAGE=true
flag to allow native coverage, then COVERAGE_PATHS=path1,path2,... to
turn it on for certain paths.

There are .gcnodir files exported to Make and saved in $OUT/coverage/...
files which are `ar` archives containing all of the compiler-produced
.gcno files for a particular executable / shared library.

Unlike the Make implementation, this only passes links the helper
library (automatically through --coverage) when one of the object files
or static libraries being used actually has coverage enabled.

Host support is currently disabled, since we set -nodefaultlibs, which
prevents libclang_rt.profile-*.a from being picked up automatically.

Bug: 32749731
Test: NATIVE_COVERAGE=true COVERAGE_PATHS=system/core/libcutils m -j libbacktrace libutils tombstoned
      $OUT/coverage/system/lib*/libcutils.gcnodir looks correct (self)
      $OUT/coverage/system/lib*/libbacktrace.gcnodir looks correct (static)
      $OUT/coverage/system/lib*/libutils.gcnodir doesn't exist (shared)
      $OUT/coverage/system/bin/tombstoned.gcnodir looks correct (executable)
Test: NATIVE_COVERAGE=true COVERAGE_PATHS=external/libcxxabi m -j libc++
      Confirm that $OUT/coverage/system/lib*/libc++.gcnodir looks correct (whole_static_libs)
Change-Id: I48aaa0ba8d76e50e9c2d1151421c0c6dc8ed79a9
2017-02-14 13:05:48 -08:00
..
config Add RenderScript toolchain information to soong. 2017-02-07 12:15:45 -08:00
androidmk.go Native Coverage support in Soong (gcov) 2017-02-14 13:05:48 -08:00
binary.go Native Coverage support in Soong (gcov) 2017-02-14 13:05:48 -08:00
builder.go Native Coverage support in Soong (gcov) 2017-02-14 13:05:48 -08:00
cc.go Native Coverage support in Soong (gcov) 2017-02-14 13:05:48 -08:00
cc_test.go Add support for building on Darwin hosts 2015-05-07 14:09:48 -07:00
check.go Add clang-tidy support 2016-10-31 16:21:01 -07:00
cmakelists.go Fix CMakeList generator CFlag bug 2017-02-07 09:43:02 -08:00
compiler.go Add support for CMakefile generation 2017-02-07 09:43:02 -08:00
coverage.go Native Coverage support in Soong (gcov) 2017-02-14 13:05:48 -08:00
gen.go Support aidl cpp generation 2016-12-05 15:49:40 -08:00
gen_stub_libs.py Support versioned=%d at the section level. 2017-01-03 14:27:41 -08:00
installer.go Install symlinks with same suffix and extension as installed file 2016-12-07 17:35:37 -08:00
library.go Native Coverage support in Soong (gcov) 2017-02-14 13:05:48 -08:00
linker.go Support explicit header-only libraries 2016-12-13 15:03:42 -08:00
makevars.go Add RenderScript toolchain information to soong. 2017-02-07 12:15:45 -08:00
ndk_headers.go Add a "license" property to ndk_headers. 2016-10-20 13:30:07 -07:00
ndk_library.go Allow `unversioned_until: "current"`. 2017-01-05 15:49:09 -08:00
ndk_prebuilt.go Pass DepsContext to dependency methods 2016-12-13 17:32:29 -08:00
ndk_sysroot.go Add a "license" property to ndk_headers. 2016-10-20 13:30:07 -07:00
object.go Pass DepsContext to dependency methods 2016-12-13 17:32:29 -08:00
prebuilt.go Remove boolean arguments from NewLibrary() 2016-12-13 14:50:51 -08:00
proto.go Add subdir to GenPath 2016-11-02 21:19:11 -07:00
pylintrc Don't warn for TODOish comments. 2016-08-01 14:36:22 -07:00
relocation_packer.go Add Relocation Packer support 2016-09-15 03:39:05 +00:00
sanitize.go Disble CFI for ARM32 processes. 2017-02-08 19:46:27 -08:00
stl.go Add libc++ and libc++_static aliases for SDK builds. 2017-01-25 16:47:31 -05:00
strip.go Separate cc.go 2016-07-29 15:17:58 -07:00
test.go Support data properties for test binaries 2017-02-02 16:23:30 -08:00
test_data_test.go Support data properties for test binaries 2017-02-02 16:23:30 -08:00
test_gen_stub_libs.py Support versioned=%d at the section level. 2017-01-03 14:27:41 -08:00
tidy.go Pass DepsContext to dependency methods 2016-12-13 17:32:29 -08:00
toolchain_library.go Pass DepsContext to dependency methods 2016-12-13 17:32:29 -08:00
util.go Native Coverage support in Soong (gcov) 2017-02-14 13:05:48 -08:00