blob: ec3f67f8eb13e13bdab7e6d9982b328b9aaa9b05 [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",
Alan Stokes9e2c5d52021-07-21 11:29:10 +010031 srcs: ["src/compsvc_main.rs"],
Victor Hsieh272aa242021-02-01 14:19:20 -080032 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",
Victor Hsieh272aa242021-02-01 14:19:20 -080061 ],
Victor Hsieh3cc5b322021-05-18 12:44:45 -070062 prefer_rlib: true,
Victor Hsiehb5f465a2021-05-11 13:45:15 -070063 apex_available: [
64 "com.android.compos",
65 ],
Victor Hsieh272aa242021-02-01 14:19:20 -080066}
Jooyung Hanaeefda42021-06-15 16:59:00 +090067
Alan Stokes337874a2021-06-16 16:49:32 +010068rust_binary {
Alan Stokesb15c93f2021-07-15 16:21:50 +010069 name: "compos_key_main",
70 srcs: ["src/compos_key_main.rs"],
Alan Stokes337874a2021-06-16 16:49:32 +010071 edition: "2018",
72 rustlibs: [
73 "compos_aidl_interface-rust",
74 "android.system.keystore2-V1-rust",
75 "android.hardware.security.keymint-V1-rust",
76 "libandroid_logger",
77 "libanyhow",
Alan Stokesb15c93f2021-07-15 16:21:50 +010078 "libbinder_rs",
79 "libbinder_rpc_unstable_bindgen",
80 "libclap",
Alan Stokes337874a2021-06-16 16:49:32 +010081 "liblog_rust",
Alan Stokes7ec4e7f2021-07-21 11:29:10 +010082 "libminijail_rust",
Alan Stokes337874a2021-06-16 16:49:32 +010083 "libring",
84 "libscopeguard",
85 ],
86 prefer_rlib: true,
Alan Stokesb15c93f2021-07-15 16:21:50 +010087 shared_libs: [
88 "libbinder_rpc_unstable",
89 ],
Alan Stokes337874a2021-06-16 16:49:32 +010090 apex_available: ["com.android.compos"],
91}