blob: 6aa9d3d997f604ef1bd083b4f761da440a14d666 [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 Stokes6472ccd2022-08-31 13:41:28 +01007 edition: "2021",
Alan Stokes9e2c5d52021-07-21 11:29:10 +01008 srcs: ["src/compsvc_main.rs"],
Victor Hsieh272aa242021-02-01 14:19:20 -08009 rustlibs: [
Alan Stokesb5c60b42021-09-09 14:44:13 +010010 "android.system.virtualmachineservice-rust",
Victor Hsiehebb1d902021-08-06 13:00:18 -070011 "authfs_aidl_interface-rust",
Victor Hsieh272aa242021-02-01 14:19:20 -080012 "compos_aidl_interface-rust",
13 "libandroid_logger",
14 "libanyhow",
Victor Hsieha7d37862021-06-04 17:14:20 -070015 "libbinder_rs",
Jeff Vander Stoepa8dc2712022-07-29 02:33:45 +020016 "libclap",
Alan Stokes17fd36a2021-09-06 17:22:37 +010017 "libcompos_common",
Victor Hsieh6e340382021-08-13 12:18:02 -070018 "liblibc",
Victor Hsieh272aa242021-02-01 14:19:20 -080019 "liblog_rust",
20 "libminijail_rust",
Alan Stokesb5c60b42021-09-09 14:44:13 +010021 "libnix",
Alan Stokes183d7d32021-12-08 16:10:45 +000022 "libodsign_proto_rust",
23 "libprotobuf",
Alan Stokes92472512022-01-04 11:48:38 +000024 "libregex",
Andrew Walbran7eb5ca42022-08-08 15:33:34 +000025 "librpcbinder_rs",
Alan Stokes2d2e4db2022-01-28 16:41:52 +000026 "librustutils",
Victor Hsieha64194b2021-08-06 17:43:36 -070027 "libscopeguard",
Victor Hsieh272aa242021-02-01 14:19:20 -080028 ],
Victor Hsieh3cc5b322021-05-18 12:44:45 -070029 prefer_rlib: true,
Victor Hsieha7d37862021-06-04 17:14:20 -070030 shared_libs: [
31 "libbinder_rpc_unstable",
Alan Stokes223a7462022-01-20 14:12:24 +000032 "libcrypto",
Victor Hsieha7d37862021-06-04 17:14:20 -070033 ],
Alan Stokesc33d2922022-01-18 14:17:00 +000034}
35
36rust_binary {
37 name: "compsvc",
38 defaults: ["compsvc_defaults"],
Victor Hsiehb5f465a2021-05-11 13:45:15 -070039 apex_available: [
40 "com.android.compos",
41 ],
Victor Hsieh272aa242021-02-01 14:19:20 -080042}