diff options
author | Bob Badour <bbadour@google.com> | 2021-02-12 18:24:18 -0800 |
---|---|---|
committer | Bob Badour <bbadour@google.com> | 2021-02-12 18:24:18 -0800 |
commit | 0f6dcf73b798c60a4ff204cc4b1a98572fec3393 (patch) | |
tree | de91636fc6438ca8da002efd137789a96267af6c | |
parent | e038f42a7eeaa5a0a030c444fde7ab205fad198c (diff) | |
download | libsqlite3-sys-0f6dcf73b798c60a4ff204cc4b1a98572fec3393.tar.gz |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/libsqlite3-sysandroid-s-preview-1
Added SPDX-license-identifier-MIT to:
android/Android.bp
Added SPDX-license-identifier-MIT legacy_permissive to:
Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: If36862428d94cc4ecec18e69240d6e4f3cb8c15b
-rw-r--r-- | Android.bp | 32 | ||||
-rw-r--r-- | android/Android.bp | 11 |
2 files changed, 43 insertions, 0 deletions
@@ -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"], |