blob: b863b764f7a04019821fce3e8b13d40ab1919152 [file] [log] [blame]
Bob Badour373a1bf2021-02-12 14:41:18 -08001package {
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
Dan Willemsen108837e2017-09-08 19:45:28 -070032cc_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,
Chih-Hung Hsieh8cdd0572017-09-28 12:16:06 -070036 cflags: [
37 "-Werror",
38 "-Wno-error=sign-compare",
39 "-Wno-unused-parameter",
40 ],
Dan Willemsen108837e2017-09-08 19:45:28 -070041 srcs: ["src/main/native/sqlite_jni.c"],
Orion Hodson94601d02020-04-03 12:41:19 +010042 header_libs: ["jni_headers"],
Dan Willemsen108837e2017-09-08 19:45:28 -070043 static_libs: ["libsqlite_static_minimal"],
44
45 sdk_version: "23",
46}
Colin Cross683a6b62018-08-15 13:42:38 -070047
48java_library {
49 name: "sqlite-jdbc",
50 hostdex: true,
51 srcs: ["src/main/java/**/*.java"],
52 sdk_version: "core_current",
53}