blob: 8d0ba3b1e440e8d98247b0dad69e1f8ac805a691 [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",
Victor Hsieha64194b2021-08-06 17:43:36 -070010 "android.hardware.security.keymint-V1-rust",
Alan Stokes71cc11e2022-01-17 10:39:05 +000011 "android.security.dice-rust",
Victor Hsieha64194b2021-08-06 17:43:36 -070012 "android.system.keystore2-V1-rust",
Alan Stokesb5c60b42021-09-09 14:44:13 +010013 "android.system.virtualmachineservice-rust",
Victor Hsiehebb1d902021-08-06 13:00:18 -070014 "authfs_aidl_interface-rust",
Victor Hsieh272aa242021-02-01 14:19:20 -080015 "compos_aidl_interface-rust",
16 "libandroid_logger",
17 "libanyhow",
Alan Stokes3189af02021-09-30 17:51:19 +010018 "libbinder_common",
Victor Hsieha7d37862021-06-04 17:14:20 -070019 "libbinder_rpc_unstable_bindgen",
20 "libbinder_rs",
Victor Hsieh272aa242021-02-01 14:19:20 -080021 "libclap",
Alan Stokes17fd36a2021-09-06 17:22:37 +010022 "libcompos_common",
Alan Stokesf03d81a2021-09-20 17:44:03 +010023 "libenv_logger",
Victor Hsieh6e340382021-08-13 12:18:02 -070024 "liblibc",
Victor Hsieh272aa242021-02-01 14:19:20 -080025 "liblog_rust",
26 "libminijail_rust",
Alan Stokesb5c60b42021-09-09 14:44:13 +010027 "libnix",
Jiyong Park165921b2022-01-14 00:49:33 +090028 "libnum_cpus",
Alan Stokes183d7d32021-12-08 16:10:45 +000029 "libodsign_proto_rust",
30 "libprotobuf",
Alan Stokes92472512022-01-04 11:48:38 +000031 "libregex",
Victor Hsieha64194b2021-08-06 17:43:36 -070032 "libring",
33 "libscopeguard",
Victor Hsieh272aa242021-02-01 14:19:20 -080034 ],
Victor Hsieh3cc5b322021-05-18 12:44:45 -070035 prefer_rlib: true,
Victor Hsieha7d37862021-06-04 17:14:20 -070036 shared_libs: [
37 "libbinder_rpc_unstable",
38 ],
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}