Snap for 7144110 from 4eb6e09a0e9505c26c8a92ad04d85691482e8174 to sc-v2-release
Change-Id: Idc03172d292f4c2775f429b5cf0fef76390dc1fb
diff --git a/Android.bp b/Android.bp
index d0ceb10..51cd41a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,3 +1,39 @@
+package {
+ default_applicable_licenses: ["external_tinyxml2_license"],
+}
+
+license {
+ name: "external_tinyxml2_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-BSD",
+ "SPDX-license-identifier-MIT",
+ "SPDX-license-identifier-Zlib",
+ "legacy_unencumbered",
+ ],
+ license_text: [
+ "LICENSE.txt",
+ "NOTICE",
+ ],
+}
+
+// The jquery stuff in docs/ is a bit ambiguous with its use of and/or when talking about the GPL,
+// so let's just make it clear that we don't use any of that stuff anyway...
+license {
+ name: "external_tinyxml2_docs_license",
+ license_kinds: ["SPDX-license-identifier-GPL"],
+ license_text: [
+ "LICENSE.txt",
+ "NOTICE",
+ ],
+}
+// ...and prevent anyone from trying to do so:
+filegroup {
+ name: "external_tinyxml2_docs",
+ srcs: ["docs/**/*"],
+ visibility: ["//visibility:private"],
+}
+
cc_library {
name: "libtinyxml2",
host_supported: true,