blob: 72311f026354b2838c825546c4bdff72655e4df7 [file] [log] [blame]
Bob Badour3306e492021-02-25 15:35:37 -08001package {
2 default_applicable_licenses: ["frameworks_native_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//
19// large-scale-change filtered out the below license kinds as false-positives:
20// SPDX-license-identifier-LGPL
21// SPDX-license-identifier-LGPL-2.1
22// SPDX-license-identifier-LGPL-3.0
23// See: http://go/android-license-faq
24license {
25 name: "frameworks_native_license",
26 visibility: [":__subpackages__"],
27 license_kinds: [
28 "SPDX-license-identifier-Apache-2.0",
29 "SPDX-license-identifier-BSD",
30 "SPDX-license-identifier-MIT",
31 "SPDX-license-identifier-Unicode-DFS",
32 "legacy_notice",
33 ],
34 license_text: [
35 "NOTICE",
36 ],
37}
38
Siarhei Vishniakou5c02a712023-05-15 15:45:02 -070039cc_library_headers {
40 name: "native_headers",
kellyhung919008a2024-08-05 18:41:45 +080041 vendor_available: true,
Siarhei Vishniakou5c02a712023-05-15 15:45:02 -070042 host_supported: true,
Yurii Zubrytskyi4ec75f12024-07-22 15:12:15 -070043 target: {
44 windows: {
45 enabled: true,
46 },
47 },
Siarhei Vishniakou5c02a712023-05-15 15:45:02 -070048 export_include_dirs: [
49 "include/",
50 ],
51}
52
Dan Albert494ed552016-09-23 15:57:45 -070053ndk_headers {
54 name: "libandroid_headers",
55 from: "include/android",
56 to: "android",
57 srcs: ["include/android/**/*.h"],
Dan Albert96b55092016-10-20 10:14:30 -070058 license: "NOTICE",
Dan Albert494ed552016-09-23 15:57:45 -070059}
60
Dan Willemsen59e086f2016-07-25 17:13:45 -070061subdirs = [
Josh Gaob789fb12019-10-24 19:02:14 -070062 "adbd_auth",
Dan Willemsen59e086f2016-07-25 17:13:45 -070063 "cmds/*",
Jiyong Park55e9bd72017-06-29 14:21:37 +090064 "headers",
Dan Willemsen59e086f2016-07-25 17:13:45 -070065 "libs/*",
Dan Albert49fbff42016-10-03 12:36:00 -070066 "opengl",
Dan Willemsen59e086f2016-07-25 17:13:45 -070067 "services/*",
Dan Albert0fbb5322016-10-04 17:49:33 -070068 "vulkan",
Dan Willemsen59e086f2016-07-25 17:13:45 -070069]
Yifan Hong108287d2017-06-30 17:19:27 -070070
71cc_library_headers {
72 name: "libandroid_sensor_headers",
Devin Moorea529a5a2022-12-01 23:17:17 +000073 vendor_available: true,
74 host_supported: true,
Yifan Hong108287d2017-06-30 17:19:27 -070075 export_include_dirs: ["include_sensor"],
76}
Jiyong Parkd1b83e62019-08-19 14:42:56 +090077
78filegroup {
79 name: "framework_native_aidl_binder",
80 srcs: ["aidl/binder/**/*.aidl"],
81 path: "aidl/binder",
Vinh Tran9ccb8dd2022-08-09 15:38:48 -040082 visibility: [
83 "//frameworks/native",
84 "//frameworks/native/libs/gui",
85 ],
Jiyong Parkd1b83e62019-08-19 14:42:56 +090086}
87
88filegroup {
89 name: "framework_native_aidl_gui",
90 srcs: ["aidl/gui/**/*.aidl"],
91 path: "aidl/gui",
Vinh Tran9ccb8dd2022-08-09 15:38:48 -040092 visibility: [
93 "//frameworks/native",
94 "//frameworks/native/libs/gui",
95 ],
Jiyong Parkd1b83e62019-08-19 14:42:56 +090096}
97
98filegroup {
99 name: "framework_native_aidl",
100 srcs: [
101 ":framework_native_aidl_binder",
102 ":framework_native_aidl_gui",
103 ],
104}
Jorim Jaggif51775d2021-01-14 23:44:15 +0100105
Devin Moore33ce3302023-10-20 16:53:08 +0000106aidl_library {
107 name: "PersistableBundle_aidl",
108 hdrs: ["aidl/binder/android/os/PersistableBundle.aidl"],
109 strip_import_prefix: "aidl/binder",
110}
111
Vinh Tran9ccb8dd2022-08-09 15:38:48 -0400112cc_library_headers {
Jorim Jaggif51775d2021-01-14 23:44:15 +0100113 name: "libandroid_headers_private",
Jerome Gaillard3614f182024-02-13 20:34:58 +0000114 host_supported: true,
Jorim Jaggif51775d2021-01-14 23:44:15 +0100115 export_include_dirs: ["include/private"],
Jerome Gaillard3614f182024-02-13 20:34:58 +0000116 target: {
117 windows: {
118 enabled: true,
119 },
120 },
Bob Badour3306e492021-02-25 15:35:37 -0800121}
Kriti Danga6daf9f2021-02-25 18:10:46 +0100122
123filegroup {
124 name: "deviceproductinfoconstants_aidl",
125 srcs: ["aidl/android/hardware/display/IDeviceProductInfoConstants.aidl"],
126 path: "aidl",
127}