diff options
| author | Jiyong Park <jiyong@google.com> | 2019-08-09 14:44:36 +0900 |
|---|---|---|
| committer | Jiyong Park <jiyong@google.com> | 2019-08-16 00:01:18 +0900 |
| commit | 49932f3e6975f5a39d8f9f5b064431d105740ada (patch) | |
| tree | ff6e1a682bd4c163d2811660a474d3c0bf701529 /cc/library.go | |
| parent | 1bc40c56b9f9f02191d14bf9812101e0ae55bb2f (diff) | |
| download | build_soong-49932f3e6975f5a39d8f9f5b064431d105740ada.tar.gz build_soong-49932f3e6975f5a39d8f9f5b064431d105740ada.tar.bz2 build_soong-49932f3e6975f5a39d8f9f5b064431d105740ada.zip | |
Build native coverage variant of APEXes when needed
When the native coverage is enabled, APEXes (and files there) are built
for native coverage as well.
Bug: 138952487
Test: make -j NATIVE_COVERAGE=true COVERAGE_PATHS='*' com.android.resolv
find out -name "*.gcno" | grep DnsResolver shows files
Test: libnetd_resolv.zip is found under
$(TARGET_OUT)/apex/com.android.resolv/lib directory
Merged-In: I97bcee9bf8ffc0dc71453abbdb613ed56ea2cdb4
(cherry picked from commit ee9a98d88ec9a792c3d67b9aed9e4571bf2544cf)
Change-Id: I97bcee9bf8ffc0dc71453abbdb613ed56ea2cdb4
Diffstat (limited to 'cc/library.go')
| -rw-r--r-- | cc/library.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/library.go b/cc/library.go index ca1c1be0..1f4b8148 100644 --- a/cc/library.go +++ b/cc/library.go @@ -758,6 +758,10 @@ func (library *libraryDecorator) nativeCoverage() bool { return true } +func (library *libraryDecorator) coverageOutputFilePath() android.OptionalPath { + return library.coverageOutputFile +} + func getRefAbiDumpFile(ctx ModuleContext, vndkVersion, fileName string) android.Path { isLlndk := inList(ctx.baseModuleName(), llndkLibraries) || inList(ctx.baseModuleName(), ndkMigratedLibs) |
