trusty: Add vendor variant of libtrusty_coverage

We want to add coverage statistics to the trusty-ut-ctrl tool, which is
a vendor binary. Thus we need a vendor variant of libtrusty_coverage.
Merges system libtrusty_test and vendor libtrusty into a single
vendor_available library so that we can add vendor_available to
libtrusty_coverage and make it accessible from vendor tools.

Bug: 175221942
Test: make libtrusty_coverage
Change-Id: I68cc8f1c1580bda8591dbe744e9751474811576d
This commit is contained in:
Stephen Crane 2020-12-17 12:52:04 -08:00 committed by Tri Vo
parent bc053268cf
commit c602562bb2
3 changed files with 8 additions and 11 deletions

View File

@ -14,6 +14,7 @@
cc_library {
name: "libtrusty_coverage",
vendor_available: true,
srcs: [
"coverage.cpp",
],
@ -21,8 +22,9 @@ cc_library {
"include",
],
static_libs: [
"libtrusty_test",
"libtrusty",
],
shared_libs: [
"libbase",
"liblog",
@ -36,7 +38,7 @@ cc_test {
],
static_libs: [
"libtrusty_coverage",
"libtrusty_test",
"libtrusty",
],
shared_libs: [
"libbase",

View File

@ -39,7 +39,7 @@ cc_library {
export_include_dirs: ["include"],
static_libs: [
"libFuzzer",
"libtrusty_test",
"libtrusty",
],
shared_libs: [
"libtrusty_coverage",

View File

@ -26,13 +26,8 @@ cc_defaults {
cc_library {
name: "libtrusty",
vendor: true,
defaults: ["libtrusty_defaults"],
}
// TODO(b/170753563): cc_fuzz can't deal with vendor components. Build libtrusty
// for system.
cc_test_library {
name: "libtrusty_test",
// TODO(b/170753563): cc_fuzz can't deal with vendor components. Build
// libtrusty for system and vendor.
vendor_available: true,
defaults: ["libtrusty_defaults"],
}