Bob Badour | bd1037f | 2021-02-12 15:54:17 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
Andrew Walbran | 3eca16c | 2021-06-14 11:15:14 +0000 | [diff] [blame] | 5 | rust_defaults { |
| 6 | name: "virtualizationservice_defaults", |
Andrew Walbran | f6bf686 | 2021-05-21 12:41:13 +0000 | [diff] [blame] | 7 | crate_name: "virtualizationservice", |
Alan Stokes | 6472ccd | 2022-08-31 13:41:28 +0100 | [diff] [blame] | 8 | edition: "2021", |
Andrew Walbran | dfc953d | 2021-06-10 13:59:56 +0000 | [diff] [blame] | 9 | // Only build on targets which crosvm builds on. |
| 10 | enabled: false, |
| 11 | target: { |
| 12 | android64: { |
| 13 | compile_multilib: "64", |
| 14 | enabled: true, |
| 15 | }, |
| 16 | linux_bionic_arm64: { |
| 17 | enabled: true, |
| 18 | }, |
| 19 | }, |
Jiyong Park | 26bdf44 | 2021-04-05 16:04:49 +0900 | [diff] [blame] | 20 | prefer_rlib: true, |
Andrew Walbran | b12a43e | 2020-11-10 14:22:42 +0000 | [diff] [blame] | 21 | rustlibs: [ |
Alan Stokes | 2bead0d | 2022-09-05 16:58:34 +0100 | [diff] [blame] | 22 | "android.system.virtualizationcommon-rust", |
Andrew Walbran | f6bf686 | 2021-05-21 12:41:13 +0000 | [diff] [blame] | 23 | "android.system.virtualizationservice-rust", |
David Brazdil | 528e047 | 2022-10-10 15:06:02 +0100 | [diff] [blame] | 24 | "android.system.virtualizationservice_internal-rust", |
Inseob Kim | 1b95f2e | 2021-08-19 13:17:40 +0900 | [diff] [blame] | 25 | "android.system.virtualmachineservice-rust", |
Jiyong Park | 753553b | 2021-07-12 21:21:09 +0900 | [diff] [blame] | 26 | "android.os.permissions_aidl-rust", |
Andrew Walbran | bf1fb04 | 2021-03-15 16:54:09 +0000 | [diff] [blame] | 27 | "libandroid_logger", |
Andrew Walbran | b12a43e | 2020-11-10 14:22:42 +0000 | [diff] [blame] | 28 | "libanyhow", |
Alice Wang | 1bf3d78 | 2022-09-28 07:56:36 +0000 | [diff] [blame] | 29 | "libapkverify", |
Keir Fraser | 13a956a | 2022-07-14 14:20:46 +0000 | [diff] [blame] | 30 | "libbase_rust", |
Inseob Kim | 1b95f2e | 2021-08-19 13:17:40 +0900 | [diff] [blame] | 31 | "libbinder_rs", |
Andrew Walbran | 3a5a921 | 2021-05-04 17:09:08 +0000 | [diff] [blame] | 32 | "libcommand_fds", |
Andrew Walbran | dfc953d | 2021-06-10 13:59:56 +0000 | [diff] [blame] | 33 | "libdisk", |
Jiyong Park | e6ed0f9 | 2022-06-22 00:13:00 +0900 | [diff] [blame] | 34 | "liblazy_static", |
David Brazdil | a07a179 | 2022-10-25 13:37:57 +0100 | [diff] [blame] | 35 | "liblibc", |
Andrew Walbran | 3a5a921 | 2021-05-04 17:09:08 +0000 | [diff] [blame] | 36 | "liblog_rust", |
Jooyung Han | 21e9b92 | 2021-06-26 04:14:16 +0900 | [diff] [blame] | 37 | "libmicrodroid_metadata", |
| 38 | "libmicrodroid_payload_config", |
Alan Stokes | c3f2ac2 | 2022-06-23 12:19:46 +0100 | [diff] [blame] | 39 | "libnested_virt", |
Andrew Walbran | b27681f | 2022-02-23 15:11:52 +0000 | [diff] [blame] | 40 | "libnix", |
Jooyung Han | 9900f3d | 2021-07-06 10:27:54 +0900 | [diff] [blame] | 41 | "libonce_cell", |
Alan Stokes | bf20c6a | 2022-01-04 12:30:50 +0000 | [diff] [blame] | 42 | "libregex", |
Andrew Walbran | 7eb5ca4 | 2022-08-08 15:33:34 +0000 | [diff] [blame] | 43 | "librpcbinder_rs", |
Jiyong Park | d50a024 | 2021-09-16 21:00:14 +0900 | [diff] [blame] | 44 | "librustutils", |
Jiyong Park | dcf1741 | 2022-02-08 15:07:23 +0900 | [diff] [blame] | 45 | "libsemver", |
Jiyong Park | 029977d | 2021-11-24 21:56:49 +0900 | [diff] [blame] | 46 | "libselinux_bindgen", |
| 47 | "libserde", |
Andrew Walbran | f5fbb7d | 2021-05-12 17:15:48 +0000 | [diff] [blame] | 48 | "libserde_json", |
Jooyung Han | 44b02ab | 2021-07-16 03:19:13 +0900 | [diff] [blame] | 49 | "libserde_xml_rs", |
Andrew Walbran | 3a5a921 | 2021-05-04 17:09:08 +0000 | [diff] [blame] | 50 | "libshared_child", |
Treehugger Robot | 3ffa832 | 2021-11-22 12:06:47 +0000 | [diff] [blame] | 51 | "libstatslog_virtualization_rust", |
Shikha Panwar | 7afc139 | 2022-03-24 08:54:43 +0000 | [diff] [blame] | 52 | "libtombstoned_client_rust", |
Keir Fraser | cdd4b11 | 2022-11-24 14:02:25 +0000 | [diff] [blame] | 53 | "libvm_control", |
Jooyung Han | 21e9b92 | 2021-06-26 04:14:16 +0900 | [diff] [blame] | 54 | "libvmconfig", |
| 55 | "libzip", |
Jiyong Park | 8611a6c | 2021-07-09 18:17:44 +0900 | [diff] [blame] | 56 | "libvsock", |
Jooyung Han | 5dc4217 | 2021-10-05 16:43:47 +0900 | [diff] [blame] | 57 | // TODO(b/202115393) stabilize the interface |
| 58 | "packagemanager_aidl-rust", |
Andrew Walbran | b12a43e | 2020-11-10 14:22:42 +0000 | [diff] [blame] | 59 | ], |
Inseob Kim | 1b95f2e | 2021-08-19 13:17:40 +0900 | [diff] [blame] | 60 | shared_libs: [ |
| 61 | "libbinder_rpc_unstable", |
Jiyong Park | 029977d | 2021-11-24 21:56:49 +0900 | [diff] [blame] | 62 | "libselinux", |
Inseob Kim | 1b95f2e | 2021-08-19 13:17:40 +0900 | [diff] [blame] | 63 | ], |
Andrew Walbran | 3eca16c | 2021-06-14 11:15:14 +0000 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | rust_binary { |
| 67 | name: "virtualizationservice", |
| 68 | defaults: ["virtualizationservice_defaults"], |
David Brazdil | 1f53070 | 2022-10-03 12:18:10 +0100 | [diff] [blame] | 69 | srcs: ["src/main.rs"], |
| 70 | apex_available: ["com.android.virt"], |
| 71 | } |
| 72 | |
| 73 | rust_binary { |
| 74 | name: "virtmgr", |
| 75 | defaults: ["virtualizationservice_defaults"], |
| 76 | srcs: ["src/virtmgr.rs"], |
| 77 | rustlibs: [ |
| 78 | "libclap", |
| 79 | ], |
Jiyong Park | 8d1eb7e | 2021-02-16 13:23:00 +0900 | [diff] [blame] | 80 | apex_available: ["com.android.virt"], |
Andrew Walbran | b12a43e | 2020-11-10 14:22:42 +0000 | [diff] [blame] | 81 | } |
Andrew Walbran | 3eca16c | 2021-06-14 11:15:14 +0000 | [diff] [blame] | 82 | |
| 83 | rust_test { |
| 84 | name: "virtualizationservice_device_test", |
David Brazdil | afc9a9e | 2023-01-12 16:08:10 +0000 | [diff] [blame^] | 85 | srcs: ["src/virtmgr.rs"], |
Andrew Walbran | 3eca16c | 2021-06-14 11:15:14 +0000 | [diff] [blame] | 86 | defaults: ["virtualizationservice_defaults"], |
Jooyung Han | 743e0d6 | 2022-11-07 20:57:48 +0900 | [diff] [blame] | 87 | rustlibs: [ |
David Brazdil | afc9a9e | 2023-01-12 16:08:10 +0000 | [diff] [blame^] | 88 | "libclap", |
Jooyung Han | 743e0d6 | 2022-11-07 20:57:48 +0900 | [diff] [blame] | 89 | "libtempfile", |
| 90 | ], |
Andrew Walbran | 3eca16c | 2021-06-14 11:15:14 +0000 | [diff] [blame] | 91 | test_suites: ["general-tests"], |
| 92 | } |