blob: 9e30b0d84b8a0c49988aef8bf5d1ced0ab09a489 [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"],
Alan Stokes6472ccd2022-08-31 13:41:28 +01008 edition: "2021",
Alan Stokeseb97d4a2021-08-26 14:24:32 +01009 rustlibs: [
Alan Stokeseb97d4a2021-08-26 14:24:32 +010010 "compos_aidl_interface-rust",
Alan Stokes17fd36a2021-09-06 17:22:37 +010011 "libandroid_logger",
Alan Stokeseb97d4a2021-08-26 14:24:32 +010012 "libanyhow",
Alan Stokeseb97d4a2021-08-26 14:24:32 +010013 "libbinder_rs",
Jeff Vander Stoepa8dc2712022-07-29 02:33:45 +020014 "libclap",
Alan Stokes17fd36a2021-09-06 17:22:37 +010015 "libcompos_common",
Alan Stokes16fb8552022-02-10 15:07:27 +000016 "libcompos_verify_native_rust",
Alan Stokes17fd36a2021-09-06 17:22:37 +010017 "liblog_rust",
Andrew Walbrand0ef4002022-05-16 16:14:10 +000018 "libvmclient",
Alan Stokeseb97d4a2021-08-26 14:24:32 +010019 ],
20 prefer_rlib: true,
Alan Stokeseb97d4a2021-08-26 14:24:32 +010021 apex_available: [
22 "com.android.compos",
23 ],
24}
Andrew Walbranda8786d2022-12-01 14:54:27 +000025
26rust_test {
27 name: "compos_verify.test",
28 srcs: ["verify.rs"],
29 edition: "2021",
30 rustlibs: [
31 "compos_aidl_interface-rust",
32 "libandroid_logger",
33 "libanyhow",
34 "libbinder_rs",
35 "libclap",
36 "libcompos_common",
37 "libcompos_verify_native_rust",
38 "liblog_rust",
39 "libvmclient",
40 ],
41 prefer_rlib: true,
42 test_suites: ["general-tests"],
43}