blob: 6fba1fd4f1f1429c403bae1eae89342bc959d180 [file] [log] [blame]
Alan Stokeseb97d4a2021-08-26 14:24:32 +01001package {
Aditya Choudhary53696172024-02-05 15:46:19 +00002 default_team: "trendy_team_virtualization",
Alan Stokeseb97d4a2021-08-26 14:24:32 +01003 default_applicable_licenses: ["Android-Apache-2.0"],
4}
5
6rust_binary {
Alan Stokes16fb8552022-02-10 15:07:27 +00007 name: "compos_verify",
8 srcs: ["verify.rs"],
Nikita Ioffeda1b2732023-09-04 13:46:56 +01009 defaults: ["avf_build_flags_rust"],
Alan Stokes6472ccd2022-08-31 13:41:28 +010010 edition: "2021",
Alan Stokeseb97d4a2021-08-26 14:24:32 +010011 rustlibs: [
Alan Stokeseb97d4a2021-08-26 14:24:32 +010012 "compos_aidl_interface-rust",
Alan Stokes17fd36a2021-09-06 17:22:37 +010013 "libandroid_logger",
Alan Stokeseb97d4a2021-08-26 14:24:32 +010014 "libanyhow",
Alan Stokeseb97d4a2021-08-26 14:24:32 +010015 "libbinder_rs",
Jeff Vander Stoepa8dc2712022-07-29 02:33:45 +020016 "libclap",
Alan Stokes17fd36a2021-09-06 17:22:37 +010017 "libcompos_common",
Alan Stokes16fb8552022-02-10 15:07:27 +000018 "libcompos_verify_native_rust",
Alan Stokes17fd36a2021-09-06 17:22:37 +010019 "liblog_rust",
Andrew Walbrand0ef4002022-05-16 16:14:10 +000020 "libvmclient",
Alan Stokeseb97d4a2021-08-26 14:24:32 +010021 ],
22 prefer_rlib: true,
Alan Stokeseb97d4a2021-08-26 14:24:32 +010023 apex_available: [
24 "com.android.compos",
25 ],
26}
Andrew Walbranda8786d2022-12-01 14:54:27 +000027
28rust_test {
29 name: "compos_verify.test",
30 srcs: ["verify.rs"],
Nikita Ioffeda1b2732023-09-04 13:46:56 +010031 defaults: ["avf_build_flags_rust"],
Andrew Walbranda8786d2022-12-01 14:54:27 +000032 edition: "2021",
33 rustlibs: [
34 "compos_aidl_interface-rust",
35 "libandroid_logger",
36 "libanyhow",
37 "libbinder_rs",
38 "libclap",
39 "libcompos_common",
40 "libcompos_verify_native_rust",
41 "liblog_rust",
42 "libvmclient",
43 ],
44 prefer_rlib: true,
45 test_suites: ["general-tests"],
46}