From 04289e0df20c22869273a6ad4fe576bc0aca574a Mon Sep 17 00:00:00 2001 From: Jeff Vander Stoep Date: Fri, 12 Mar 2021 09:35:35 +0100 Subject: Make num-traits available to virt apex Bug: 178531428 Change-Id: Ic9c1b331e4a3fc6f79bb85953ae8770b2d7972cb --- Android.bp | 6 +++++- patches/Android.bp.patch | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 patches/Android.bp.patch diff --git a/Android.bp b/Android.bp index 5abab3c..6ad858e 100644 --- a/Android.bp +++ b/Android.bp @@ -1,4 +1,4 @@ -// This file is generated by cargo2android.py --device --run --dependencies --tests. +// This file is generated by cargo2android.py --device --run --dependencies --tests --patch=patches/Android.bp.patch. package { default_applicable_licenses: ["external_rust_crates_num-traits_license"], @@ -46,6 +46,10 @@ rust_library { "default", "std", ], + apex_available: [ + "//apex_available:platform", + "com.android.virt", + ], flags: [ "--cfg has_i128", "--cfg has_to_int_unchecked", diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch new file mode 100644 index 0000000..b61b82c --- /dev/null +++ b/patches/Android.bp.patch @@ -0,0 +1,15 @@ +diff --git a/Android.bp b/Android.bp +index 5abab3c..b920d56 100644 +--- a/Android.bp ++++ b/Android.bp +@@ -46,6 +46,10 @@ rust_library { + "default", + "std", + ], ++ apex_available: [ ++ "//apex_available:platform", ++ "com.android.virt", ++ ], + flags: [ + "--cfg has_i128", + "--cfg has_to_int_unchecked", -- cgit v1.2.3