blob: 00ba1e24c5e61da04d614d07b8c735c52964f1bd [file] [log] [blame]
Steven Morelanda1169dd2017-11-09 19:05:17 -08001hidl_package_root {
2 name: "android.hardware",
Steven Moreland0a28e1c2018-11-29 17:12:15 -08003 use_current: true,
Steven Morelanda1169dd2017-11-09 19:05:17 -08004}
5
Steven Moreland691a4552017-03-08 15:58:46 -08006cc_defaults {
7 name: "hidl_defaults",
8 cflags: [
9 "-Wall",
10 "-Werror",
11 ],
12}
Tri Vo0b198362017-08-01 13:12:35 -070013
Tri Voe6ca2b32017-08-03 16:39:02 -070014// VTS tests must link to HAL definition libraries statically.
Tri Vo0b198362017-08-01 13:12:35 -070015cc_defaults {
16 name: "VtsHalTargetTestDefaults",
Keun Soo YIM71611f32018-11-29 10:15:47 -080017 defaults: [
Keun Soo YIM71611f32018-11-29 10:15:47 -080018 "hidl_defaults",
19 ],
Tri Voe6ca2b32017-08-03 16:39:02 -070020
21 // Lists all dependencies that can *not* be expected on the device.
Tri Vo0b198362017-08-01 13:12:35 -070022 static_libs: [
Dan Shifdbc4942020-04-07 14:38:56 -070023 "VtsHalHidlTestUtils",
Zhuoyao Zhangcecb0e72018-06-08 10:57:30 -070024 "libhidl-gen-utils",
Tri Vo0b198362017-08-01 13:12:35 -070025 ],
Steven Moreland022cda02019-08-21 15:44:07 -070026
27 header_libs: [
Steven Moreland07c843c2019-10-29 14:20:45 -070028 "libhidl_gtest_helper",
Steven Moreland022cda02019-08-21 15:44:07 -070029 ],
30
Tri Vo0b198362017-08-01 13:12:35 -070031 group_static_libs: true,
Tri Voe6ca2b32017-08-03 16:39:02 -070032
33 // Lists all system dependencies that can be expected on the device.
Tri Vo0b198362017-08-01 13:12:35 -070034 shared_libs: [
35 "libbase",
Tri Voe6ca2b32017-08-03 16:39:02 -070036 // All the following are dependencies of any HAL definition library.
Tri Vo0b198362017-08-01 13:12:35 -070037 "libcutils",
38 "liblog",
39 "libhidlbase",
Tri Vo0b198362017-08-01 13:12:35 -070040 "libutils",
41 ],
42 cflags: [
43 "-O0",
44 "-g",
45 ],
46
Dan Shi47e47832019-10-10 11:17:22 -070047 require_root: true,
Tri Vo0b198362017-08-01 13:12:35 -070048}
Dan Shifdbc4942020-04-07 14:38:56 -070049
50// TODO: Remove this after all vts tests under vendor/qcom are converted to
51// parameterized gtest.
52cc_defaults {
53 name: "Vts10HalTargetTestDefaults",
54 defaults: [
55 "VtsHalTargetTestDefaults",
56 ],
57 static_libs: [
58 "VtsHalHidlTargetTestBase",
59 ],
60}