[go: nahoru, domu]

blob: fc6babe6adc59698c534ae6d22181c7d2c4448bc [file] [log] [blame]
Bob Badourb224b362021-02-12 20:13:01 -08001package {
2 default_applicable_licenses: ["hardware_interfaces_license"],
3}
4
5// Added automatically by a large-scale-change that took the approach of
6// 'apply every license found to every target'. While this makes sure we respect
7// every license restriction, it may not be entirely correct.
8//
9// e.g. GPL in an MIT project might only apply to the contrib/ directory.
10//
11// Please consider splitting the single license below into multiple licenses,
12// taking care not to lose any license_kind information, and overriding the
13// default license using the 'licenses: [...]' property on targets as needed.
14//
15// For unused files, consider creating a 'fileGroup' with "//visibility:private"
16// to attach the license to, and including a comment whether the files may be
17// used in the current project.
18// See: http://go/android-license-faq
19license {
20 name: "hardware_interfaces_license",
21 visibility: [":__subpackages__"],
22 license_kinds: [
23 "SPDX-license-identifier-Apache-2.0",
24 "SPDX-license-identifier-NCSA",
25 ],
26 license_text: [
27 "NOTICE",
28 ],
29}
30
Steven Morelanda1169dd2017-11-09 19:05:17 -080031hidl_package_root {
32 name: "android.hardware",
Steven Moreland0a28e1c2018-11-29 17:12:15 -080033 use_current: true,
Steven Morelanda1169dd2017-11-09 19:05:17 -080034}
35
Steven Moreland691a4552017-03-08 15:58:46 -080036cc_defaults {
37 name: "hidl_defaults",
38 cflags: [
39 "-Wall",
40 "-Werror",
41 ],
42}
Tri Vo0b198362017-08-01 13:12:35 -070043
Tri Voe6ca2b32017-08-03 16:39:02 -070044// VTS tests must link to HAL definition libraries statically.
Tri Vo0b198362017-08-01 13:12:35 -070045cc_defaults {
46 name: "VtsHalTargetTestDefaults",
Keun Soo YIM71611f32018-11-29 10:15:47 -080047 defaults: [
Keun Soo YIM71611f32018-11-29 10:15:47 -080048 "hidl_defaults",
49 ],
Tri Voe6ca2b32017-08-03 16:39:02 -070050
51 // Lists all dependencies that can *not* be expected on the device.
Tri Vo0b198362017-08-01 13:12:35 -070052 static_libs: [
Dan Shifdbc4942020-04-07 14:38:56 -070053 "VtsHalHidlTestUtils",
Zhuoyao Zhangcecb0e72018-06-08 10:57:30 -070054 "libhidl-gen-utils",
Tri Vo0b198362017-08-01 13:12:35 -070055 ],
Steven Moreland022cda02019-08-21 15:44:07 -070056
57 header_libs: [
Steven Moreland07c843c2019-10-29 14:20:45 -070058 "libhidl_gtest_helper",
Steven Moreland022cda02019-08-21 15:44:07 -070059 ],
60
Tri Voe6ca2b32017-08-03 16:39:02 -070061 // Lists all system dependencies that can be expected on the device.
Tri Vo0b198362017-08-01 13:12:35 -070062 shared_libs: [
63 "libbase",
Tri Voe6ca2b32017-08-03 16:39:02 -070064 // All the following are dependencies of any HAL definition library.
Tri Vo0b198362017-08-01 13:12:35 -070065 "libcutils",
66 "liblog",
67 "libhidlbase",
Tri Vo0b198362017-08-01 13:12:35 -070068 "libutils",
69 ],
70 cflags: [
71 "-O0",
72 "-g",
73 ],
74
Dan Shi47e47832019-10-10 11:17:22 -070075 require_root: true,
Tri Vo0b198362017-08-01 13:12:35 -070076}
Dan Shifdbc4942020-04-07 14:38:56 -070077
78// TODO: Remove this after all vts tests under vendor/qcom are converted to
79// parameterized gtest.
80cc_defaults {
81 name: "Vts10HalTargetTestDefaults",
82 defaults: [
83 "VtsHalTargetTestDefaults",
84 ],
85 static_libs: [
86 "VtsHalHidlTargetTestBase",
87 ],
88}