[LSC] Add LOCAL_LICENSE_KINDS to frameworks/compile/libbcc
Added SPDX-license-identifier-Apache-2.0 to:
bcinfo/tools/Android.bp
lib/Android.bp
tools/Android.bp
tools/bcc/Android.bp
tools/bcc_compat/Android.bp
tools/bcc_strip_attr/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
SPDX-license-identifier-MIT SPDX-license-identifier-NCSA
legacy_unencumbered
to:
Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-NCSA
to:
bcinfo/Android.bp
bcinfo/Wrap/Android.bp
Added SPDX-license-identifier-NCSA
to:
bcinfo/BitReader_2_7/Android.bp
bcinfo/BitReader_3_0/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: I3e5db60370f5eecc6677fabb3e4b6f5971e0d512
diff --git a/Android.bp b/Android.bp
index 56e22a2..e7800af 100644
--- a/Android.bp
+++ b/Android.bp
@@ -14,6 +14,39 @@
// limitations under the License.
//
+package {
+ default_applicable_licenses: ["frameworks_compile_libbcc_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_libbcc_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: "libbcc-defaults",
defaults: [