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