1package { 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 39cc_library_headers { 40 name: "native_headers", 41 host_supported: true, 42 export_include_dirs: [ 43 "include/", 44 ], 45} 46 47ndk_headers { 48 name: "libandroid_headers", 49 from: "include/android", 50 to: "android", 51 srcs: ["include/android/**/*.h"], 52 license: "NOTICE", 53} 54 55subdirs = [ 56 "adbd_auth", 57 "cmds/*", 58 "headers", 59 "libs/*", 60 "opengl", 61 "services/*", 62 "vulkan", 63] 64 65cc_library_headers { 66 name: "libandroid_sensor_headers", 67 vendor_available: true, 68 host_supported: true, 69 export_include_dirs: ["include_sensor"], 70} 71 72filegroup { 73 name: "framework_native_aidl_binder", 74 srcs: ["aidl/binder/**/*.aidl"], 75 path: "aidl/binder", 76 visibility: [ 77 "//frameworks/native", 78 "//frameworks/native/libs/gui", 79 ], 80} 81 82filegroup { 83 name: "framework_native_aidl_gui", 84 srcs: ["aidl/gui/**/*.aidl"], 85 path: "aidl/gui", 86 visibility: [ 87 "//frameworks/native", 88 "//frameworks/native/libs/gui", 89 ], 90} 91 92filegroup { 93 name: "framework_native_aidl", 94 srcs: [ 95 ":framework_native_aidl_binder", 96 ":framework_native_aidl_gui", 97 ], 98} 99 100cc_library_headers { 101 name: "libandroid_headers_private", 102 export_include_dirs: ["include/private"], 103} 104 105filegroup { 106 name: "deviceproductinfoconstants_aidl", 107 srcs: ["aidl/android/hardware/display/IDeviceProductInfoConstants.aidl"], 108 path: "aidl", 109} 110