aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2020-07-18 02:03:58 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-07-18 02:03:58 +0000
commitb869963f20d4229529d20171ae3befe3a8a1dddb (patch)
tree6f56fc36aba82f1185de851477a9c4d41a1ec695
parent20874f244e25daf90fe83f5f5bac41477fd7dc50 (diff)
parent11ed12998c31568b2ae7d762b7f3befad328d3b3 (diff)
downloadgetrandom-b869963f20d4229529d20171ae3befe3a8a1dddb.tar.gz
Share srcs in rust_defaults am: 70255fc360 am: 8c3e687c22 am: 11ed12998c
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/getrandom/+/1366106 Change-Id: I89551c133e95f892c36bd3857b405a87e9cdfb93
-rw-r--r--Android.bp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Android.bp b/Android.bp
index 267bfe1..e0e9d10 100644
--- a/Android.bp
+++ b/Android.bp
@@ -3,6 +3,7 @@
rust_defaults {
name: "getrandom_defaults",
crate_name: "getrandom",
+ srcs: ["src/lib.rs"],
test_suites: ["general-tests"],
auto_gen_config: true,
edition: "2018",
@@ -15,18 +16,17 @@ rust_defaults {
rust_test_host {
name: "getrandom_host_test_src_lib",
defaults: ["getrandom_defaults"],
- srcs: ["src/lib.rs"],
}
rust_test {
name: "getrandom_device_test_src_lib",
defaults: ["getrandom_defaults"],
- srcs: ["src/lib.rs"],
}
rust_defaults {
name: "getrandom_defaults_common",
crate_name: "common",
+ srcs: ["tests/common.rs"],
test_suites: ["general-tests"],
auto_gen_config: true,
edition: "2018",
@@ -40,13 +40,11 @@ rust_defaults {
rust_test_host {
name: "getrandom_host_test_tests_common",
defaults: ["getrandom_defaults_common"],
- srcs: ["tests/common.rs"],
}
rust_test {
name: "getrandom_device_test_tests_common",
defaults: ["getrandom_defaults_common"],
- srcs: ["tests/common.rs"],
}
rust_library {