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 | 71cc11e | 2022-01-17 10:39:05 +0000 | [diff] [blame] | 9 | "android.hardware.security.dice-V1-rust", |
Alan Stokes | 71cc11e | 2022-01-17 10:39:05 +0000 | [diff] [blame] | 10 | "android.security.dice-rust", |
Alan Stokes | b5c60b4 | 2021-09-09 14:44:13 +0100 | [diff] [blame] | 11 | "android.system.virtualmachineservice-rust", |
Victor Hsieh | ebb1d90 | 2021-08-06 13:00:18 -0700 | [diff] [blame] | 12 | "authfs_aidl_interface-rust", |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 13 | "compos_aidl_interface-rust", |
| 14 | "libandroid_logger", |
| 15 | "libanyhow", |
Alan Stokes | 3189af0 | 2021-09-30 17:51:19 +0100 | [diff] [blame] | 16 | "libbinder_common", |
Victor Hsieh | a7d3786 | 2021-06-04 17:14:20 -0700 | [diff] [blame] | 17 | "libbinder_rpc_unstable_bindgen", |
| 18 | "libbinder_rs", |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 19 | "libclap", |
Alan Stokes | 17fd36a | 2021-09-06 17:22:37 +0100 | [diff] [blame] | 20 | "libcompos_common", |
Alan Stokes | 223a746 | 2022-01-20 14:12:24 +0000 | [diff] [blame] | 21 | "libcompos_native_rust", |
Alan Stokes | f03d81a | 2021-09-20 17:44:03 +0100 | [diff] [blame] | 22 | "libenv_logger", |
Victor Hsieh | 6e34038 | 2021-08-13 12:18:02 -0700 | [diff] [blame] | 23 | "liblibc", |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 24 | "liblog_rust", |
| 25 | "libminijail_rust", |
Alan Stokes | b5c60b4 | 2021-09-09 14:44:13 +0100 | [diff] [blame] | 26 | "libnix", |
Alan Stokes | 183d7d3 | 2021-12-08 16:10:45 +0000 | [diff] [blame] | 27 | "libodsign_proto_rust", |
| 28 | "libprotobuf", |
Alan Stokes | 9247251 | 2022-01-04 11:48:38 +0000 | [diff] [blame] | 29 | "libregex", |
Victor Hsieh | a64194b | 2021-08-06 17:43:36 -0700 | [diff] [blame] | 30 | "libring", |
| 31 | "libscopeguard", |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 32 | ], |
Victor Hsieh | 3cc5b32 | 2021-05-18 12:44:45 -0700 | [diff] [blame] | 33 | prefer_rlib: true, |
Victor Hsieh | a7d3786 | 2021-06-04 17:14:20 -0700 | [diff] [blame] | 34 | shared_libs: [ |
| 35 | "libbinder_rpc_unstable", |
Alan Stokes | 223a746 | 2022-01-20 14:12:24 +0000 | [diff] [blame] | 36 | "libcrypto", |
Victor Hsieh | a7d3786 | 2021-06-04 17:14:20 -0700 | [diff] [blame] | 37 | ], |
Alan Stokes | c33d292 | 2022-01-18 14:17:00 +0000 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | rust_binary { |
| 41 | name: "compsvc", |
| 42 | defaults: ["compsvc_defaults"], |
Victor Hsieh | b5f465a | 2021-05-11 13:45:15 -0700 | [diff] [blame] | 43 | apex_available: [ |
| 44 | "com.android.compos", |
| 45 | ], |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 46 | } |
Alan Stokes | c33d292 | 2022-01-18 14:17:00 +0000 | [diff] [blame] | 47 | |
| 48 | rust_test { |
| 49 | name: "compsvc_device_tests", |
| 50 | defaults: ["compsvc_defaults"], |
| 51 | test_suites: ["device-tests"], |
| 52 | } |