diff options
author | Bob Badour <bbadour@google.com> | 2021-02-16 22:08:52 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-02-16 22:08:52 +0000 |
commit | 16e4a457bb246bce26575f819d5bb71a5cf617fe (patch) | |
tree | 3717592d18875610cf91d5e2ea2967b70187337c | |
parent | fe9744311d3dcdaded0131c8b18b29c4ac4ddd39 (diff) | |
parent | 341c74e7c97b5be3423c985c757b6c10764edfdf (diff) | |
download | bindgen-16e4a457bb246bce26575f819d5bb71a5cf617fe.tar.gz |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/bindgen am: 3c37c623fd am: 515c33241d am: 341c74e7c9
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bindgen/+/1588714
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I7eb8ce4aad9bdd9994e041666db144008de45d8f
-rw-r--r-- | Android.bp | 30 | ||||
-rw-r--r-- | android/bindgen_cmd/Android.bp | 9 |
2 files changed, 39 insertions, 0 deletions
@@ -1,5 +1,35 @@ // This file is generated by cargo2android.py --run --dependencies --features=clap,runtime,which-rustfmt --host-first-multilib --copy-out. +package { + default_applicable_licenses: ["external_rust_crates_bindgen_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_bindgen_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + "SPDX-license-identifier-BSD", + ], + license_text: [ + "LICENSE", + ], +} + genrule { name: "copy_bindgen_build_out", srcs: ["out/*"], diff --git a/android/bindgen_cmd/Android.bp b/android/bindgen_cmd/Android.bp index b404525..758007b 100644 --- a/android/bindgen_cmd/Android.bp +++ b/android/bindgen_cmd/Android.bp @@ -1,3 +1,12 @@ +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_bindgen_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["external_rust_crates_bindgen_license"], +} + rust_library_host { name: "libbindgen_cmd", crate_name: "bindgen_cmd", |