diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-04-05 02:06:11 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-04-05 02:06:11 +0000 |
commit | 95ed3a09675458fc9f102704acb84d85cd814db2 (patch) | |
tree | 2ce832b3343f38c0e0e2cf946bd7fae274d4101b | |
parent | b5490c3c14e9bfc504ec9bcfa03e32b9199a8984 (diff) | |
parent | a472ee8bd83f03a51b6f14d84841d2eb6de1755b (diff) | |
download | grpcio-compiler-android-vts-14.0_r4.tar.gz |
Snap for 9883577 from a472ee8bd83f03a51b6f14d84841d2eb6de1755b to udc-releaseandroid-vts-14.0_r4android-vts-14.0_r3android-vts-14.0_r2android-vts-14.0_r1android-security-14.0.0_r9android-security-14.0.0_r8android-security-14.0.0_r7android-security-14.0.0_r6android-security-14.0.0_r5android-security-14.0.0_r4android-security-14.0.0_r3android-security-14.0.0_r2android-security-14.0.0_r1android-platform-14.0.0_r8android-platform-14.0.0_r7android-platform-14.0.0_r6android-platform-14.0.0_r5android-platform-14.0.0_r4android-platform-14.0.0_r3android-platform-14.0.0_r2android-platform-14.0.0_r1android-cts-14.0_r4android-cts-14.0_r3android-cts-14.0_r2android-cts-14.0_r1android-14.0.0_r28android-14.0.0_r2android-14.0.0_r15android-14.0.0_r14android-14.0.0_r13android-14.0.0_r1android14-tests-releaseandroid14-security-releaseandroid14-s2-releaseandroid14-s1-releaseandroid14-releaseandroid14-platform-release
Change-Id: I8b5e0a23df9138c3d788ec2cb1d09a8ae00f4739
-rw-r--r-- | Android.bp | 8 | ||||
-rw-r--r-- | cargo2android.json | 3 | ||||
-rw-r--r-- | patches/Android.bp.patch | 36 |
3 files changed, 44 insertions, 3 deletions
@@ -47,8 +47,10 @@ rust_binary_host { ], rustlibs: [ "libgrpcio_compiler", - "libprotobuf", + "libprotobuf_deprecated", ], + product_available: true, + vendor_available: true, } rust_library_host { @@ -64,6 +66,8 @@ rust_library_host { "protobuf-codec", ], rustlibs: [ - "libprotobuf", + "libprotobuf_deprecated", ], + product_available: true, + vendor_available: true, } diff --git a/cargo2android.json b/cargo2android.json index 9b0d064..595ea16 100644 --- a/cargo2android.json +++ b/cargo2android.json @@ -1,5 +1,6 @@ { + "patch": "patches/Android.bp.patch", "dependencies": true, "run": true, "tests": true -}
\ No newline at end of file +} diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch new file mode 100644 index 0000000..e0dbe5c --- /dev/null +++ b/patches/Android.bp.patch @@ -0,0 +1,36 @@ +From ad56b17ba9a2ceb34a603a58899fe0469c46e2ed Mon Sep 17 00:00:00 2001 +From: Jeff Vander Stoep <jeffv@google.com> +Date: Wed, 22 Mar 2023 15:35:13 +0100 +Subject: [PATCH] Use version 2.x of the protobuf crate + +Test: TH +Bug: 270895633 +Change-Id: Ida6c42df913b57baadb0907f741627c3261a2f9c +--- + Android.bp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Android.bp b/Android.bp +index fb52b72..36ef473 100644 +--- a/Android.bp ++++ b/Android.bp +@@ -47,7 +47,7 @@ rust_binary_host { + ], + rustlibs: [ + "libgrpcio_compiler", +- "libprotobuf", ++ "libprotobuf_deprecated", + ], + } + +@@ -64,6 +64,6 @@ rust_library_host { + "protobuf-codec", + ], + rustlibs: [ +- "libprotobuf", ++ "libprotobuf_deprecated", + ], + } +-- +2.40.0.348.gf938b09366-goog + |