diff options
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 40 |
1 files changed, 35 insertions, 5 deletions
@@ -1,4 +1,7 @@ // This file is generated by cargo2android.py --run --device --tests. +// Manually split host and device tests, +// and link in static libraries for device tests. +// But, device tests cannot link with both libstd.static and libslab. rust_library_rlib { name: "libslab", @@ -8,9 +11,8 @@ rust_library_rlib { edition: "2015", } -rust_test { - name: "slab_tests_slab", - host_supported: true, +rust_test_host { + name: "slab_host_tests_slab", crate_name: "slab", srcs: ["src/lib.rs"], test_suites: ["general-tests"], @@ -19,8 +21,21 @@ rust_test { } rust_test { - name: "slab_tests_slab1", - host_supported: true, + name: "slab_device_tests_slab", + crate_name: "slab", + srcs: ["src/lib.rs"], + test_suites: ["general-tests"], + auto_gen_config: true, + edition: "2015", + rlibs: [ + "libstd.static", + "libtest.static", + "libterm.static", + ], +} + +rust_test_host { + name: "slab_host_tests_slab1", crate_name: "slab", srcs: ["tests/slab.rs"], test_suites: ["general-tests"], @@ -30,3 +45,18 @@ rust_test { "libslab", ], } + +// rust_test { +// name: "slab_device_tests_slab1", +// crate_name: "slab", +// srcs: ["tests/slab.rs"], +// test_suites: ["general-tests"], +// auto_gen_config: true, +// edition: "2015", +// rlibs: [ +// "libslab", +// "libstd.static", +// "libtest.static", +// "libterm.static", +// ], +// } |