Bob Badour | e80ee75 | 2021-05-12 12:41:18 -0700 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
Alan Stokes | c33d292 | 2022-01-18 14:17:00 +0000 | [diff] [blame] | 5 | rust_defaults { |
| 6 | name: "compsvc_defaults", |
Alan Stokes | 9e2c5d5 | 2021-07-21 11:29:10 +0100 | [diff] [blame] | 7 | srcs: ["src/compsvc_main.rs"], |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 8 | rustlibs: [ |
Alan Stokes | b5c60b4 | 2021-09-09 14:44:13 +0100 | [diff] [blame] | 9 | "android.system.virtualmachineservice-rust", |
Victor Hsieh | ebb1d90 | 2021-08-06 13:00:18 -0700 | [diff] [blame] | 10 | "authfs_aidl_interface-rust", |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 11 | "compos_aidl_interface-rust", |
| 12 | "libandroid_logger", |
| 13 | "libanyhow", |
Alan Stokes | 3189af0 | 2021-09-30 17:51:19 +0100 | [diff] [blame] | 14 | "libbinder_common", |
Victor Hsieh | a7d3786 | 2021-06-04 17:14:20 -0700 | [diff] [blame] | 15 | "libbinder_rpc_unstable_bindgen", |
| 16 | "libbinder_rs", |
Jeff Vander Stoep | abc8925 | 2022-07-26 23:57:59 +0200 | [diff] [blame] | 17 | "libclap_deprecated", |
Alan Stokes | 17fd36a | 2021-09-06 17:22:37 +0100 | [diff] [blame] | 18 | "libcompos_common", |
Victor Hsieh | 6e34038 | 2021-08-13 12:18:02 -0700 | [diff] [blame] | 19 | "liblibc", |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 20 | "liblog_rust", |
| 21 | "libminijail_rust", |
Alan Stokes | b5c60b4 | 2021-09-09 14:44:13 +0100 | [diff] [blame] | 22 | "libnix", |
Alan Stokes | 183d7d3 | 2021-12-08 16:10:45 +0000 | [diff] [blame] | 23 | "libodsign_proto_rust", |
| 24 | "libprotobuf", |
Alan Stokes | 9247251 | 2022-01-04 11:48:38 +0000 | [diff] [blame] | 25 | "libregex", |
Alan Stokes | 2d2e4db | 2022-01-28 16:41:52 +0000 | [diff] [blame] | 26 | "librustutils", |
Victor Hsieh | a64194b | 2021-08-06 17:43:36 -0700 | [diff] [blame] | 27 | "libscopeguard", |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 28 | ], |
Victor Hsieh | 3cc5b32 | 2021-05-18 12:44:45 -0700 | [diff] [blame] | 29 | prefer_rlib: true, |
Victor Hsieh | a7d3786 | 2021-06-04 17:14:20 -0700 | [diff] [blame] | 30 | shared_libs: [ |
| 31 | "libbinder_rpc_unstable", |
Alan Stokes | 223a746 | 2022-01-20 14:12:24 +0000 | [diff] [blame] | 32 | "libcrypto", |
Victor Hsieh | a7d3786 | 2021-06-04 17:14:20 -0700 | [diff] [blame] | 33 | ], |
Alan Stokes | c33d292 | 2022-01-18 14:17:00 +0000 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | rust_binary { |
| 37 | name: "compsvc", |
| 38 | defaults: ["compsvc_defaults"], |
Victor Hsieh | b5f465a | 2021-05-11 13:45:15 -0700 | [diff] [blame] | 39 | apex_available: [ |
| 40 | "com.android.compos", |
| 41 | ], |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 42 | } |