1*e0e58e67SRyan Prichardpackage { 2*e0e58e67SRyan Prichard default_applicable_licenses: ["prebuilts_ndk_license"], 3*e0e58e67SRyan Prichard} 4*e0e58e67SRyan Prichard 5*e0e58e67SRyan Prichard// Added automatically by a large-scale-change that took the approach of 6*e0e58e67SRyan Prichard// 'apply every license found to every target'. While this makes sure we respect 7*e0e58e67SRyan Prichard// every license restriction, it may not be entirely correct. 8*e0e58e67SRyan Prichard// 9*e0e58e67SRyan Prichard// e.g. GPL in an MIT project might only apply to the contrib/ directory. 10*e0e58e67SRyan Prichard// 11*e0e58e67SRyan Prichard// Please consider splitting the single license below into multiple licenses, 12*e0e58e67SRyan Prichard// taking care not to lose any license_kind information, and overriding the 13*e0e58e67SRyan Prichard// default license using the 'licenses: [...]' property on targets as needed. 14*e0e58e67SRyan Prichard// 15*e0e58e67SRyan Prichard// For unused files, consider creating a 'fileGroup' with "//visibility:private" 16*e0e58e67SRyan Prichard// to attach the license to, and including a comment whether the files may be 17*e0e58e67SRyan Prichard// used in the current project. 18*e0e58e67SRyan Prichard// See: http://go/android-license-faq 19*e0e58e67SRyan Prichardlicense { 20*e0e58e67SRyan Prichard name: "prebuilts_ndk_license", 21*e0e58e67SRyan Prichard visibility: [":__subpackages__"], 22*e0e58e67SRyan Prichard license_kinds: [ 23*e0e58e67SRyan Prichard "SPDX-license-identifier-Apache-2.0", 24*e0e58e67SRyan Prichard "SPDX-license-identifier-BSD", 25*e0e58e67SRyan Prichard "SPDX-license-identifier-ISC", 26*e0e58e67SRyan Prichard "SPDX-license-identifier-MIT", 27*e0e58e67SRyan Prichard "SPDX-license-identifier-NCSA", 28*e0e58e67SRyan Prichard ], 29*e0e58e67SRyan Prichard license_text: [ 30*e0e58e67SRyan Prichard "NOTICE", 31*e0e58e67SRyan Prichard ], 32*e0e58e67SRyan Prichard} 33*e0e58e67SRyan Prichard 34*e0e58e67SRyan Prichardcc_library_static { 35*e0e58e67SRyan Prichard name: "android_native_app_glue", 36*e0e58e67SRyan Prichard srcs: ["current/sources/android/native_app_glue/android_native_app_glue.c"], 37*e0e58e67SRyan Prichard cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"], 38*e0e58e67SRyan Prichard sdk_version: "minimum", 39*e0e58e67SRyan Prichard sdk_variant_only: true, 40*e0e58e67SRyan Prichard export_include_dirs: ["current/sources/android/native_app_glue"], 41*e0e58e67SRyan Prichard} 42*e0e58e67SRyan Prichard 43*e0e58e67SRyan Prichardcc_library_static { 44*e0e58e67SRyan Prichard name: "cpufeatures", 45*e0e58e67SRyan Prichard vendor_available: true, 46*e0e58e67SRyan Prichard native_bridge_supported: true, 47*e0e58e67SRyan Prichard srcs: ["current/sources/android/cpufeatures/cpu-features.c"], 48*e0e58e67SRyan Prichard cflags: ["-Wall", "-Werror"], 49*e0e58e67SRyan Prichard sdk_version: "minimum", 50*e0e58e67SRyan Prichard export_include_dirs: ["current/sources/android/cpufeatures"], 51*e0e58e67SRyan Prichard} 52*e0e58e67SRyan Prichard 53*e0e58e67SRyan Prichard// A module that encapsulates the header files of NDK System STL 54*e0e58e67SRyan Prichardcc_library_headers { 55*e0e58e67SRyan Prichard name: "ndk_system", 56*e0e58e67SRyan Prichard sdk_version: "minimum", 57*e0e58e67SRyan Prichard sdk_variant_only: true, 58*e0e58e67SRyan Prichard stl: "none", 59*e0e58e67SRyan Prichard export_system_include_dirs: ["current/sources/cxx-stl/system/include"], 60*e0e58e67SRyan Prichard // the headers are available to both the platform and anyapex. 61*e0e58e67SRyan Prichard // this availability is required to compile jni deps of any android_app in these api domains. 62*e0e58e67SRyan Prichard apex_available: [ 63*e0e58e67SRyan Prichard "//apex_available:anyapex", 64*e0e58e67SRyan Prichard "//apex_available:platform", 65*e0e58e67SRyan Prichard ], 66*e0e58e67SRyan Prichard} 67