aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Badour <bbadour@google.com>2021-02-16 23:17:59 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-02-16 23:17:59 +0000
commite1a3385b92a60ac0e251ad39f4923bd996a4e37b (patch)
tree6990be9557cd0b2a01c3c4c3c604dd2ae257f27a
parentd19fdd1fcaf7a7ac73cdeb0946ca0491eea61d6f (diff)
parentd04303a5eb90f523b7ef09e19bb0100ef1c6dff1 (diff)
downloadgoogle-breakpad-e1a3385b92a60ac0e251ad39f4923bd996a4e37b.tar.gz
[LSC] Add LOCAL_LICENSE_KINDS to external/google-breakpad am: a29f0590a4 am: 61ebad0fd0 am: 95b3c38624 am: d04303a5eb
Original change: https://android-review.googlesource.com/c/platform/external/google-breakpad/+/1588975 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I9d9427709cb6caedf023ecbc32915345f6cca9ca
-rw-r--r--Android.bp38
-rw-r--r--android/google_breakpad/Android.mk3
-rw-r--r--android/sample_app/jni/Android.mk3
3 files changed, 44 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index d76c9e22..e6fd2cc7 100644
--- a/Android.bp
+++ b/Android.bp
@@ -14,6 +14,44 @@
// Static library.
// =================================================
+package {
+ default_applicable_licenses: ["external_google-breakpad_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_google-breakpad_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-APSL-2.0",
+ "SPDX-license-identifier-Apache-2.0",
+ "SPDX-license-identifier-Artistic",
+ "SPDX-license-identifier-BSD",
+ "SPDX-license-identifier-FSFAP",
+ "SPDX-license-identifier-ISC",
+ "SPDX-license-identifier-MIT",
+ "SPDX-license-identifier-Unicode-DFS",
+ "legacy_notice",
+ "legacy_unencumbered",
+ ],
+ license_text: [
+ "LICENSE",
+ ],
+}
+
cc_library_static {
name: "breakpad_client",
host_supported: true,
diff --git a/android/google_breakpad/Android.mk b/android/google_breakpad/Android.mk
index 86184927..252f1af6 100644
--- a/android/google_breakpad/Android.mk
+++ b/android/google_breakpad/Android.mk
@@ -56,6 +56,9 @@ LOCAL_PATH := $(call my-dir)/../..
include $(CLEAR_VARS)
LOCAL_MODULE := breakpad_client
+LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD
+LOCAL_LICENSE_CONDITIONS := notice
+LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../LICENSE
LOCAL_CPP_EXTENSION := .cc
diff --git a/android/sample_app/jni/Android.mk b/android/sample_app/jni/Android.mk
index 61487b52..7ffb4227 100644
--- a/android/sample_app/jni/Android.mk
+++ b/android/sample_app/jni/Android.mk
@@ -31,6 +31,9 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := test_google_breakpad
+LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD
+LOCAL_LICENSE_CONDITIONS := notice
+LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../LICENSE
LOCAL_SRC_FILES := test_breakpad.cpp
LOCAL_STATIC_LIBRARIES += breakpad_client
include $(BUILD_EXECUTABLE)