1package { 2 default_applicable_licenses: ["external_javasqlite_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// See: http://go/android-license-faq 19license { 20 name: "external_javasqlite_license", 21 visibility: [":__subpackages__"], 22 license_kinds: [ 23 "SPDX-license-identifier-Apache-2.0", 24 "SPDX-license-identifier-BSD", 25 "legacy_permissive", 26 ], 27 license_text: [ 28 "NOTICE", 29 ], 30} 31 32cc_library_shared { 33 // This name is dictated by the fact that the SQLite code calls loadLibrary("sqlite_jni"). 34 name: "libsqlite_jni", 35 host_supported: true, 36 cflags: [ 37 "-Werror", 38 "-Wno-error=sign-compare", 39 "-Wno-unused-parameter", 40 ], 41 srcs: ["src/main/native/sqlite_jni.c"], 42 header_libs: ["jni_headers"], 43 static_libs: ["libsqlite_static_minimal"], 44 45 sdk_version: "23", 46} 47 48java_library { 49 name: "sqlite-jdbc", 50 hostdex: true, 51 srcs: ["src/main/java/**/*.java"], 52 sdk_version: "core_current", 53} 54