Bob Badour | 373a1bf | 2021-02-12 14:41:18 -0800 | [diff] [blame] | 1 | package { |
| 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 |
| 19 | license { |
| 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 Willemsen | 108837e | 2017-09-08 19:45:28 -0700 | [diff] [blame] | 32 | cc_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 Hsieh | 8cdd057 | 2017-09-28 12:16:06 -0700 | [diff] [blame] | 36 | cflags: [ |
| 37 | "-Werror", |
| 38 | "-Wno-error=sign-compare", |
| 39 | "-Wno-unused-parameter", |
| 40 | ], |
Dan Willemsen | 108837e | 2017-09-08 19:45:28 -0700 | [diff] [blame] | 41 | srcs: ["src/main/native/sqlite_jni.c"], |
Orion Hodson | 94601d0 | 2020-04-03 12:41:19 +0100 | [diff] [blame] | 42 | header_libs: ["jni_headers"], |
Dan Willemsen | 108837e | 2017-09-08 19:45:28 -0700 | [diff] [blame] | 43 | static_libs: ["libsqlite_static_minimal"], |
| 44 | |
| 45 | sdk_version: "23", |
| 46 | } |
Colin Cross | 683a6b6 | 2018-08-15 13:42:38 -0700 | [diff] [blame] | 47 | |
| 48 | java_library { |
| 49 | name: "sqlite-jdbc", |
| 50 | hostdex: true, |
| 51 | srcs: ["src/main/java/**/*.java"], |
| 52 | sdk_version: "core_current", |
| 53 | } |