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 vendor_available: true, 42 host_supported: true, 43 target: { 44 windows: { 45 enabled: true, 46 }, 47 }, 48 export_include_dirs: [ 49 "include/", 50 ], 51 product_available: true, 52} 53 54ndk_headers { 55 name: "libandroid_headers", 56 from: "include/android", 57 to: "android", 58 srcs: ["include/android/**/*.h"], 59 license: "NOTICE", 60} 61 62subdirs = [ 63 "adbd_auth", 64 "cmds/*", 65 "headers", 66 "libs/*", 67 "opengl", 68 "services/*", 69 "vulkan", 70] 71 72cc_library_headers { 73 name: "libandroid_sensor_headers", 74 vendor_available: true, 75 host_supported: true, 76 export_include_dirs: ["include_sensor"], 77} 78 79filegroup { 80 name: "framework_native_aidl_binder", 81 srcs: ["aidl/binder/**/*.aidl"], 82 path: "aidl/binder", 83 visibility: [ 84 "//frameworks/native", 85 "//frameworks/native/libs/gui", 86 ], 87} 88 89filegroup { 90 name: "framework_native_aidl_gui", 91 srcs: ["aidl/gui/**/*.aidl"], 92 path: "aidl/gui", 93 visibility: [ 94 "//frameworks/native", 95 "//frameworks/native/libs/gui", 96 ], 97} 98 99filegroup { 100 name: "framework_native_aidl", 101 srcs: [ 102 ":framework_native_aidl_binder", 103 ":framework_native_aidl_gui", 104 ], 105} 106 107aidl_library { 108 name: "PersistableBundle_aidl", 109 hdrs: ["aidl/binder/android/os/PersistableBundle.aidl"], 110 strip_import_prefix: "aidl/binder", 111} 112 113cc_library_headers { 114 name: "libandroid_headers_private", 115 host_supported: true, 116 export_include_dirs: ["include/private"], 117 target: { 118 windows: { 119 enabled: true, 120 }, 121 }, 122} 123 124filegroup { 125 name: "deviceproductinfoconstants_aidl", 126 srcs: ["aidl/android/hardware/display/IDeviceProductInfoConstants.aidl"], 127 path: "aidl", 128} 129 130dirgroup { 131 name: "trusty_dirgroup_frameworks_native", 132 dirs: ["libs/binder"], 133 visibility: ["//trusty/vendor/google/aosp/scripts"], 134} 135