Add cc_defaults VtsHalTargetTestDefaults

Makes it easier to control how vts tests link to system libs.
Also, removes a lot of redundant lines in test make rules.

Bug: 64040096
Test: compiles
Merged-In: I10796e3fa8f61a307dbb7edace537a96ec83bea7
Change-Id: I10796e3fa8f61a307dbb7edace537a96ec83bea7
(cherry picked from commit 0b19836cea)
This commit is contained in:
Tri Vo
2017-08-01 13:12:35 -07:00
parent 9138b4cec5
commit f7c2fbc1a8

View File

@@ -9,3 +9,26 @@ cc_defaults {
"-Werror",
],
}
cc_defaults {
name: "VtsHalTargetTestDefaults",
defaults: ["hidl_defaults"],
static_libs: [
"VtsHalHidlTargetTestBase",
],
group_static_libs: true,
shared_libs: [
"libbase",
"libcutils",
"liblog",
"libhidlbase",
"libhidltransport",
"libhwbinder",
"libutils",
],
cflags: [
"-O0",
"-g",
],
}