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