blob: 0af0ec487645373a4d225790f14976de2ca3a1b7 [file] [log] [blame]
Bob Badoure80ee752021-05-12 12:41:18 -07001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Alan Stokesc33d2922022-01-18 14:17:00 +00005rust_defaults {
6 name: "compsvc_defaults",
Alan Stokes9e2c5d52021-07-21 11:29:10 +01007 srcs: ["src/compsvc_main.rs"],
Victor Hsieh272aa242021-02-01 14:19:20 -08008 rustlibs: [
Alan Stokes71cc11e2022-01-17 10:39:05 +00009 "android.hardware.security.dice-V1-rust",
Alan Stokes71cc11e2022-01-17 10:39:05 +000010 "android.security.dice-rust",
Alan Stokesb5c60b42021-09-09 14:44:13 +010011 "android.system.virtualmachineservice-rust",
Victor Hsiehebb1d902021-08-06 13:00:18 -070012 "authfs_aidl_interface-rust",
Victor Hsieh272aa242021-02-01 14:19:20 -080013 "compos_aidl_interface-rust",
14 "libandroid_logger",
15 "libanyhow",
Alan Stokes3189af02021-09-30 17:51:19 +010016 "libbinder_common",
Victor Hsieha7d37862021-06-04 17:14:20 -070017 "libbinder_rpc_unstable_bindgen",
18 "libbinder_rs",
Victor Hsieh272aa242021-02-01 14:19:20 -080019 "libclap",
Alan Stokes17fd36a2021-09-06 17:22:37 +010020 "libcompos_common",
Alan Stokes223a7462022-01-20 14:12:24 +000021 "libcompos_native_rust",
Victor Hsieh6e340382021-08-13 12:18:02 -070022 "liblibc",
Victor Hsieh272aa242021-02-01 14:19:20 -080023 "liblog_rust",
24 "libminijail_rust",
Alan Stokesb5c60b42021-09-09 14:44:13 +010025 "libnix",
Alan Stokes183d7d32021-12-08 16:10:45 +000026 "libodsign_proto_rust",
27 "libprotobuf",
Alan Stokes92472512022-01-04 11:48:38 +000028 "libregex",
Victor Hsieha64194b2021-08-06 17:43:36 -070029 "libring",
Alan Stokes2d2e4db2022-01-28 16:41:52 +000030 "librustutils",
Victor Hsieha64194b2021-08-06 17:43:36 -070031 "libscopeguard",
Victor Hsieh272aa242021-02-01 14:19:20 -080032 ],
Victor Hsieh3cc5b322021-05-18 12:44:45 -070033 prefer_rlib: true,
Victor Hsieha7d37862021-06-04 17:14:20 -070034 shared_libs: [
35 "libbinder_rpc_unstable",
Alan Stokes223a7462022-01-20 14:12:24 +000036 "libcrypto",
Victor Hsieha7d37862021-06-04 17:14:20 -070037 ],
Alan Stokesc33d2922022-01-18 14:17:00 +000038}
39
40rust_binary {
41 name: "compsvc",
42 defaults: ["compsvc_defaults"],
Victor Hsiehb5f465a2021-05-11 13:45:15 -070043 apex_available: [
44 "com.android.compos",
45 ],
Victor Hsieh272aa242021-02-01 14:19:20 -080046}
Alan Stokesc33d2922022-01-18 14:17:00 +000047
48rust_test {
49 name: "compsvc_device_tests",
50 defaults: ["compsvc_defaults"],
Jiyong Park5c71cac2022-02-04 11:49:31 +090051 test_suites: ["general-tests"],
Alan Stokesc33d2922022-01-18 14:17:00 +000052}