• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
31 hidl_package_root {
32     name: "android.hardware",
33     use_current: true,
34 }
35 
36 cc_defaults {
37     name: "hidl_defaults",
38     cflags: [
39         "-Wall",
40         "-Werror",
41     ],
42 }
43 
44 // VTS tests must link to HAL definition libraries statically.
45 cc_defaults {
46     name: "VtsHalTargetTestDefaults",
47     defaults: [
48         "hidl_defaults",
49     ],
50 
51     // Lists all dependencies that can *not* be expected on the device.
52     static_libs: [
53         "VtsHalHidlTestUtils",
54         "libhidlbase",
55         "libhidl-gen-utils",
56     ],
57 
58     header_libs: [
59         "libhidl_gtest_helper",
60     ],
61 
62     // Lists all system dependencies that can be expected on the device.
63     shared_libs: [
64         "libbase",
65         // All the following are dependencies of any HAL definition library.
66         "libcutils",
67         "liblog",
68         "libhidlbase",
69         "libutils",
70     ],
71     cflags: [
72         "-O0",
73         "-g",
74     ],
75 
76     target: {
77         android: {
78             shared_libs: [
79                 "libvndksupport",
80             ],
81         },
82     },
83 
84     require_root: true,
85 }
86 
87 // TODO: Remove this after all vts tests under vendor/qcom are converted to
88 // parameterized gtest.
89 cc_defaults {
90     name: "Vts10HalTargetTestDefaults",
91     defaults: [
92         "VtsHalTargetTestDefaults",
93     ],
94     static_libs: [
95         "VtsHalHidlTargetTestBase",
96     ],
97 }
98