blob: f4d86956b0954c7ae203a96c2c69e99d63f60754 [file] [log] [blame]
Alan Stokeseb97d4a2021-08-26 14:24:32 +01001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5rust_binary {
Alan Stokes16fb8552022-02-10 15:07:27 +00006 name: "compos_verify",
7 srcs: ["verify.rs"],
Nikita Ioffeda1b2732023-09-04 13:46:56 +01008 defaults: ["avf_build_flags_rust"],
Alan Stokes6472ccd2022-08-31 13:41:28 +01009 edition: "2021",
Alan Stokeseb97d4a2021-08-26 14:24:32 +010010 rustlibs: [
Alan Stokeseb97d4a2021-08-26 14:24:32 +010011 "compos_aidl_interface-rust",
Alan Stokes17fd36a2021-09-06 17:22:37 +010012 "libandroid_logger",
Alan Stokeseb97d4a2021-08-26 14:24:32 +010013 "libanyhow",
Alan Stokeseb97d4a2021-08-26 14:24:32 +010014 "libbinder_rs",
Jeff Vander Stoepa8dc2712022-07-29 02:33:45 +020015 "libclap",
Alan Stokes17fd36a2021-09-06 17:22:37 +010016 "libcompos_common",
Alan Stokes16fb8552022-02-10 15:07:27 +000017 "libcompos_verify_native_rust",
Alan Stokes17fd36a2021-09-06 17:22:37 +010018 "liblog_rust",
Andrew Walbrand0ef4002022-05-16 16:14:10 +000019 "libvmclient",
Alan Stokeseb97d4a2021-08-26 14:24:32 +010020 ],
21 prefer_rlib: true,
Alan Stokeseb97d4a2021-08-26 14:24:32 +010022 apex_available: [
23 "com.android.compos",
24 ],
25}
Andrew Walbranda8786d2022-12-01 14:54:27 +000026
27rust_test {
28 name: "compos_verify.test",
29 srcs: ["verify.rs"],
Nikita Ioffeda1b2732023-09-04 13:46:56 +010030 defaults: ["avf_build_flags_rust"],
Andrew Walbranda8786d2022-12-01 14:54:27 +000031 edition: "2021",
32 rustlibs: [
33 "compos_aidl_interface-rust",
34 "libandroid_logger",
35 "libanyhow",
36 "libbinder_rs",
37 "libclap",
38 "libcompos_common",
39 "libcompos_verify_native_rust",
40 "liblog_rust",
41 "libvmclient",
42 ],
43 prefer_rlib: true,
44 test_suites: ["general-tests"],
45}