Bob Badour | 606dfaa | 2021-03-01 00:25:57 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
Victor Hsieh | 42cc776 | 2021-01-25 16:44:19 -0800 | [diff] [blame] | 5 | rust_binary { |
| 6 | name: "fd_server", |
| 7 | srcs: ["src/main.rs"], |
| 8 | rustlibs: [ |
| 9 | "authfs_aidl_interface-rust", |
Victor Hsieh | 60acfd3 | 2021-02-23 13:08:13 -0800 | [diff] [blame] | 10 | "libandroid_logger", |
Victor Hsieh | 42cc776 | 2021-01-25 16:44:19 -0800 | [diff] [blame] | 11 | "libanyhow", |
Inseob Kim | c0886c2 | 2021-12-13 17:41:24 +0900 | [diff] [blame] | 12 | "libauthfs_fsverity_metadata", |
Victor Hsieh | 2445e33 | 2021-06-04 16:44:53 -0700 | [diff] [blame] | 13 | "libbinder_rs", |
Jeff Vander Stoep | a8dc271 | 2022-07-29 02:33:45 +0200 | [diff] [blame] | 14 | "libclap", |
Victor Hsieh | 40c8b45 | 2023-03-15 13:14:20 -0700 | [diff] [blame^] | 15 | "libfsverity_rs", |
Victor Hsieh | 42cc776 | 2021-01-25 16:44:19 -0800 | [diff] [blame] | 16 | "liblibc", |
| 17 | "liblog_rust", |
Victor Hsieh | 4dc85c9 | 2021-03-15 11:01:23 -0700 | [diff] [blame] | 18 | "libnix", |
Andrew Walbran | 7eb5ca4 | 2022-08-08 15:33:34 +0000 | [diff] [blame] | 19 | "librpcbinder_rs", |
Victor Hsieh | 42cc776 | 2021-01-25 16:44:19 -0800 | [diff] [blame] | 20 | ], |
Victor Hsieh | b50e0fa | 2021-06-04 15:09:57 -0700 | [diff] [blame] | 21 | prefer_rlib: true, |
Victor Hsieh | 573c649 | 2021-03-11 14:19:18 -0800 | [diff] [blame] | 22 | apex_available: ["com.android.virt"], |
Victor Hsieh | 42cc776 | 2021-01-25 16:44:19 -0800 | [diff] [blame] | 23 | } |
Andrew Walbran | da8786d | 2022-12-01 14:54:27 +0000 | [diff] [blame] | 24 | |
| 25 | rust_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 Hsieh | 40c8b45 | 2023-03-15 13:14:20 -0700 | [diff] [blame^] | 35 | "libfsverity_rs", |
Andrew Walbran | da8786d | 2022-12-01 14:54:27 +0000 | [diff] [blame] | 36 | "liblibc", |
| 37 | "liblog_rust", |
| 38 | "libnix", |
| 39 | "librpcbinder_rs", |
| 40 | ], |
| 41 | prefer_rlib: true, |
Andrew Walbran | da8786d | 2022-12-01 14:54:27 +0000 | [diff] [blame] | 42 | test_suites: ["general-tests"], |
| 43 | } |