blob: bf57e27204841a7b8470030db50c1ff120a51cc2 [file] [log] [blame]
Bob Badoure80ee752021-05-12 12:41:18 -07001package {
Aditya Choudhary53696172024-02-05 15:46:19 +00002 default_team: "trendy_team_virtualization",
Bob Badoure80ee752021-05-12 12:41:18 -07003 default_applicable_licenses: ["Android-Apache-2.0"],
4}
5
Alan Stokesc33d2922022-01-18 14:17:00 +00006rust_defaults {
7 name: "compsvc_defaults",
Alan Stokes6472ccd2022-08-31 13:41:28 +01008 edition: "2021",
Nikita Ioffeda1b2732023-09-04 13:46:56 +01009 defaults: ["avf_build_flags_rust"],
Alan Stokes9e2c5d52021-07-21 11:29:10 +010010 srcs: ["src/compsvc_main.rs"],
Victor Hsieh272aa242021-02-01 14:19:20 -080011 rustlibs: [
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",
Victor Hsieha7d37862021-06-04 17:14:20 -070016 "libbinder_rs",
Alan Stokes17fd36a2021-09-06 17:22:37 +010017 "libcompos_common",
Alan Stokesc3640b952023-10-16 11:53:08 +010018 "libhex",
Victor Hsieh6e340382021-08-13 12:18:02 -070019 "liblibc",
Victor Hsieh272aa242021-02-01 14:19:20 -080020 "liblog_rust",
21 "libminijail_rust",
Alan Stokesb5c60b42021-09-09 14:44:13 +010022 "libnix",
Alan Stokes183d7d32021-12-08 16:10:45 +000023 "libodsign_proto_rust",
Ludovic Barman93ee3082023-06-20 12:18:43 +000024 "libprotobuf",
Alan Stokes92472512022-01-04 11:48:38 +000025 "libregex",
Andrew Walbran7eb5ca42022-08-08 15:33:34 +000026 "librpcbinder_rs",
Alan Stokes2d2e4db2022-01-28 16:41:52 +000027 "librustutils",
Victor Hsieha64194b2021-08-06 17:43:36 -070028 "libscopeguard",
Alice Wangbd569a02022-10-06 15:23:24 +000029 "libvm_payload_bindgen",
Victor Hsieh272aa242021-02-01 14:19:20 -080030 ],
Victor Hsieh3cc5b322021-05-18 12:44:45 -070031 prefer_rlib: true,
Victor Hsieha7d37862021-06-04 17:14:20 -070032 shared_libs: [
Alan Stokes223a7462022-01-20 14:12:24 +000033 "libcrypto",
Victor Hsieha7d37862021-06-04 17:14:20 -070034 ],
Alan Stokesc33d2922022-01-18 14:17:00 +000035}
36
37rust_binary {
38 name: "compsvc",
39 defaults: ["compsvc_defaults"],
Victor Hsiehb5f465a2021-05-11 13:45:15 -070040 apex_available: [
41 "com.android.compos",
42 ],
Victor Hsieh272aa242021-02-01 14:19:20 -080043}