Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 1 | package { |
| 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 |
| 24 | license { |
| 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 Vishniakou | 5c02a71 | 2023-05-15 15:45:02 -0700 | [diff] [blame] | 39 | cc_library_headers { |
| 40 | name: "native_headers", |
| 41 | host_supported: true, |
| 42 | export_include_dirs: [ |
| 43 | "include/", |
| 44 | ], |
Inseob Kim | 7e8875b | 2024-11-13 10:48:07 +0900 | [diff] [blame^] | 45 | product_available: true, |
Siarhei Vishniakou | 5c02a71 | 2023-05-15 15:45:02 -0700 | [diff] [blame] | 46 | } |
| 47 | |
Dan Albert | 494ed55 | 2016-09-23 15:57:45 -0700 | [diff] [blame] | 48 | ndk_headers { |
| 49 | name: "libandroid_headers", |
| 50 | from: "include/android", |
| 51 | to: "android", |
| 52 | srcs: ["include/android/**/*.h"], |
Dan Albert | 96b5509 | 2016-10-20 10:14:30 -0700 | [diff] [blame] | 53 | license: "NOTICE", |
Dan Albert | 494ed55 | 2016-09-23 15:57:45 -0700 | [diff] [blame] | 54 | } |
| 55 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 56 | subdirs = [ |
Josh Gao | b789fb1 | 2019-10-24 19:02:14 -0700 | [diff] [blame] | 57 | "adbd_auth", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 58 | "cmds/*", |
Jiyong Park | 55e9bd7 | 2017-06-29 14:21:37 +0900 | [diff] [blame] | 59 | "headers", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 60 | "libs/*", |
Dan Albert | 49fbff4 | 2016-10-03 12:36:00 -0700 | [diff] [blame] | 61 | "opengl", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 62 | "services/*", |
Dan Albert | 0fbb532 | 2016-10-04 17:49:33 -0700 | [diff] [blame] | 63 | "vulkan", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 64 | ] |
Yifan Hong | 108287d | 2017-06-30 17:19:27 -0700 | [diff] [blame] | 65 | |
| 66 | cc_library_headers { |
| 67 | name: "libandroid_sensor_headers", |
Devin Moore | a529a5a | 2022-12-01 23:17:17 +0000 | [diff] [blame] | 68 | vendor_available: true, |
| 69 | host_supported: true, |
Yifan Hong | 108287d | 2017-06-30 17:19:27 -0700 | [diff] [blame] | 70 | export_include_dirs: ["include_sensor"], |
| 71 | } |
Jiyong Park | d1b83e6 | 2019-08-19 14:42:56 +0900 | [diff] [blame] | 72 | |
| 73 | filegroup { |
| 74 | name: "framework_native_aidl_binder", |
| 75 | srcs: ["aidl/binder/**/*.aidl"], |
| 76 | path: "aidl/binder", |
Vinh Tran | 9ccb8dd | 2022-08-09 15:38:48 -0400 | [diff] [blame] | 77 | visibility: [ |
| 78 | "//frameworks/native", |
| 79 | "//frameworks/native/libs/gui", |
| 80 | ], |
Jiyong Park | d1b83e6 | 2019-08-19 14:42:56 +0900 | [diff] [blame] | 81 | } |
| 82 | |
| 83 | filegroup { |
| 84 | name: "framework_native_aidl_gui", |
| 85 | srcs: ["aidl/gui/**/*.aidl"], |
| 86 | path: "aidl/gui", |
Vinh Tran | 9ccb8dd | 2022-08-09 15:38:48 -0400 | [diff] [blame] | 87 | visibility: [ |
| 88 | "//frameworks/native", |
| 89 | "//frameworks/native/libs/gui", |
| 90 | ], |
Jiyong Park | d1b83e6 | 2019-08-19 14:42:56 +0900 | [diff] [blame] | 91 | } |
| 92 | |
| 93 | filegroup { |
| 94 | name: "framework_native_aidl", |
| 95 | srcs: [ |
| 96 | ":framework_native_aidl_binder", |
| 97 | ":framework_native_aidl_gui", |
| 98 | ], |
| 99 | } |
Jorim Jaggi | f51775d | 2021-01-14 23:44:15 +0100 | [diff] [blame] | 100 | |
Devin Moore | 33ce330 | 2023-10-20 16:53:08 +0000 | [diff] [blame] | 101 | aidl_library { |
| 102 | name: "PersistableBundle_aidl", |
| 103 | hdrs: ["aidl/binder/android/os/PersistableBundle.aidl"], |
| 104 | strip_import_prefix: "aidl/binder", |
| 105 | } |
| 106 | |
Vinh Tran | 9ccb8dd | 2022-08-09 15:38:48 -0400 | [diff] [blame] | 107 | cc_library_headers { |
Jorim Jaggi | f51775d | 2021-01-14 23:44:15 +0100 | [diff] [blame] | 108 | name: "libandroid_headers_private", |
Jerome Gaillard | 3614f18 | 2024-02-13 20:34:58 +0000 | [diff] [blame] | 109 | host_supported: true, |
Jorim Jaggi | f51775d | 2021-01-14 23:44:15 +0100 | [diff] [blame] | 110 | export_include_dirs: ["include/private"], |
Jerome Gaillard | 3614f18 | 2024-02-13 20:34:58 +0000 | [diff] [blame] | 111 | target: { |
| 112 | windows: { |
| 113 | enabled: true, |
| 114 | }, |
| 115 | }, |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 116 | } |
Kriti Dang | a6daf9f | 2021-02-25 18:10:46 +0100 | [diff] [blame] | 117 | |
| 118 | filegroup { |
| 119 | name: "deviceproductinfoconstants_aidl", |
| 120 | srcs: ["aidl/android/hardware/display/IDeviceProductInfoConstants.aidl"], |
| 121 | path: "aidl", |
| 122 | } |
Inseob Kim | 1b839b0 | 2024-10-10 17:15:43 +0900 | [diff] [blame] | 123 | |
| 124 | dirgroup { |
| 125 | name: "trusty_dirgroup_frameworks_native", |
| 126 | dirs: ["libs/binder"], |
| 127 | visibility: ["//trusty/vendor/google/aosp/scripts"], |
| 128 | } |