Soong does not propagate dependencies through static targets, which
can cause linker errors. Until this is fixed, add the dependencies
explicitly.
Test: Build with and without coverage locally
Test: Will run TreeHugger and Forrest
Change-Id: Icab6568f3cc0783bf2a550ecd15b08f57c0d77b2
fluoride_defaults {
name: "fluoride_defaults",
defaults: ["fluoride_defaults_fuzzable", "fluoride_types_defaults"],
- shared_libs: ["libstatslog"],
+ shared_libs: [
+ "libgrpc++",
+ "libgrpc_wrap",
+ "libstatslog"
+ ],
sanitize: {
misc_undefined: ["bounds"],
},
"libchrome",
"libcrypto",
"libflatbuffers-cpp",
+ "libgrpc++",
+ "libgrpc_wrap",
],
static_libs: [
"libbluetooth-protos",
"libbacktrace",
"libchrome",
"libcrypto",
+ "libgrpc++",
"libgrpc++_unsecure",
+ "libgrpc_wrap",
"libprotobuf-cpp-full",
],
target: {
"libutils",
"libcutils",
],
+ static_libs: [
+ "libbt_common_sys_prop_cxx",
+ "libbt_hidl_hal_cxx",
+ ],
},
host: {
required: [
"libutils",
"libcutils",
],
+ static_libs: [
+ "libbt_common_sys_prop_cxx",
+ "libbt_hidl_hal_cxx",
+ ],
},
},
srcs: [
shared_libs: [
"libchrome",
"libcrypto",
+ "libgrpc++",
+ "libgrpc_wrap",
],
sanitize: {
address: true,
"libcxxbridge05",
"libchrome",
],
+ shared_libs: [
+ "libgrpc++",
+ "libgrpc_wrap",
+ ],
+ target: {
+ android: {
+ shared_libs: [
+ "android.hardware.bluetooth@1.0",
+ "libhidlbase",
+ "libutils",
+ "libcutils",
+ ],
+ static_libs: [
+ "libbt_common_sys_prop_cxx",
+ "libbt_hidl_hal_cxx",
+ ],
+ },
+ },
}
cc_defaults {
shared_libs: [
"libcrypto",
"libflatbuffers-cpp",
+ "libgrpc++",
+ "libgrpc_wrap",
],
cflags: [
"-DFUZZ_TARGET",
"libhidlbase",
"libutils",
],
+ static_libs: [
+ "libbt_common_sys_prop_cxx",
+ "libbt_hidl_hal_cxx",
+ ],
},
},
}