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