diff options
author | Bob Badour <bbadour@google.com> | 2021-02-17 16:47:43 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-02-17 16:47:43 +0000 |
commit | de67de7db236cf7a36d2270726ddc18619af7d6d (patch) | |
tree | 5fc802c3ab41be9beb8c5b57fb41db748673cbe9 | |
parent | 9db721c5028744d56274e931f8e364b7bd6102a3 (diff) | |
parent | 3cbd07e096d346d185d0c74ae0f918e98c831056 (diff) | |
download | libchrome-de67de7db236cf7a36d2270726ddc18619af7d6d.tar.gz |
[LSC] Add LOCAL_LICENSE_KINDS to external/libchrome am: deac3a18cb am: 3cbd07e096
Original change: https://android-review.googlesource.com/c/platform/external/libchrome/+/1588590
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I1779fd22b27632e4ed084ea0c0d49027b0282508
-rw-r--r-- | Android.bp | 36 | ||||
-rw-r--r-- | soong/Android.bp | 9 |
2 files changed, 45 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp index 95bec2ca23..b97661b8d5 100644 --- a/Android.bp +++ b/Android.bp @@ -20,6 +20,42 @@ // for details. // Note: gensrcs does not support exclude_srcs, so filegroup rule is // introduced. +package { + default_applicable_licenses: ["external_libchrome_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_libchrome_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + "SPDX-license-identifier-BSD", + "SPDX-license-identifier-GPL-2.0", + "SPDX-license-identifier-LGPL-2.1", + "SPDX-license-identifier-MIT", + "SPDX-license-identifier-MPL", + "SPDX-license-identifier-Unicode-DFS", + "legacy_unencumbered", + ], + license_text: [ + "NOTICE", + ], +} + filegroup { name: "libchrome-include-sources", srcs: [ diff --git a/soong/Android.bp b/soong/Android.bp index 7230b812d2..35fa5fb47c 100644 --- a/soong/Android.bp +++ b/soong/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_libchrome_license" + // to get the below license kinds: + // SPDX-license-identifier-BSD + default_applicable_licenses: ["external_libchrome_license"], +} + bootstrap_go_package { name: "soong-libchrome", pkgPath: "android/soong/external/libchrome", |