diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2021-10-18 16:10:56 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-10-18 16:10:56 +0000 |
commit | 34d32060ae4e2ece566f87e41293dda5cc28717c (patch) | |
tree | 708185cbb9a0cec87daec03cf6db59aedfa98f08 | |
parent | fcfdc547745b958867edb880bca740a07c3a451a (diff) | |
parent | b4204936d1d99910ca4a98a20c878e4be5398a32 (diff) | |
download | grpcio-compiler-34d32060ae4e2ece566f87e41293dda5cc28717c.tar.gz |
Enable tests am: b4204936d1
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/grpcio-compiler/+/1860668
Change-Id: I6654232a0a3e052e5d293b92f3517ed23676e49c
-rw-r--r-- | Android.bp | 54 | ||||
-rw-r--r-- | cargo2android.json | 5 |
2 files changed, 55 insertions, 4 deletions
@@ -1,4 +1,4 @@ -// This file is generated by cargo2android.py --run --dependencies. +// This file is generated by cargo2android.py --config cargo2android.json. // Do not modify this file as changes will be overridden on upgrade. package { @@ -36,6 +36,8 @@ license { rust_binary_host { name: "grpc_rust_plugin", crate_name: "grpc_rust_plugin", + cargo_env_compat: true, + cargo_pkg_version: "0.9.0", srcs: ["src/bin/grpc_rust_plugin.rs"], edition: "2018", features: [ @@ -49,9 +51,56 @@ rust_binary_host { ], } +rust_test_host { + name: "grpcio-compiler_host_test_src_bin_grpc_rust_plugin", + crate_name: "grpc_rust_plugin", + cargo_env_compat: true, + cargo_pkg_version: "0.9.0", + srcs: ["src/bin/grpc_rust_plugin.rs"], + test_suites: ["general-tests"], + auto_gen_config: true, + test_options: { + unit_test: true, + }, + edition: "2018", + features: [ + "default", + "protobuf", + "protobuf-codec", + ], + rustlibs: [ + "libgrpcio_compiler", + "libprotobuf", + ], +} + +rust_test_host { + name: "grpcio-compiler_host_test_src_lib", + crate_name: "grpcio_compiler", + cargo_env_compat: true, + cargo_pkg_version: "0.9.0", + srcs: ["src/lib.rs"], + test_suites: ["general-tests"], + auto_gen_config: true, + test_options: { + unit_test: true, + }, + edition: "2018", + features: [ + "default", + "protobuf", + "protobuf-codec", + ], + rustlibs: [ + "libprotobuf", + ], +} + rust_library_host { name: "libgrpcio_compiler", crate_name: "grpcio_compiler", + cargo_env_compat: true, + cargo_pkg_version: "0.9.0", srcs: ["src/lib.rs"], edition: "2018", features: [ @@ -63,6 +112,3 @@ rust_library_host { "libprotobuf", ], } - -// dependent_library ["feature_list"] -// protobuf-2.24.1 diff --git a/cargo2android.json b/cargo2android.json new file mode 100644 index 0000000..b7093f4 --- /dev/null +++ b/cargo2android.json @@ -0,0 +1,5 @@ +{ + "dependencies": true, + "run": true, + "tests": true +} |