blob: ba270b8d7a28de23f432ad5008788950005f7452 [file] [log] [blame]
Bob Badoure80ee752021-05-12 12:41:18 -07001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Victor Hsieh272aa242021-02-01 14:19:20 -08005rust_binary {
6 name: "pvm_exec",
7 srcs: ["src/pvm_exec.rs"],
8 rustlibs: [
9 "compos_aidl_interface-rust",
10 "libanyhow",
Victor Hsieha7d37862021-06-04 17:14:20 -070011 "libbinder_rpc_unstable_bindgen",
12 "libbinder_rs",
Victor Hsieh272aa242021-02-01 14:19:20 -080013 "libclap",
14 "liblibc",
15 "liblog_rust",
16 "libminijail_rust",
17 "libnix",
18 "libscopeguard",
19 ],
Victor Hsieh3cc5b322021-05-18 12:44:45 -070020 prefer_rlib: true,
Victor Hsieha7d37862021-06-04 17:14:20 -070021 shared_libs: [
22 "libbinder_rpc_unstable",
23 ],
Victor Hsiehb5f465a2021-05-11 13:45:15 -070024 apex_available: [
25 "com.android.compos",
26 ],
Victor Hsieh272aa242021-02-01 14:19:20 -080027}
28
29rust_binary {
30 name: "compsvc",
31 srcs: ["src/compsvc.rs"],
32 rustlibs: [
33 "compos_aidl_interface-rust",
34 "libandroid_logger",
35 "libanyhow",
Victor Hsieha7d37862021-06-04 17:14:20 -070036 "libbinder_rpc_unstable_bindgen",
37 "libbinder_rs",
Victor Hsieh272aa242021-02-01 14:19:20 -080038 "libclap",
39 "liblog_rust",
40 "libminijail_rust",
41 ],
Victor Hsieh3cc5b322021-05-18 12:44:45 -070042 prefer_rlib: true,
Victor Hsieha7d37862021-06-04 17:14:20 -070043 shared_libs: [
44 "libbinder_rpc_unstable",
45 ],
Victor Hsiehb5f465a2021-05-11 13:45:15 -070046 apex_available: [
47 "com.android.compos",
48 ],
Victor Hsieh272aa242021-02-01 14:19:20 -080049}
50
51rust_binary {
52 name: "compsvc_worker",
53 srcs: ["src/compsvc_worker.rs"],
54 rustlibs: [
55 "libandroid_logger",
56 "libanyhow",
57 "libclap",
58 "liblog_rust",
59 "libminijail_rust",
60 "libnix",
61 "libscopeguard",
62 ],
Victor Hsieh3cc5b322021-05-18 12:44:45 -070063 prefer_rlib: true,
Victor Hsiehb5f465a2021-05-11 13:45:15 -070064 apex_available: [
65 "com.android.compos",
66 ],
Victor Hsieh272aa242021-02-01 14:19:20 -080067}
Jooyung Hanaeefda42021-06-15 16:59:00 +090068
Alan Stokes337874a2021-06-16 16:49:32 +010069rust_binary {
Alan Stokes8ccebf12021-07-14 12:04:31 +010070 name: "compos_key_host",
71 srcs: ["src/compos_key_host_main.rs"],
Alan Stokes337874a2021-06-16 16:49:32 +010072 edition: "2018",
73 rustlibs: [
74 "compos_aidl_interface-rust",
75 "android.system.keystore2-V1-rust",
76 "android.hardware.security.keymint-V1-rust",
77 "libandroid_logger",
78 "libanyhow",
79 "liblog_rust",
80 "libring",
81 "libscopeguard",
82 ],
83 prefer_rlib: true,
84 apex_available: ["com.android.compos"],
85}