diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2021-02-16 18:18:46 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-02-16 18:18:46 +0000 |
commit | fa9d2f02d04cccf64d488d1133a7609e87c9e209 (patch) | |
tree | 63fd18c15937c05a9c0a5875a35881b2cd0952fb | |
parent | 4f276dda9f1668a32046cbb2bf1df8a53779d2c6 (diff) | |
parent | 5662b68b255b9c081b3da8efd95751ce7715f9eb (diff) | |
download | slang-fa9d2f02d04cccf64d488d1133a7609e87c9e209.tar.gz |
Merge "[LSC] Add LOCAL_LICENSE_KINDS to frameworks/compile/slang" am: 5662b68b25
Original change: https://android-review.googlesource.com/c/platform/frameworks/compile/slang/+/1588947
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ib0fdcf1fe3cd4eff9cd206ed4049e585597b0d58
-rw-r--r-- | Android.bp | 33 | ||||
-rw-r--r-- | BitWriter_2_9/Android.bp | 9 | ||||
-rw-r--r-- | BitWriter_2_9_func/Android.bp | 9 | ||||
-rw-r--r-- | BitWriter_3_2/Android.bp | 9 | ||||
-rw-r--r-- | StripUnkAttr/Android.bp | 9 |
5 files changed, 69 insertions, 0 deletions
@@ -14,6 +14,39 @@ // limitations under the License. // +package { + default_applicable_licenses: ["frameworks_compile_slang_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: "frameworks_compile_slang_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + "SPDX-license-identifier-BSD", + "SPDX-license-identifier-MIT", + "SPDX-license-identifier-NCSA", + "legacy_unencumbered", + ], + license_text: [ + "NOTICE", + ], +} + cc_defaults { name: "rs-version", cflags: [ diff --git a/BitWriter_2_9/Android.bp b/BitWriter_2_9/Android.bp index 4a6bd28..e47a0d6 100644 --- a/BitWriter_2_9/Android.bp +++ b/BitWriter_2_9/Android.bp @@ -1,5 +1,14 @@ // For the host // ===================================================== +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "frameworks_compile_slang_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_slang_license"], +} + cc_library_host_static { name: "libLLVMBitWriter_2_9", defaults: ["slang-defaults"], diff --git a/BitWriter_2_9_func/Android.bp b/BitWriter_2_9_func/Android.bp index b14d3e6..b4b7c47 100644 --- a/BitWriter_2_9_func/Android.bp +++ b/BitWriter_2_9_func/Android.bp @@ -1,5 +1,14 @@ // For the host // ===================================================== +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "frameworks_compile_slang_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_slang_license"], +} + cc_library_host_static { name: "libLLVMBitWriter_2_9_func", defaults: ["slang-defaults"], diff --git a/BitWriter_3_2/Android.bp b/BitWriter_3_2/Android.bp index 89282cc..f87a2fa 100644 --- a/BitWriter_3_2/Android.bp +++ b/BitWriter_3_2/Android.bp @@ -1,5 +1,14 @@ // For the host and device // ===================================================== +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "frameworks_compile_slang_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_slang_license"], +} + cc_library_static { name: "libLLVMBitWriter_3_2", vendor_available: true, diff --git a/StripUnkAttr/Android.bp b/StripUnkAttr/Android.bp index d7082a7..6dcdbcc 100644 --- a/StripUnkAttr/Android.bp +++ b/StripUnkAttr/Android.bp @@ -1,5 +1,14 @@ // For the host and device // ===================================================== +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "frameworks_compile_slang_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["frameworks_compile_slang_license"], +} + cc_library_static { name: "libStripUnkAttr", vendor_available: true, |