diff options
author | Roshan Pius <rpius@google.com> | 2022-05-03 02:11:30 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2022-05-03 02:11:30 +0000 |
commit | bb9d69257fd79cb33fbc696f7f9762b9968f298e (patch) | |
tree | 2a04ea0a25343d9032de02274ebf4f5a852c7dfe | |
parent | 9c17b30ea01deaf0a691413329390da75ee71bda (diff) | |
parent | ad4d459428026c82db2e7ed398576ea0aa9afc1b (diff) | |
download | Uwb-bb9d69257fd79cb33fbc696f7f9762b9968f298e.tar.gz |
Merge "uwb(native): Adding host tests for libuwb_uci_jni_rust_tests" into tm-dev
-rwxr-xr-x | service/uci/jni/Android.bp | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/service/uci/jni/Android.bp b/service/uci/jni/Android.bp index d6a27b03..f6dbe925 100755 --- a/service/uci/jni/Android.bp +++ b/service/uci/jni/Android.bp @@ -21,7 +21,8 @@ rust_defaults { prefer_rlib: true, apex_available: [ "com.android.uwb", - ] + ], + host_supported: true, } rust_ffi_shared { @@ -32,11 +33,29 @@ rust_ffi_shared { rust_test { name: "libuwb_uci_jni_rust_tests", defaults: ["libuwb_uci_jni_rust_defaults"], - test_suites: [ - "general-tests", - "mts-uwb" - ], - test_config_template: "uwb_rust_test_config_template.xml", + target: { + android: { + test_suites: [ + "general-tests", + "mts-uwb" + ], + test_config_template: "uwb_rust_test_config_template.xml", + }, + host: { + test_suites: [ + "general-tests", + ], + data_libs: [ + "libandroid_runtime_lazy", + "libbase", + "libbinder", + "libbinder_ndk", + "libcutils", + "liblog", + "libutils", + ], + }, + }, // Support multilib variants (using different suffix per sub-architecture), which is needed on // build targets with secondary architectures, as the MTS test suite packaging logic flattens // all test artifacts into a single `testcases` directory. |