2021-05-12 19:41:18 +00:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2021-02-01 22:19:20 +00:00
|
|
|
rust_binary {
|
|
|
|
name: "pvm_exec",
|
|
|
|
srcs: ["src/pvm_exec.rs"],
|
|
|
|
rustlibs: [
|
|
|
|
"compos_aidl_interface-rust",
|
|
|
|
"libanyhow",
|
2021-06-05 00:14:20 +00:00
|
|
|
"libbinder_rpc_unstable_bindgen",
|
|
|
|
"libbinder_rs",
|
2021-02-01 22:19:20 +00:00
|
|
|
"libclap",
|
|
|
|
"liblibc",
|
|
|
|
"liblog_rust",
|
|
|
|
"libminijail_rust",
|
|
|
|
"libnix",
|
|
|
|
"libscopeguard",
|
|
|
|
],
|
2021-05-18 19:44:45 +00:00
|
|
|
prefer_rlib: true,
|
2021-06-05 00:14:20 +00:00
|
|
|
shared_libs: [
|
|
|
|
"libbinder_rpc_unstable",
|
|
|
|
],
|
2021-05-11 20:45:15 +00:00
|
|
|
apex_available: [
|
|
|
|
"com.android.compos",
|
|
|
|
],
|
2021-02-01 22:19:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
rust_binary {
|
|
|
|
name: "compsvc",
|
2021-07-21 10:29:10 +00:00
|
|
|
srcs: ["src/compsvc_main.rs"],
|
2021-02-01 22:19:20 +00:00
|
|
|
rustlibs: [
|
|
|
|
"compos_aidl_interface-rust",
|
|
|
|
"libandroid_logger",
|
|
|
|
"libanyhow",
|
2021-06-05 00:14:20 +00:00
|
|
|
"libbinder_rpc_unstable_bindgen",
|
|
|
|
"libbinder_rs",
|
2021-02-01 22:19:20 +00:00
|
|
|
"libclap",
|
|
|
|
"liblog_rust",
|
|
|
|
"libminijail_rust",
|
|
|
|
],
|
2021-05-18 19:44:45 +00:00
|
|
|
prefer_rlib: true,
|
2021-06-05 00:14:20 +00:00
|
|
|
shared_libs: [
|
|
|
|
"libbinder_rpc_unstable",
|
|
|
|
],
|
2021-05-11 20:45:15 +00:00
|
|
|
apex_available: [
|
|
|
|
"com.android.compos",
|
|
|
|
],
|
2021-02-01 22:19:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
rust_binary {
|
|
|
|
name: "compsvc_worker",
|
|
|
|
srcs: ["src/compsvc_worker.rs"],
|
|
|
|
rustlibs: [
|
|
|
|
"libandroid_logger",
|
|
|
|
"libanyhow",
|
|
|
|
"libclap",
|
|
|
|
"liblog_rust",
|
|
|
|
"libminijail_rust",
|
|
|
|
"libnix",
|
|
|
|
],
|
2021-05-18 19:44:45 +00:00
|
|
|
prefer_rlib: true,
|
2021-05-11 20:45:15 +00:00
|
|
|
apex_available: [
|
|
|
|
"com.android.compos",
|
|
|
|
],
|
2021-02-01 22:19:20 +00:00
|
|
|
}
|
2021-06-15 07:59:00 +00:00
|
|
|
|
2021-06-16 15:49:32 +00:00
|
|
|
rust_binary {
|
2021-07-15 15:21:50 +00:00
|
|
|
name: "compos_key_main",
|
|
|
|
srcs: ["src/compos_key_main.rs"],
|
2021-06-16 15:49:32 +00:00
|
|
|
edition: "2018",
|
|
|
|
rustlibs: [
|
|
|
|
"compos_aidl_interface-rust",
|
|
|
|
"android.system.keystore2-V1-rust",
|
|
|
|
"android.hardware.security.keymint-V1-rust",
|
|
|
|
"libandroid_logger",
|
|
|
|
"libanyhow",
|
2021-07-15 15:21:50 +00:00
|
|
|
"libbinder_rs",
|
|
|
|
"libbinder_rpc_unstable_bindgen",
|
|
|
|
"libclap",
|
2021-06-16 15:49:32 +00:00
|
|
|
"liblog_rust",
|
2021-07-21 10:29:10 +00:00
|
|
|
"libminijail_rust",
|
2021-06-16 15:49:32 +00:00
|
|
|
"libring",
|
|
|
|
"libscopeguard",
|
|
|
|
],
|
|
|
|
prefer_rlib: true,
|
2021-07-15 15:21:50 +00:00
|
|
|
shared_libs: [
|
|
|
|
"libbinder_rpc_unstable",
|
|
|
|
],
|
2021-06-16 15:49:32 +00:00
|
|
|
apex_available: ["com.android.compos"],
|
|
|
|
}
|