1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5rust_defaults { 6 name: "compsvc_defaults", 7 srcs: ["src/compsvc_main.rs"], 8 rustlibs: [ 9 "android.system.virtualmachineservice-rust", 10 "authfs_aidl_interface-rust", 11 "compos_aidl_interface-rust", 12 "libandroid_logger", 13 "libanyhow", 14 "libbinder_common", 15 "libbinder_rpc_unstable_bindgen", 16 "libbinder_rs", 17 "libclap", 18 "libcompos_common", 19 "liblibc", 20 "liblog_rust", 21 "libminijail_rust", 22 "libnix", 23 "libodsign_proto_rust", 24 "libprotobuf", 25 "libregex", 26 "librustutils", 27 "libscopeguard", 28 ], 29 prefer_rlib: true, 30 shared_libs: [ 31 "libbinder_rpc_unstable", 32 "libcrypto", 33 ], 34} 35 36rust_binary { 37 name: "compsvc", 38 defaults: ["compsvc_defaults"], 39 apex_available: [ 40 "com.android.compos", 41 ], 42} 43