diff options
author | Bob Badour <bbadour@google.com> | 2021-02-16 21:06:41 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-02-16 21:06:41 +0000 |
commit | 515c33241d39b1322e5081dfa3cda4f2312a0db9 (patch) | |
tree | 3717592d18875610cf91d5e2ea2967b70187337c | |
parent | a73c2b1d71a28af810b90fc08ffc1e0f10814d15 (diff) | |
parent | 3c37c623fdf9e08c79dd23e4aeceae42391a3e0b (diff) | |
download | bindgen-515c33241d39b1322e5081dfa3cda4f2312a0db9.tar.gz |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/bindgen am: 3c37c623fd
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bindgen/+/1588714
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I4338213aa9de318d82351be6a869433a7b82d238
-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", |