Andrew Walbran | c4d1cbd | 2022-08-02 17:15:56 +0000 | [diff] [blame] | 1 | rust_library { |
| 2 | name: "librpcbinder_rs", |
| 3 | crate_name: "rpcbinder", |
| 4 | srcs: ["src/lib.rs"], |
| 5 | shared_libs: [ |
| 6 | "libutils", |
| 7 | ], |
| 8 | rustlibs: [ |
| 9 | "libbinder_ndk_sys", |
| 10 | "libbinder_rpc_unstable_bindgen", |
| 11 | "libbinder_rs", |
| 12 | "libdowncast_rs", |
| 13 | "liblibc", |
| 14 | ], |
| 15 | apex_available: [ |
| 16 | "com.android.compos", |
| 17 | "com.android.uwb", |
| 18 | "com.android.virt", |
| 19 | ], |
| 20 | min_sdk_version: "Tiramisu", |
| 21 | } |
| 22 | |
| 23 | // TODO(b/184872979): remove once the RPC Binder API is stabilised. |
| 24 | rust_bindgen { |
| 25 | name: "libbinder_rpc_unstable_bindgen", |
| 26 | wrapper_src: ":libbinder_rpc_unstable_header", |
| 27 | crate_name: "binder_rpc_unstable_bindgen", |
| 28 | visibility: [":__subpackages__"], |
| 29 | source_stem: "bindings", |
| 30 | shared_libs: [ |
| 31 | "libbinder_rpc_unstable", |
| 32 | "libutils", |
| 33 | ], |
| 34 | apex_available: [ |
| 35 | "com.android.compos", |
| 36 | "com.android.uwb", |
| 37 | "com.android.virt", |
| 38 | ], |
| 39 | min_sdk_version: "Tiramisu", |
| 40 | } |
| 41 | |
| 42 | rust_test { |
| 43 | name: "libbinder_rpc_unstable_bindgen_test", |
| 44 | srcs: [":libbinder_rpc_unstable_bindgen"], |
| 45 | crate_name: "binder_rpc_unstable_bindgen", |
| 46 | test_suites: ["general-tests"], |
| 47 | auto_gen_config: true, |
| 48 | clippy_lints: "none", |
| 49 | lints: "none", |
| 50 | } |