Bob Badour | 9b84492 | 2022-08-25 09:28:56 -0700 | [diff] [blame^] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_native_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_native_license"], |
| 8 | } |
| 9 | |
Andrew Walbran | c4d1cbd | 2022-08-02 17:15:56 +0000 | [diff] [blame] | 10 | rust_library { |
| 11 | name: "librpcbinder_rs", |
| 12 | crate_name: "rpcbinder", |
| 13 | srcs: ["src/lib.rs"], |
| 14 | shared_libs: [ |
| 15 | "libutils", |
| 16 | ], |
| 17 | rustlibs: [ |
| 18 | "libbinder_ndk_sys", |
| 19 | "libbinder_rpc_unstable_bindgen", |
| 20 | "libbinder_rs", |
| 21 | "libdowncast_rs", |
| 22 | "liblibc", |
| 23 | ], |
| 24 | apex_available: [ |
| 25 | "com.android.compos", |
| 26 | "com.android.uwb", |
| 27 | "com.android.virt", |
| 28 | ], |
| 29 | min_sdk_version: "Tiramisu", |
| 30 | } |
| 31 | |
| 32 | // TODO(b/184872979): remove once the RPC Binder API is stabilised. |
| 33 | rust_bindgen { |
| 34 | name: "libbinder_rpc_unstable_bindgen", |
| 35 | wrapper_src: ":libbinder_rpc_unstable_header", |
| 36 | crate_name: "binder_rpc_unstable_bindgen", |
| 37 | visibility: [":__subpackages__"], |
| 38 | source_stem: "bindings", |
| 39 | shared_libs: [ |
| 40 | "libbinder_rpc_unstable", |
| 41 | "libutils", |
| 42 | ], |
| 43 | apex_available: [ |
| 44 | "com.android.compos", |
| 45 | "com.android.uwb", |
| 46 | "com.android.virt", |
| 47 | ], |
| 48 | min_sdk_version: "Tiramisu", |
| 49 | } |
| 50 | |
| 51 | rust_test { |
| 52 | name: "libbinder_rpc_unstable_bindgen_test", |
| 53 | srcs: [":libbinder_rpc_unstable_bindgen"], |
| 54 | crate_name: "binder_rpc_unstable_bindgen", |
| 55 | test_suites: ["general-tests"], |
| 56 | auto_gen_config: true, |
| 57 | clippy_lints: "none", |
| 58 | lints: "none", |
| 59 | } |