Also generate api lists based on symbol files for cc_library rule during build time.

Test: build/soong/soong_ui.bash --make-mode SKIP_ABI_CHECKS=true TARGET_PRODUCT=aosp_cf_x86_phone TARGET_BUILD_VARIANT=userdebug droid dist DIST_DIR=/usr/local/google/home/sophiez/my_dist_dir EMMA_INSTRUMENT=true EMMA_INSTRUMENT_FRAMEWORK=true CLANG_COVERAGE=true SKIP_BOOT_JARS_CHECK=true

Change-Id: Ic857c14c5c258b8f4d150cc71ce9eabce33d7d54
This commit is contained in:
sophiez
2021-08-16 22:54:00 -07:00
parent 93fb53f5d0
commit 4c4f80326d
4 changed files with 28 additions and 26 deletions

View File

@@ -294,6 +294,9 @@ func (library *libraryDecorator) AndroidMkEntries(ctx AndroidMkContext, entries
if library.buildStubs() {
entries.SetBool("LOCAL_NO_NOTICE_FILE", true)
}
if library.apiListCoverageXmlPath.String() != "" {
entries.SetString("SOONG_CC_API_XML", "$(SOONG_CC_API_XML) "+library.apiListCoverageXmlPath.String())
}
})
}
// If a library providing a stub is included in an APEX, the private APIs of the library