blob: ac9c1df116891689762bf0c53c4f3b27803f5500 [file] [log] [blame]
Bob Badourbd1037f2021-02-12 15:54:17 -08001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
David Brazdil3f0f1e82023-01-12 16:18:43 +00005rust_binary {
6 name: "virtualizationservice",
Andrew Walbranf6bf6862021-05-21 12:41:13 +00007 crate_name: "virtualizationservice",
Nikita Ioffeda1b2732023-09-04 13:46:56 +01008 defaults: ["avf_build_flags_rust"],
Alan Stokes6472ccd2022-08-31 13:41:28 +01009 edition: "2021",
David Brazdil3f0f1e82023-01-12 16:18:43 +000010 srcs: ["src/main.rs"],
Andrew Walbrandfc953d2021-06-10 13:59:56 +000011 // Only build on targets which crosvm builds on.
12 enabled: false,
13 target: {
14 android64: {
15 compile_multilib: "64",
16 enabled: true,
17 },
18 linux_bionic_arm64: {
19 enabled: true,
20 },
21 },
Jiyong Park26bdf442021-04-05 16:04:49 +090022 prefer_rlib: true,
Andrew Walbranb12a43e2020-11-10 14:22:42 +000023 rustlibs: [
Alice Wang15f6d082023-08-25 09:11:07 +000024 "android.hardware.security.rkp-V3-rust",
Alan Stokes2bead0d2022-09-05 16:58:34 +010025 "android.system.virtualizationcommon-rust",
Andrew Walbranf6bf6862021-05-21 12:41:13 +000026 "android.system.virtualizationservice-rust",
David Brazdil528e0472022-10-10 15:06:02 +010027 "android.system.virtualizationservice_internal-rust",
Inseob Kim1b95f2e2021-08-19 13:17:40 +090028 "android.system.virtualmachineservice-rust",
Jiyong Park753553b2021-07-12 21:21:09 +090029 "android.os.permissions_aidl-rust",
Andrew Walbranbf1fb042021-03-15 16:54:09 +000030 "libandroid_logger",
Andrew Walbranb12a43e2020-11-10 14:22:42 +000031 "libanyhow",
Jiyong Parkd7bd2f22023-08-10 20:41:19 +090032 "libavflog",
Inseob Kim1b95f2e2021-08-19 13:17:40 +090033 "libbinder_rs",
David Brazdila07a1792022-10-25 13:37:57 +010034 "liblibc",
Andrew Walbran3a5a9212021-05-04 17:09:08 +000035 "liblog_rust",
Andrew Walbranb27681f2022-02-23 15:11:52 +000036 "libnix",
Jiyong Parkd50a0242021-09-16 21:00:14 +090037 "librustutils",
Jiyong Parkf4883fc2023-08-10 14:37:46 +090038 "libvmclient",
Treehugger Robot3ffa8322021-11-22 12:06:47 +000039 "libstatslog_virtualization_rust",
Shikha Panwar7afc1392022-03-24 08:54:43 +000040 "libtombstoned_client_rust",
Jiyong Park8611a6c2021-07-09 18:17:44 +090041 "libvsock",
Inseob Kimc4a774d2023-08-30 12:48:43 +090042 "libserde",
43 "libserde_xml_rs",
David Brazdil1f530702022-10-03 12:18:10 +010044 ],
Jiyong Park8d1eb7e2021-02-16 13:23:00 +090045 apex_available: ["com.android.virt"],
Andrew Walbranb12a43e2020-11-10 14:22:42 +000046}
Inseob Kimc4a774d2023-08-30 12:48:43 +090047
48xsd_config {
49 name: "assignable_devices",
50 srcs: ["assignable_devices.xsd"],
51 api_dir: "schema",
52 package_name: "android.system.virtualizationservice",
53}