aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Badour <bbadour@google.com>2021-02-17 16:47:56 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-02-17 16:47:56 +0000
commit2458f3e20ba0df2fe5c40dbace16eb78baf24878 (patch)
tree8574b7b643f49ac85446c377e202f7455a7044da
parent3c2154515215b82ad470dd7ae7b87081a4812f60 (diff)
parent23dda915df2de0f32e74bc672cf9b6e87a960b11 (diff)
downloadpdfium-2458f3e20ba0df2fe5c40dbace16eb78baf24878.tar.gz
[LSC] Add LOCAL_LICENSE_KINDS to external/pdfium am: 293a4ae97d am: 23dda915df
Original change: https://android-review.googlesource.com/c/platform/external/pdfium/+/1588580 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Iab57e745af4c742aee89472487b5a9c4bc659620
-rw-r--r--Android.bp40
-rw-r--r--constants/Android.bp10
-rw-r--r--core/fdrm/Android.bp9
-rw-r--r--core/fpdfapi/cmaps/Android.bp9
-rw-r--r--core/fpdfapi/edit/Android.bp9
-rw-r--r--core/fpdfapi/font/Android.bp9
-rw-r--r--core/fpdfapi/page/Android.bp9
-rw-r--r--core/fpdfapi/parser/Android.bp9
-rw-r--r--core/fpdfapi/render/Android.bp9
-rw-r--r--core/fpdfdoc/Android.bp9
-rw-r--r--core/fpdftext/Android.bp9
-rw-r--r--core/fxcodec/Android.bp9
-rw-r--r--core/fxcrt/Android.bp9
-rw-r--r--core/fxge/Android.bp9
-rw-r--r--fpdfsdk/Android.bp9
-rw-r--r--fpdfsdk/formfiller/Android.bp9
-rw-r--r--fpdfsdk/pwl/Android.bp9
-rw-r--r--fxjs/Android.bp9
-rw-r--r--third_party/Android.bp16
19 files changed, 208 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp
index ed6396aa1..750884b16 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,3 +1,43 @@
+// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
+// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
+// DEPENDING ON IT IN YOUR PROJECT. ***
+package {
+ default_applicable_licenses: ["external_pdfium_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_pdfium_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-Apache-2.0",
+ "SPDX-license-identifier-Artistic",
+ "SPDX-license-identifier-BSD",
+ "SPDX-license-identifier-FTL",
+ "SPDX-license-identifier-MIT",
+ "SPDX-license-identifier-OFL", // by exception only
+ "SPDX-license-identifier-Zlib",
+ "SPDX-license-identifier-libtiff",
+ "legacy_unencumbered",
+ ],
+ license_text: [
+ "LICENSE",
+ ],
+}
+
cc_defaults {
name: "pdfium-common",
cflags: [
diff --git a/constants/Android.bp b/constants/Android.bp
index 23c97557d..caa06a7c9 100644
--- a/constants/Android.bp
+++ b/constants/Android.bp
@@ -1,6 +1,14 @@
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "external_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_headers {
name: "libpdfium-constants",
export_include_dirs: ["."],
visibility: ["//external/pdfium:__subpackages__"],
}
-
diff --git a/core/fdrm/Android.bp b/core/fdrm/Android.bp
index c35475a0f..574a9ffe5 100644
--- a/core/fdrm/Android.bp
+++ b/core/fdrm/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-fdrm",
defaults: ["pdfium-core"],
diff --git a/core/fpdfapi/cmaps/Android.bp b/core/fpdfapi/cmaps/Android.bp
index e2d5067b2..27e34391c 100644
--- a/core/fpdfapi/cmaps/Android.bp
+++ b/core/fpdfapi/cmaps/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-cmaps",
defaults: ["pdfium-core"],
diff --git a/core/fpdfapi/edit/Android.bp b/core/fpdfapi/edit/Android.bp
index bbd2b6341..1822b06c4 100644
--- a/core/fpdfapi/edit/Android.bp
+++ b/core/fpdfapi/edit/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-edit",
defaults: ["pdfium-core"],
diff --git a/core/fpdfapi/font/Android.bp b/core/fpdfapi/font/Android.bp
index c4054f4c0..ae6301e1d 100644
--- a/core/fpdfapi/font/Android.bp
+++ b/core/fpdfapi/font/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-font",
defaults: ["pdfium-core"],
diff --git a/core/fpdfapi/page/Android.bp b/core/fpdfapi/page/Android.bp
index 650e4f802..e44cca217 100644
--- a/core/fpdfapi/page/Android.bp
+++ b/core/fpdfapi/page/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-page",
defaults: ["pdfium-core"],
diff --git a/core/fpdfapi/parser/Android.bp b/core/fpdfapi/parser/Android.bp
index 6864dfac6..cacb42e03 100644
--- a/core/fpdfapi/parser/Android.bp
+++ b/core/fpdfapi/parser/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-parser",
defaults: ["pdfium-core"],
diff --git a/core/fpdfapi/render/Android.bp b/core/fpdfapi/render/Android.bp
index 60818b5ed..79b0db617 100644
--- a/core/fpdfapi/render/Android.bp
+++ b/core/fpdfapi/render/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-render",
defaults: ["pdfium-core"],
diff --git a/core/fpdfdoc/Android.bp b/core/fpdfdoc/Android.bp
index 5bb33ea5e..6931dc5a3 100644
--- a/core/fpdfdoc/Android.bp
+++ b/core/fpdfdoc/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-fpdfdoc",
defaults: ["pdfium-core"],
diff --git a/core/fpdftext/Android.bp b/core/fpdftext/Android.bp
index 711f35dcd..b3b4ef0f0 100644
--- a/core/fpdftext/Android.bp
+++ b/core/fpdftext/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-fpdftext",
defaults: ["pdfium-core"],
diff --git a/core/fxcodec/Android.bp b/core/fxcodec/Android.bp
index b5d78d1a7..7e5e69b45 100644
--- a/core/fxcodec/Android.bp
+++ b/core/fxcodec/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-fxcodec",
defaults: ["pdfium-core"],
diff --git a/core/fxcrt/Android.bp b/core/fxcrt/Android.bp
index 520765614..5f6cb4105 100644
--- a/core/fxcrt/Android.bp
+++ b/core/fxcrt/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-fxcrt",
defaults: ["pdfium-core"],
diff --git a/core/fxge/Android.bp b/core/fxge/Android.bp
index fe648c669..973ca03d3 100644
--- a/core/fxge/Android.bp
+++ b/core/fxge/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-fxge",
defaults: ["pdfium-core"],
diff --git a/fpdfsdk/Android.bp b/fpdfsdk/Android.bp
index af37009aa..f9c3861e3 100644
--- a/fpdfsdk/Android.bp
+++ b/fpdfsdk/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-fpdfsdk",
defaults: ["pdfium-core"],
diff --git a/fpdfsdk/formfiller/Android.bp b/fpdfsdk/formfiller/Android.bp
index 5dc4ba68c..960992a1a 100644
--- a/fpdfsdk/formfiller/Android.bp
+++ b/fpdfsdk/formfiller/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-formfiller",
defaults: ["pdfium-core"],
diff --git a/fpdfsdk/pwl/Android.bp b/fpdfsdk/pwl/Android.bp
index d57a01f33..74fc563a7 100644
--- a/fpdfsdk/pwl/Android.bp
+++ b/fpdfsdk/pwl/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-pwl",
defaults: ["pdfium-core"],
diff --git a/fxjs/Android.bp b/fxjs/Android.bp
index 9616816ea..2dc3861ab 100644
--- a/fxjs/Android.bp
+++ b/fxjs/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_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_library_static {
name: "libpdfium-fxjs",
defaults: ["pdfium-core"],
diff --git a/third_party/Android.bp b/third_party/Android.bp
index 824544efb..6571fb1bd 100644
--- a/third_party/Android.bp
+++ b/third_party/Android.bp
@@ -1,3 +1,18 @@
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "external_pdfium_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Artistic
+ // SPDX-license-identifier-BSD
+ // SPDX-license-identifier-FTL
+ // SPDX-license-identifier-MIT
+ // SPDX-license-identifier-Zlib
+ // SPDX-license-identifier-libtiff
+ // legacy_unencumbered
+ default_applicable_licenses: ["external_pdfium_license"],
+}
+
cc_defaults {
name: "pdfium-third-party",
defaults: [
@@ -97,4 +112,3 @@ cc_library_static {
"skia_shared/*.cpp",
],
}
-