diff options
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 109 |
1 files changed, 16 insertions, 93 deletions
@@ -1,4 +1,4 @@ -// This file is generated by cargo2android.py --run --dependencies --device --tests. +// This file is generated by cargo2android.py --config cargo2android.json. // Do not modify this file as changes will be overridden on upgrade. package { @@ -22,6 +22,8 @@ rust_library { name: "libtokio_test", host_supported: true, crate_name: "tokio_test", + cargo_env_compat: true, + cargo_pkg_version: "0.4.2", srcs: ["src/lib.rs"], edition: "2018", rustlibs: [ @@ -34,38 +36,10 @@ rust_library { } rust_defaults { - name: "tokio-test_defaults", - crate_name: "tokio_test", - srcs: ["src/lib.rs"], - test_suites: ["general-tests"], - auto_gen_config: true, - edition: "2018", - rustlibs: [ - "libasync_stream", - "libbytes", - "libfutures_core", - "libfutures_util", - "libtokio", - "libtokio_stream", - ], -} - -rust_test_host { - name: "tokio-test_host_test_src_lib", - defaults: ["tokio-test_defaults"], - test_options: { - unit_test: true, - }, -} - -rust_test { - name: "tokio-test_device_test_src_lib", - defaults: ["tokio-test_defaults"], -} - -rust_defaults { - name: "tokio-test_defaults_tokio_test", + name: "tokio-test_test_defaults", crate_name: "tokio_test", + cargo_env_compat: true, + cargo_pkg_version: "0.4.2", test_suites: ["general-tests"], auto_gen_config: true, edition: "2018", @@ -80,9 +54,10 @@ rust_defaults { ], } -rust_test_host { - name: "tokio-test_host_test_tests_block_on", - defaults: ["tokio-test_defaults_tokio_test"], +rust_test { + name: "tokio-test_test_tests_block_on", + defaults: ["tokio-test_test_defaults"], + host_supported: true, srcs: ["tests/block_on.rs"], test_options: { unit_test: true, @@ -90,14 +65,9 @@ rust_test_host { } rust_test { - name: "tokio-test_device_test_tests_block_on", - defaults: ["tokio-test_defaults_tokio_test"], - srcs: ["tests/block_on.rs"], -} - -rust_test_host { - name: "tokio-test_host_test_tests_io", - defaults: ["tokio-test_defaults_tokio_test"], + name: "tokio-test_test_tests_io", + defaults: ["tokio-test_test_defaults"], + host_supported: true, srcs: ["tests/io.rs"], test_options: { unit_test: true, @@ -105,58 +75,11 @@ rust_test_host { } rust_test { - name: "tokio-test_device_test_tests_io", - defaults: ["tokio-test_defaults_tokio_test"], - srcs: ["tests/io.rs"], -} - -rust_test_host { - name: "tokio-test_host_test_tests_macros", - defaults: ["tokio-test_defaults_tokio_test"], + name: "tokio-test_test_tests_macros", + defaults: ["tokio-test_test_defaults"], + host_supported: true, srcs: ["tests/macros.rs"], test_options: { unit_test: true, }, } - -rust_test { - name: "tokio-test_device_test_tests_macros", - defaults: ["tokio-test_defaults_tokio_test"], - srcs: ["tests/macros.rs"], -} - -// dependent_library ["feature_list"] -// async-stream-0.3.1 -// async-stream-impl-0.3.1 -// autocfg-1.0.1 -// bytes-1.0.1 "default,std" -// cfg-if-1.0.0 -// futures-core-0.3.15 "alloc,default,std" -// futures-macro-0.3.15 -// futures-task-0.3.15 "alloc,std" -// futures-util-0.3.15 "alloc,async-await,async-await-macro,default,futures-macro,proc-macro-hack,proc-macro-nested,slab,std" -// instant-0.1.9 -// libc-0.2.94 "default,std" -// lock_api-0.4.4 -// log-0.4.14 -// memchr-2.4.0 "default,std" -// mio-0.7.11 "default,net,os-ext,os-poll,os-util,tcp,udp,uds" -// num_cpus-1.13.0 -// once_cell-1.7.2 "alloc,default,race,std" -// parking_lot-0.11.1 "default" -// parking_lot_core-0.8.3 -// pin-project-lite-0.2.6 -// pin-utils-0.1.0 -// proc-macro-hack-0.5.19 -// proc-macro-nested-0.1.7 -// proc-macro2-1.0.26 "default,proc-macro" -// quote-1.0.9 "default,proc-macro" -// scopeguard-1.1.0 -// signal-hook-registry-1.3.0 -// slab-0.4.3 "default,std" -// smallvec-1.6.1 -// syn-1.0.72 "clone-impls,default,derive,extra-traits,full,parsing,printing,proc-macro,quote,visit-mut" -// tokio-1.6.0 "bytes,default,fs,full,io-std,io-util,libc,macros,memchr,mio,net,num_cpus,once_cell,parking_lot,process,rt,rt-multi-thread,signal,signal-hook-registry,sync,test-util,time,tokio-macros,winapi" -// tokio-macros-1.2.0 -// tokio-stream-0.1.6 "default,time" -// unicode-xid-0.2.2 "default" |