2021-02-13 05:13:01 +01:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["hardware_interfaces_license"],
|
|
|
|
}
|
|
|
|
|
|
|
|
// Added automatically by a large-scale-change that took the approach of
|
|
|
|
// 'apply every license found to every target'. While this makes sure we respect
|
|
|
|
// every license restriction, it may not be entirely correct.
|
|
|
|
//
|
|
|
|
// e.g. GPL in an MIT project might only apply to the contrib/ directory.
|
|
|
|
//
|
|
|
|
// Please consider splitting the single license below into multiple licenses,
|
|
|
|
// taking care not to lose any license_kind information, and overriding the
|
|
|
|
// default license using the 'licenses: [...]' property on targets as needed.
|
|
|
|
//
|
|
|
|
// For unused files, consider creating a 'fileGroup' with "//visibility:private"
|
|
|
|
// to attach the license to, and including a comment whether the files may be
|
|
|
|
// used in the current project.
|
|
|
|
// See: http://go/android-license-faq
|
|
|
|
license {
|
|
|
|
name: "hardware_interfaces_license",
|
|
|
|
visibility: [":__subpackages__"],
|
|
|
|
license_kinds: [
|
|
|
|
"SPDX-license-identifier-Apache-2.0",
|
|
|
|
"SPDX-license-identifier-NCSA",
|
|
|
|
],
|
|
|
|
license_text: [
|
|
|
|
"NOTICE",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2017-11-10 04:05:17 +01:00
|
|
|
hidl_package_root {
|
|
|
|
name: "android.hardware",
|
2018-11-30 02:12:15 +01:00
|
|
|
use_current: true,
|
2017-11-10 04:05:17 +01:00
|
|
|
}
|
|
|
|
|
2017-03-09 00:58:46 +01:00
|
|
|
cc_defaults {
|
|
|
|
name: "hidl_defaults",
|
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
],
|
|
|
|
}
|
2017-08-01 22:12:35 +02:00
|
|
|
|
2017-08-04 01:39:02 +02:00
|
|
|
// VTS tests must link to HAL definition libraries statically.
|
2017-08-01 22:12:35 +02:00
|
|
|
cc_defaults {
|
|
|
|
name: "VtsHalTargetTestDefaults",
|
2018-11-29 19:15:47 +01:00
|
|
|
defaults: [
|
|
|
|
"hidl_defaults",
|
|
|
|
],
|
2017-08-04 01:39:02 +02:00
|
|
|
|
|
|
|
// Lists all dependencies that can *not* be expected on the device.
|
2017-08-01 22:12:35 +02:00
|
|
|
static_libs: [
|
2020-04-07 23:38:56 +02:00
|
|
|
"VtsHalHidlTestUtils",
|
2024-07-15 20:11:24 +02:00
|
|
|
"libhidlbase",
|
2018-06-08 19:57:30 +02:00
|
|
|
"libhidl-gen-utils",
|
2017-08-01 22:12:35 +02:00
|
|
|
],
|
2019-08-22 00:44:07 +02:00
|
|
|
|
|
|
|
header_libs: [
|
2019-10-29 22:20:45 +01:00
|
|
|
"libhidl_gtest_helper",
|
2019-08-22 00:44:07 +02:00
|
|
|
],
|
|
|
|
|
2017-08-04 01:39:02 +02:00
|
|
|
// Lists all system dependencies that can be expected on the device.
|
2017-08-01 22:12:35 +02:00
|
|
|
shared_libs: [
|
|
|
|
"libbase",
|
2017-08-04 01:39:02 +02:00
|
|
|
// All the following are dependencies of any HAL definition library.
|
2017-08-01 22:12:35 +02:00
|
|
|
"libcutils",
|
|
|
|
"liblog",
|
|
|
|
"libhidlbase",
|
|
|
|
"libutils",
|
|
|
|
],
|
|
|
|
cflags: [
|
|
|
|
"-O0",
|
|
|
|
"-g",
|
|
|
|
],
|
|
|
|
|
2024-07-15 20:11:24 +02:00
|
|
|
target: {
|
|
|
|
android: {
|
|
|
|
shared_libs: [
|
|
|
|
"libvndksupport",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2019-10-10 20:17:22 +02:00
|
|
|
require_root: true,
|
2017-08-01 22:12:35 +02:00
|
|
|
}
|
2020-04-07 23:38:56 +02:00
|
|
|
|
|
|
|
// TODO: Remove this after all vts tests under vendor/qcom are converted to
|
|
|
|
// parameterized gtest.
|
|
|
|
cc_defaults {
|
|
|
|
name: "Vts10HalTargetTestDefaults",
|
|
|
|
defaults: [
|
|
|
|
"VtsHalTargetTestDefaults",
|
|
|
|
],
|
|
|
|
static_libs: [
|
|
|
|
"VtsHalHidlTargetTestBase",
|
|
|
|
],
|
|
|
|
}
|