aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Badour <bbadour@google.com>2021-02-16 21:06:24 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-02-16 21:06:24 +0000
commita0b38d2488a961a640bde9a6eb6eda1eecf2c4bf (patch)
treede91636fc6438ca8da002efd137789a96267af6c
parentc8fc5e106e26f9ab23852c83d3827946f373ae5c (diff)
parent0f6dcf73b798c60a4ff204cc4b1a98572fec3393 (diff)
downloadlibsqlite3-sys-a0b38d2488a961a640bde9a6eb6eda1eecf2c4bf.tar.gz
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/libsqlite3-sys am: 0f6dcf73b7
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/libsqlite3-sys/+/1588707 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I2e9ffcc83d9522df9d5f554ca1ada6355a8e99c6
-rw-r--r--Android.bp32
-rw-r--r--android/Android.bp11
2 files changed, 43 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 34526d3..982f3fb 100644
--- a/Android.bp
+++ b/Android.bp
@@ -3,6 +3,38 @@
// We renamed the shared_libs dependence from libsqlite3 to libsqlite.
// srcs has been moved out of _defaults to work around b/163420435
+package {
+ default_applicable_licenses: [
+ "external_rust_crates_libsqlite3-sys_license",
+ ],
+}
+
+// Added automatically by a large-scale-change that took the approach of
+// 'apply every license found to every target'. While this makes sure we respect
+// every license restriction, it may not be entirely correct.
+//
+// e.g. GPL in an MIT project might only apply to the contrib/ directory.
+//
+// Please consider splitting the single license below into multiple licenses,
+// taking care not to lose any license_kind information, and overriding the
+// default license using the 'licenses: [...]' property on targets as needed.
+//
+// For unused files, consider creating a 'fileGroup' with "//visibility:private"
+// to attach the license to, and including a comment whether the files may be
+// used in the current project.
+// See: http://go/android-license-faq
+license {
+ name: "external_rust_crates_libsqlite3-sys_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-MIT",
+ "legacy_permissive",
+ ],
+ license_text: [
+ "LICENSE",
+ ],
+}
+
rust_library {
name: "liblibsqlite3_sys",
host_supported: true,
diff --git a/android/Android.bp b/android/Android.bp
index 2df9cdb..0be2834 100644
--- a/android/Android.bp
+++ b/android/Android.bp
@@ -1,3 +1,14 @@
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "external_rust_crates_libsqlite3-sys_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-MIT
+ default_applicable_licenses: [
+ "external_rust_crates_libsqlite3-sys_license",
+ ],
+}
+
rust_binary_host {
name: "sqlite3_bindgen_build",
srcs: ["build.rs"],