Cleanup license metadata in external/rust/crates/googletest. am: 030188bb2a
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/googletest/+/3205706
Change-Id: I968ab96192fb97ec38a231f3e9cf23c7e36aff6a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/Android.bp b/Android.bp
index 3afe244..b849242 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,7 +1,16 @@
// This file is generated by cargo_embargo.
-// Do not modify this file after the first "rust_*" or "genrule" module
-// because the changes will be overridden on upgrade.
-// Content before the first "rust_*" or "genrule" module is preserved.
+// Do not modify this file because the changes will be overridden on upgrade.
+
+package {
+ default_applicable_licenses: ["external_rust_crates_googletest_license"],
+}
+
+license {
+ name: "external_rust_crates_googletest_license",
+ visibility: [":__subpackages__"],
+ license_kinds: ["SPDX-license-identifier-Apache-2.0"],
+ license_text: ["LICENSE"],
+}
rust_library {
name: "libgoogletest_rust",
diff --git a/cargo_embargo.json b/cargo_embargo.json
index bccaabe..ba25625 100644
--- a/cargo_embargo.json
+++ b/cargo_embargo.json
@@ -1,4 +1,9 @@
{
+ "package": {
+ "googletest": {
+ "license_text": "LICENSE"
+ }
+ },
"module_name_overrides": {
"libgoogletest": "libgoogletest_rust"
},