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 | 6472ccd | 2022-08-31 13:41:28 +0100 | [diff] [blame] | 7 | edition: "2021", |
Alan Stokes | 9e2c5d5 | 2021-07-21 11:29:10 +0100 | [diff] [blame] | 8 | srcs: ["src/compsvc_main.rs"], |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 9 | rustlibs: [ |
Alan Stokes | b5c60b4 | 2021-09-09 14:44:13 +0100 | [diff] [blame] | 10 | "android.system.virtualmachineservice-rust", |
Victor Hsieh | ebb1d90 | 2021-08-06 13:00:18 -0700 | [diff] [blame] | 11 | "authfs_aidl_interface-rust", |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 12 | "compos_aidl_interface-rust", |
| 13 | "libandroid_logger", |
| 14 | "libanyhow", |
Victor Hsieh | a7d3786 | 2021-06-04 17:14:20 -0700 | [diff] [blame] | 15 | "libbinder_rs", |
Alan Stokes | 17fd36a | 2021-09-06 17:22:37 +0100 | [diff] [blame] | 16 | "libcompos_common", |
Victor Hsieh | 6e34038 | 2021-08-13 12:18:02 -0700 | [diff] [blame] | 17 | "liblibc", |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 18 | "liblog_rust", |
| 19 | "libminijail_rust", |
Alan Stokes | b5c60b4 | 2021-09-09 14:44:13 +0100 | [diff] [blame] | 20 | "libnix", |
Alan Stokes | 183d7d3 | 2021-12-08 16:10:45 +0000 | [diff] [blame] | 21 | "libodsign_proto_rust", |
| 22 | "libprotobuf", |
Alan Stokes | 9247251 | 2022-01-04 11:48:38 +0000 | [diff] [blame] | 23 | "libregex", |
Andrew Walbran | 7eb5ca4 | 2022-08-08 15:33:34 +0000 | [diff] [blame] | 24 | "librpcbinder_rs", |
Alan Stokes | 2d2e4db | 2022-01-28 16:41:52 +0000 | [diff] [blame] | 25 | "librustutils", |
Victor Hsieh | a64194b | 2021-08-06 17:43:36 -0700 | [diff] [blame] | 26 | "libscopeguard", |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 27 | ], |
Victor Hsieh | 3cc5b32 | 2021-05-18 12:44:45 -0700 | [diff] [blame] | 28 | prefer_rlib: true, |
Victor Hsieh | a7d3786 | 2021-06-04 17:14:20 -0700 | [diff] [blame] | 29 | shared_libs: [ |
| 30 | "libbinder_rpc_unstable", |
Alan Stokes | 223a746 | 2022-01-20 14:12:24 +0000 | [diff] [blame] | 31 | "libcrypto", |
Victor Hsieh | a7d3786 | 2021-06-04 17:14:20 -0700 | [diff] [blame] | 32 | ], |
Alan Stokes | c33d292 | 2022-01-18 14:17:00 +0000 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | rust_binary { |
| 36 | name: "compsvc", |
| 37 | defaults: ["compsvc_defaults"], |
Victor Hsieh | b5f465a | 2021-05-11 13:45:15 -0700 | [diff] [blame] | 38 | apex_available: [ |
| 39 | "com.android.compos", |
| 40 | ], |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 41 | } |