aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp31
1 files changed, 10 insertions, 21 deletions
diff --git a/Android.bp b/Android.bp
index fa9215f..43c3c35 100644
--- a/Android.bp
+++ b/Android.bp
@@ -46,7 +46,6 @@ genrule {
rust_library {
name: "libvulkano",
- // has rustc warnings
host_supported: true,
crate_name: "vulkano",
cargo_env_compat: true,
@@ -72,18 +71,23 @@ rust_library {
],
}
-rust_defaults {
- name: "vulkano_test_defaults",
+rust_test {
+ name: "vulkano_test_src_lib",
+ host_supported: true,
crate_name: "vulkano",
- // has rustc warnings
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.25.0",
srcs: [
"src/lib.rs",
":copy_vulkano_build_out",
],
- cargo_env_compat: true,
- cargo_pkg_version: "0.25.0",
test_suites: ["general-tests"],
auto_gen_config: true,
+ // Manually disabled as these tests depend on specific graphics libraries
+ // being available on the machine running the tests.
+ test_options: {
+ unit_test: false,
+ },
edition: "2018",
rustlibs: [
"libash_rust",
@@ -96,18 +100,3 @@ rust_defaults {
"libsmallvec",
],
}
-
-rust_test_host {
- name: "vulkano_host_test_src_lib",
- defaults: ["vulkano_test_defaults"],
- // Manually disabled as these tests depend on specific graphics libraries
- // being available on the machine running the tests.
- test_options: {
- unit_test: false,
- },
-}
-
-rust_test {
- name: "vulkano_device_test_src_lib",
- defaults: ["vulkano_test_defaults"],
-}