diff options
author | Victor Hsieh <victorhsieh@google.com> | 2021-03-15 16:47:28 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-03-15 16:47:28 +0000 |
commit | 4d9e408569bcfeb67c3cd8da1f350db98af52aa6 (patch) | |
tree | 6c3afa3ae1368d57850eba6b17fc94eb4386a3f6 | |
parent | 032c1fc274991798df43e9c37acbf36354909aeb (diff) | |
parent | 59ca1d53d81673e491714b0846147a559fb7caa5 (diff) | |
download | textwrap-4d9e408569bcfeb67c3cd8da1f350db98af52aa6.tar.gz |
Allow textwrap crate in com.android.virt apex am: 59ca1d53d8
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/textwrap/+/1633640
Change-Id: Id58c929044f4d42a23298ee6ff75c3ff95fa2b8f
-rw-r--r-- | Android.bp | 23 | ||||
-rw-r--r-- | TEST_MAPPING | 3 | ||||
-rw-r--r-- | patches/Android.bp.patch | 13 |
3 files changed, 21 insertions, 18 deletions
@@ -1,27 +1,14 @@ -// This file is generated by cargo2android.py --run --dependencies --device --features=. +// This file is generated by cargo2android.py --run --dependencies --device --features= --patch=patches/Android.bp.patch. // Do not modify this file as changes will be overridden on upgrade. -package { - default_applicable_licenses: ["external_rust_crates_textwrap_license"], -} - -// Added automatically by a large-scale-change -// See: http://go/android-license-faq -license { - name: "external_rust_crates_textwrap_license", - visibility: [":__subpackages__"], - license_kinds: [ - "SPDX-license-identifier-MIT", - ], - license_text: [ - "LICENSE", - ], -} - rust_library { name: "libtextwrap", host_supported: true, crate_name: "textwrap", srcs: ["src/lib.rs"], edition: "2018", + apex_available: [ + "//apex_available:platform", + "com.android.virt", + ], } diff --git a/TEST_MAPPING b/TEST_MAPPING index f1cd786..661ac5c 100644 --- a/TEST_MAPPING +++ b/TEST_MAPPING @@ -5,6 +5,9 @@ "name": "authfs_device_test_src_lib" }, { + "name": "vpnprofilestore_test" + }, + { "name": "keystore2_test" }, { diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch new file mode 100644 index 0000000..356e1c2 --- /dev/null +++ b/patches/Android.bp.patch @@ -0,0 +1,13 @@ +diff --git a/Android.bp b/Android.bp +index f879002..893238d 100644 +--- a/Android.bp ++++ b/Android.bp +@@ -7,4 +7,8 @@ rust_library { + crate_name: "textwrap", + srcs: ["src/lib.rs"], + edition: "2018", ++ apex_available: [ ++ "//apex_available:platform", ++ "com.android.virt", ++ ], + } |