diff --git a/Android.bp b/Android.bp index d0ceb1058a8c8599f5d8cdef14bfd2ba92bce84b..51cd41a60346478e787895cf843c3556f3def068 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,