diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2021-02-17 03:16:44 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-02-17 03:16:44 +0000 |
commit | edfb8eb4e99403edd0d667c39ba87f83c4739ae8 (patch) | |
tree | de91636fc6438ca8da002efd137789a96267af6c | |
parent | 84eac29f297c0a54fa6c6ea283e5d6d4c151e1ff (diff) | |
parent | 3cf73be41aeff1b0923558aecf628a63f6fcc3cb (diff) | |
download | libsqlite3-sys-edfb8eb4e99403edd0d667c39ba87f83c4739ae8.tar.gz |
Snap for 7149879 from 3cf73be41aeff1b0923558aecf628a63f6fcc3cb to sc-d1-release
Change-Id: I0ce4ef49d649790b80d733561524670e782eeea5
-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"], |