OSDN Git Service

Support Soong native coverage
authorDan Willemsen <dwillemsen@google.com>
Fri, 10 Feb 2017 08:07:17 +0000 (00:07 -0800)
committerDan Willemsen <dwillemsen@google.com>
Fri, 10 Feb 2017 17:27:35 +0000 (09:27 -0800)
commit0f90908026b13ab465c327f99d1ac1c50d28d80e
tree36098b2d9de880aebbabf7b5767aad9774cea7e2
parentaf055f207ac41334fda9ff53e80f35a653e4dd7c
Support Soong native coverage

Soong (or any other prebuilt) can provide a .gcnodir file using
LOCAL_PREBUILT_COVERAGE_ARCHIVE. Just like today, if one isn't provided
for static libraries, an empty one will be created for Make modules to
use.

Also fixes a problem I noticed including whole static libs having
coverage into static libs. It was trying to write to /WHOLE since
PRIVATE_INTERMEDIATES_DIR was not set.

Bug: 32749731
Test: See build/soong change for soong-side tests
Test: Enabled coverage of a soong static lib, then include it in a make
static lib with LOCAL_WHOLE_STATIC_LIBRARIES and ensure that the any
shared libraries using the make static lib get the embedded coverage
information.
Change-Id: I32762f099c9757074fec922ee4822f819c9ceaf5
core/clear_vars.mk
core/prebuilt_internal.mk
core/shared_library_internal.mk
core/soong_config.mk
core/static_library_internal.mk