aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorMatthew Maurer <mmaurer@google.com>2023-03-07 17:24:35 -0800
committerMatthew Maurer <mmaurer@google.com>2023-03-07 17:24:35 -0800
commit9dc431f28f32a449c06a3e4d6d230eb2b7dfa6ab (patch)
tree88a1afdae3a6d293bbdba8d3d33a559e427084e6 /Android.bp
parent665dfe79c942bf54752ed4a87fe17dcb9029c40f (diff)
downloadprotobuf-9dc431f28f32a449c06a3e4d6d230eb2b7dfa6ab.tar.gz
Make protobuf available to product and vendor
Bug: 270690570 Test: mma in external/rust/crates Change-Id: I96023e29cabae8dc31d1deba8ee1cd4490942e57
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 03171eb..af1d5f1 100644
--- a/Android.bp
+++ b/Android.bp
@@ -27,6 +27,7 @@ genrule {
rust_library {
name: "libprotobuf",
+ // has rustc warnings
host_supported: true,
crate_name: "protobuf",
cargo_env_compat: true,
@@ -46,11 +47,14 @@ rust_library {
"com.android.compos",
"com.android.virt",
],
+ product_available: true,
+ vendor_available: true,
min_sdk_version: "29",
}
rust_library_host {
name: "libprotobuf_with_serde",
+ // has rustc warnings
crate_name: "protobuf",
cargo_env_compat: true,
cargo_pkg_version: "2.27.1",
@@ -68,4 +72,6 @@ rust_library_host {
"libserde",
],
proc_macros: ["libserde_derive"],
+ product_available: true,
+ vendor_available: true,
}