blob: 748c660c0a18c6a148ef1f82d62e51c6dd566621 [file] [log] [blame]
Bob Badour606dfaa2021-03-01 00:25:57 -08001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Victor Hsieh42cc7762021-01-25 16:44:19 -08005rust_binary {
6 name: "fd_server",
Nikita Ioffeda1b2732023-09-04 13:46:56 +01007 defaults: ["avf_build_flags_rust"],
Victor Hsieh42cc7762021-01-25 16:44:19 -08008 srcs: ["src/main.rs"],
9 rustlibs: [
10 "authfs_aidl_interface-rust",
Victor Hsieh60acfd32021-02-23 13:08:13 -080011 "libandroid_logger",
Victor Hsieh42cc7762021-01-25 16:44:19 -080012 "libanyhow",
Inseob Kimc0886c22021-12-13 17:41:24 +090013 "libauthfs_fsverity_metadata",
Victor Hsieh2445e332021-06-04 16:44:53 -070014 "libbinder_rs",
Jeff Vander Stoepa8dc2712022-07-29 02:33:45 +020015 "libclap",
Victor Hsieh40c8b452023-03-15 13:14:20 -070016 "libfsverity_rs",
Victor Hsieh42cc7762021-01-25 16:44:19 -080017 "liblibc",
18 "liblog_rust",
Victor Hsieh4dc85c92021-03-15 11:01:23 -070019 "libnix",
Andrew Walbran7eb5ca42022-08-08 15:33:34 +000020 "librpcbinder_rs",
Jiyong Park7d671712024-09-11 08:29:22 +090021 "librustutils",
Victor Hsieh42cc7762021-01-25 16:44:19 -080022 ],
Victor Hsiehb50e0fa2021-06-04 15:09:57 -070023 prefer_rlib: true,
Victor Hsieh573c6492021-03-11 14:19:18 -080024 apex_available: ["com.android.virt"],
Victor Hsieh42cc7762021-01-25 16:44:19 -080025}
Andrew Walbranda8786d2022-12-01 14:54:27 +000026
27rust_test {
28 name: "fd_server.test",
Nikita Ioffeda1b2732023-09-04 13:46:56 +010029 defaults: ["avf_build_flags_rust"],
Andrew Walbranda8786d2022-12-01 14:54:27 +000030 srcs: ["src/main.rs"],
31 rustlibs: [
32 "authfs_aidl_interface-rust",
33 "libandroid_logger",
34 "libanyhow",
35 "libauthfs_fsverity_metadata",
36 "libbinder_rs",
37 "libclap",
Victor Hsieh40c8b452023-03-15 13:14:20 -070038 "libfsverity_rs",
Andrew Walbranda8786d2022-12-01 14:54:27 +000039 "liblibc",
40 "liblog_rust",
41 "libnix",
42 "librpcbinder_rs",
Jiyong Park7d671712024-09-11 08:29:22 +090043 "librustutils",
Andrew Walbranda8786d2022-12-01 14:54:27 +000044 ],
45 prefer_rlib: true,
Andrew Walbranda8786d2022-12-01 14:54:27 +000046 test_suites: ["general-tests"],
47}