Bob Badour | e80ee75 | 2021-05-12 12:41:18 -0700 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 5 | rust_binary { |
| 6 | name: "pvm_exec", |
| 7 | srcs: ["src/pvm_exec.rs"], |
| 8 | rustlibs: [ |
| 9 | "compos_aidl_interface-rust", |
| 10 | "libanyhow", |
Victor Hsieh | a7d3786 | 2021-06-04 17:14:20 -0700 | [diff] [blame] | 11 | "libbinder_rpc_unstable_bindgen", |
| 12 | "libbinder_rs", |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 13 | "libclap", |
| 14 | "liblibc", |
| 15 | "liblog_rust", |
| 16 | "libminijail_rust", |
| 17 | "libnix", |
| 18 | "libscopeguard", |
| 19 | ], |
Victor Hsieh | 3cc5b32 | 2021-05-18 12:44:45 -0700 | [diff] [blame] | 20 | prefer_rlib: true, |
Victor Hsieh | a7d3786 | 2021-06-04 17:14:20 -0700 | [diff] [blame] | 21 | shared_libs: [ |
| 22 | "libbinder_rpc_unstable", |
| 23 | ], |
Victor Hsieh | b5f465a | 2021-05-11 13:45:15 -0700 | [diff] [blame] | 24 | apex_available: [ |
| 25 | "com.android.compos", |
| 26 | ], |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | rust_binary { |
| 30 | name: "compsvc", |
Alan Stokes | 9e2c5d5 | 2021-07-21 11:29:10 +0100 | [diff] [blame] | 31 | srcs: ["src/compsvc_main.rs"], |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 32 | rustlibs: [ |
Victor Hsieh | ebb1d90 | 2021-08-06 13:00:18 -0700 | [diff] [blame] | 33 | "authfs_aidl_interface-rust", |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 34 | "compos_aidl_interface-rust", |
| 35 | "libandroid_logger", |
| 36 | "libanyhow", |
Victor Hsieh | a7d3786 | 2021-06-04 17:14:20 -0700 | [diff] [blame] | 37 | "libbinder_rpc_unstable_bindgen", |
| 38 | "libbinder_rs", |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 39 | "libclap", |
| 40 | "liblog_rust", |
| 41 | "libminijail_rust", |
| 42 | ], |
Victor Hsieh | 3cc5b32 | 2021-05-18 12:44:45 -0700 | [diff] [blame] | 43 | prefer_rlib: true, |
Victor Hsieh | a7d3786 | 2021-06-04 17:14:20 -0700 | [diff] [blame] | 44 | shared_libs: [ |
| 45 | "libbinder_rpc_unstable", |
| 46 | ], |
Victor Hsieh | b5f465a | 2021-05-11 13:45:15 -0700 | [diff] [blame] | 47 | apex_available: [ |
| 48 | "com.android.compos", |
| 49 | ], |
Victor Hsieh | 272aa24 | 2021-02-01 14:19:20 -0800 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | rust_binary { |
Alan Stokes | b15c93f | 2021-07-15 16:21:50 +0100 | [diff] [blame] | 53 | name: "compos_key_main", |
| 54 | srcs: ["src/compos_key_main.rs"], |
Alan Stokes | 337874a | 2021-06-16 16:49:32 +0100 | [diff] [blame] | 55 | edition: "2018", |
| 56 | rustlibs: [ |
Victor Hsieh | ebb1d90 | 2021-08-06 13:00:18 -0700 | [diff] [blame] | 57 | "authfs_aidl_interface-rust", |
Alan Stokes | 337874a | 2021-06-16 16:49:32 +0100 | [diff] [blame] | 58 | "compos_aidl_interface-rust", |
| 59 | "android.system.keystore2-V1-rust", |
| 60 | "android.hardware.security.keymint-V1-rust", |
| 61 | "libandroid_logger", |
| 62 | "libanyhow", |
Alan Stokes | b15c93f | 2021-07-15 16:21:50 +0100 | [diff] [blame] | 63 | "libbinder_rs", |
| 64 | "libbinder_rpc_unstable_bindgen", |
| 65 | "libclap", |
Alan Stokes | 337874a | 2021-06-16 16:49:32 +0100 | [diff] [blame] | 66 | "liblog_rust", |
Alan Stokes | 7ec4e7f | 2021-07-21 11:29:10 +0100 | [diff] [blame] | 67 | "libminijail_rust", |
Alan Stokes | 337874a | 2021-06-16 16:49:32 +0100 | [diff] [blame] | 68 | "libring", |
| 69 | "libscopeguard", |
| 70 | ], |
| 71 | prefer_rlib: true, |
Alan Stokes | b15c93f | 2021-07-15 16:21:50 +0100 | [diff] [blame] | 72 | shared_libs: [ |
| 73 | "libbinder_rpc_unstable", |
| 74 | ], |
Alan Stokes | 337874a | 2021-06-16 16:49:32 +0100 | [diff] [blame] | 75 | apex_available: ["com.android.compos"], |
| 76 | } |