blob: db1fd44b60950e9fb25bb8bbc555e0eae7e5eab1 [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",
7 srcs: ["src/main.rs"],
8 rustlibs: [
9 "authfs_aidl_interface-rust",
Victor Hsieh60acfd32021-02-23 13:08:13 -080010 "libandroid_logger",
Victor Hsieh42cc7762021-01-25 16:44:19 -080011 "libanyhow",
Inseob Kimc0886c22021-12-13 17:41:24 +090012 "libauthfs_fsverity_metadata",
Victor Hsieh2445e332021-06-04 16:44:53 -070013 "libbinder_rs",
Jeff Vander Stoepa8dc2712022-07-29 02:33:45 +020014 "libclap",
Victor Hsieh40c8b452023-03-15 13:14:20 -070015 "libfsverity_rs",
Victor Hsieh42cc7762021-01-25 16:44:19 -080016 "liblibc",
17 "liblog_rust",
Victor Hsieh4dc85c92021-03-15 11:01:23 -070018 "libnix",
Andrew Walbran7eb5ca42022-08-08 15:33:34 +000019 "librpcbinder_rs",
Victor Hsieh42cc7762021-01-25 16:44:19 -080020 ],
Victor Hsiehb50e0fa2021-06-04 15:09:57 -070021 prefer_rlib: true,
Victor Hsieh573c6492021-03-11 14:19:18 -080022 apex_available: ["com.android.virt"],
Victor Hsieh42cc7762021-01-25 16:44:19 -080023}
Andrew Walbranda8786d2022-12-01 14:54:27 +000024
25rust_test {
26 name: "fd_server.test",
27 srcs: ["src/main.rs"],
28 rustlibs: [
29 "authfs_aidl_interface-rust",
30 "libandroid_logger",
31 "libanyhow",
32 "libauthfs_fsverity_metadata",
33 "libbinder_rs",
34 "libclap",
Victor Hsieh40c8b452023-03-15 13:14:20 -070035 "libfsverity_rs",
Andrew Walbranda8786d2022-12-01 14:54:27 +000036 "liblibc",
37 "liblog_rust",
38 "libnix",
39 "librpcbinder_rs",
40 ],
41 prefer_rlib: true,
Andrew Walbranda8786d2022-12-01 14:54:27 +000042 test_suites: ["general-tests"],
43}