Bob Badour | c22b35b | 2021-02-23 14:26:20 -0800 | [diff] [blame] | 1 | package { |
| 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 |
| 19 | license { |
| 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 Moreland | a1169dd | 2017-11-09 19:05:17 -0800 | [diff] [blame] | 31 | hidl_package_root { |
| 32 | name: "android.hardware", |
Steven Moreland | 0a28e1c | 2018-11-29 17:12:15 -0800 | [diff] [blame] | 33 | use_current: true, |
Steven Moreland | a1169dd | 2017-11-09 19:05:17 -0800 | [diff] [blame] | 34 | } |
| 35 | |
Steven Moreland | 691a455 | 2017-03-08 15:58:46 -0800 | [diff] [blame] | 36 | cc_defaults { |
| 37 | name: "hidl_defaults", |
| 38 | cflags: [ |
| 39 | "-Wall", |
| 40 | "-Werror", |
| 41 | ], |
| 42 | } |
Tri Vo | 0b19836 | 2017-08-01 13:12:35 -0700 | [diff] [blame] | 43 | |
Tri Vo | e6ca2b3 | 2017-08-03 16:39:02 -0700 | [diff] [blame] | 44 | // VTS tests must link to HAL definition libraries statically. |
Tri Vo | 0b19836 | 2017-08-01 13:12:35 -0700 | [diff] [blame] | 45 | cc_defaults { |
| 46 | name: "VtsHalTargetTestDefaults", |
Keun Soo YIM | 71611f3 | 2018-11-29 10:15:47 -0800 | [diff] [blame] | 47 | defaults: [ |
Keun Soo YIM | 71611f3 | 2018-11-29 10:15:47 -0800 | [diff] [blame] | 48 | "hidl_defaults", |
| 49 | ], |
Tri Vo | e6ca2b3 | 2017-08-03 16:39:02 -0700 | [diff] [blame] | 50 | |
| 51 | // Lists all dependencies that can *not* be expected on the device. |
Tri Vo | 0b19836 | 2017-08-01 13:12:35 -0700 | [diff] [blame] | 52 | static_libs: [ |
Dan Shi | fdbc494 | 2020-04-07 14:38:56 -0700 | [diff] [blame] | 53 | "VtsHalHidlTestUtils", |
Zhuoyao Zhang | cecb0e7 | 2018-06-08 10:57:30 -0700 | [diff] [blame] | 54 | "libhidl-gen-utils", |
Tri Vo | 0b19836 | 2017-08-01 13:12:35 -0700 | [diff] [blame] | 55 | ], |
Steven Moreland | 022cda0 | 2019-08-21 15:44:07 -0700 | [diff] [blame] | 56 | |
| 57 | header_libs: [ |
Steven Moreland | 07c843c | 2019-10-29 14:20:45 -0700 | [diff] [blame] | 58 | "libhidl_gtest_helper", |
Steven Moreland | 022cda0 | 2019-08-21 15:44:07 -0700 | [diff] [blame] | 59 | ], |
| 60 | |
Tri Vo | 0b19836 | 2017-08-01 13:12:35 -0700 | [diff] [blame] | 61 | group_static_libs: true, |
Tri Vo | e6ca2b3 | 2017-08-03 16:39:02 -0700 | [diff] [blame] | 62 | |
| 63 | // Lists all system dependencies that can be expected on the device. |
Tri Vo | 0b19836 | 2017-08-01 13:12:35 -0700 | [diff] [blame] | 64 | shared_libs: [ |
| 65 | "libbase", |
Tri Vo | e6ca2b3 | 2017-08-03 16:39:02 -0700 | [diff] [blame] | 66 | // All the following are dependencies of any HAL definition library. |
Tri Vo | 0b19836 | 2017-08-01 13:12:35 -0700 | [diff] [blame] | 67 | "libcutils", |
| 68 | "liblog", |
| 69 | "libhidlbase", |
Tri Vo | 0b19836 | 2017-08-01 13:12:35 -0700 | [diff] [blame] | 70 | "libutils", |
| 71 | ], |
| 72 | cflags: [ |
| 73 | "-O0", |
| 74 | "-g", |
| 75 | ], |
| 76 | |
Dan Shi | 47e4783 | 2019-10-10 11:17:22 -0700 | [diff] [blame] | 77 | require_root: true, |
Tri Vo | 0b19836 | 2017-08-01 13:12:35 -0700 | [diff] [blame] | 78 | } |
Dan Shi | fdbc494 | 2020-04-07 14:38:56 -0700 | [diff] [blame] | 79 | |
| 80 | // TODO: Remove this after all vts tests under vendor/qcom are converted to |
| 81 | // parameterized gtest. |
| 82 | cc_defaults { |
| 83 | name: "Vts10HalTargetTestDefaults", |
| 84 | defaults: [ |
| 85 | "VtsHalTargetTestDefaults", |
| 86 | ], |
| 87 | static_libs: [ |
| 88 | "VtsHalHidlTargetTestBase", |
| 89 | ], |
| 90 | } |