diff options
author | Bob Badour <bbadour@google.com> | 2021-09-09 20:44:21 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-09-09 20:44:21 +0000 |
commit | ffc255a29daf500fe4c50ac1a3ec7958163bd626 (patch) | |
tree | 84b490f8d7214c4a26256563bedc8c068fd3a58b | |
parent | 0129f48b3563cd392fba9afeacd3c13c6ae0d15f (diff) | |
parent | b79467f98d7eecd3db35dd79174d758b95d76639 (diff) | |
download | shared_library-ffc255a29daf500fe4c50ac1a3ec7958163bd626.tar.gz |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/shared_library am: e0cbdc2e3e am: 323d520448 am: 07468cccf0 am: e1f4245d7b am: b79467f98d
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/shared_library/+/1822254
Change-Id: I56f7be279b5b9727f4ea470e078f83f584513308
-rw-r--r-- | Android.bp | 38 |
1 files changed, 38 insertions, 0 deletions
@@ -3,6 +3,44 @@ +package { + default_applicable_licenses: [ + "external_rust_crates_shared_library_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. +// +// large-scale-change included anything that looked like it might be a license +// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. +// +// Please consider removing redundant or irrelevant files from 'license_text:'. +// See: http://go/android-license-faq +license { + name: "external_rust_crates_shared_library_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + "SPDX-license-identifier-MIT", + ], + license_text: [ + "LICENSE-APACHE", + "LICENSE-MIT", + ], +} + rust_library { name: "libshared_library", host_supported: true, |