blob: 658f8bf9ca7016cd6a89493bc814962f4c18d1b2 [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",
Alan Stokesf03d81a2021-09-20 17:44:03 +010022 "libenv_logger",
Victor Hsieh6e340382021-08-13 12:18:02 -070023 "liblibc",
Victor Hsieh272aa242021-02-01 14:19:20 -080024 "liblog_rust",
25 "libminijail_rust",
Alan Stokesb5c60b42021-09-09 14:44:13 +010026 "libnix",
Jiyong Park165921b2022-01-14 00:49:33 +090027 "libnum_cpus",
Alan Stokes183d7d32021-12-08 16:10:45 +000028 "libodsign_proto_rust",
29 "libprotobuf",
Alan Stokes92472512022-01-04 11:48:38 +000030 "libregex",
Victor Hsieha64194b2021-08-06 17:43:36 -070031 "libring",
32 "libscopeguard",
Victor Hsieh272aa242021-02-01 14:19:20 -080033 ],
Victor Hsieh3cc5b322021-05-18 12:44:45 -070034 prefer_rlib: true,
Victor Hsieha7d37862021-06-04 17:14:20 -070035 shared_libs: [
36 "libbinder_rpc_unstable",
Alan Stokes223a7462022-01-20 14:12:24 +000037 "libcrypto",
Victor Hsieha7d37862021-06-04 17:14:20 -070038 ],
Alan Stokesc33d2922022-01-18 14:17:00 +000039}
40
41rust_binary {
42 name: "compsvc",
43 defaults: ["compsvc_defaults"],
Victor Hsiehb5f465a2021-05-11 13:45:15 -070044 apex_available: [
45 "com.android.compos",
46 ],
Victor Hsieh272aa242021-02-01 14:19:20 -080047}
Alan Stokesc33d2922022-01-18 14:17:00 +000048
49rust_test {
50 name: "compsvc_device_tests",
51 defaults: ["compsvc_defaults"],
52 test_suites: ["device-tests"],
53}