From 49932f3e6975f5a39d8f9f5b064431d105740ada Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Fri, 9 Aug 2019 14:44:36 +0900 Subject: 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 --- cc/library.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cc/library.go') 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) -- cgit v1.2.3