2021-08-27 12:55:02 -07:00
|
|
|
package {
|
|
|
|
|
// See: http://go/android-license-faq
|
|
|
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
|
|
|
// all of the 'license_kinds' from "hardware_interfaces_license"
|
|
|
|
|
// to get the below license kinds:
|
|
|
|
|
// SPDX-license-identifier-Apache-2.0
|
|
|
|
|
default_applicable_licenses: ["hardware_interfaces_license"],
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-10 18:14:23 +00:00
|
|
|
rust_binary {
|
2021-08-27 12:55:02 -07:00
|
|
|
name: "android.hardware.uwb-service",
|
2023-04-10 18:14:23 +00:00
|
|
|
crate_name: "uwb_default_hal",
|
2021-08-27 12:55:02 -07:00
|
|
|
relative_install_path: "hw",
|
|
|
|
|
vendor: true,
|
2023-08-21 13:37:13 +09:00
|
|
|
prefer_rlib: true,
|
2023-04-10 18:14:23 +00:00
|
|
|
rustlibs: [
|
|
|
|
|
"android.hardware.uwb-V1-rust",
|
2023-10-05 16:14:12 +00:00
|
|
|
"liblibc",
|
2023-04-10 18:14:23 +00:00
|
|
|
"liblogger",
|
|
|
|
|
"liblog_rust",
|
|
|
|
|
"libbinder_rs",
|
|
|
|
|
"libbinder_tokio_rs",
|
|
|
|
|
"libtokio",
|
2023-09-27 21:00:25 +00:00
|
|
|
"libtokio_util",
|
2023-04-10 18:14:23 +00:00
|
|
|
"libnix",
|
|
|
|
|
"libanyhow",
|
2023-12-08 22:40:55 +00:00
|
|
|
"libpdl_runtime",
|
|
|
|
|
"libuwb_uci_packets",
|
2021-08-27 12:55:02 -07:00
|
|
|
],
|
2023-04-10 18:14:23 +00:00
|
|
|
proc_macros: [
|
|
|
|
|
"libasync_trait",
|
2021-08-27 12:55:02 -07:00
|
|
|
],
|
|
|
|
|
srcs: [
|
2023-04-10 18:14:23 +00:00
|
|
|
"src/service.rs",
|
2021-08-27 12:55:02 -07:00
|
|
|
],
|
|
|
|
|
}
|
2023-08-21 13:37:13 +09:00
|
|
|
|
|
|
|
|
prebuilt_etc {
|
|
|
|
|
name: "uwb-service.rc",
|
|
|
|
|
src: "uwb-service.rc",
|
|
|
|
|
vendor: true,
|
|
|
|
|
installable: false,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
prebuilt_etc {
|
|
|
|
|
name: "uwb-service.xml",
|
|
|
|
|
src: "uwb-service.xml",
|
|
|
|
|
sub_dir: "vintf",
|
|
|
|
|
vendor: true,
|
|
|
|
|
installable: false,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apex {
|
|
|
|
|
name: "com.android.hardware.uwb",
|
|
|
|
|
manifest: "manifest.json",
|
|
|
|
|
file_contexts: "file_contexts",
|
2023-10-10 13:46:47 +09:00
|
|
|
key: "com.android.hardware.key",
|
|
|
|
|
certificate: ":com.android.hardware.certificate",
|
2023-08-21 13:37:13 +09:00
|
|
|
updatable: false,
|
|
|
|
|
vendor: true,
|
|
|
|
|
|
|
|
|
|
binaries: [
|
|
|
|
|
"android.hardware.uwb-service",
|
|
|
|
|
],
|
|
|
|
|
prebuilts: [
|
|
|
|
|
"uwb-service.rc", // init_rc
|
|
|
|
|
"uwb-service.xml", // vintf_fragments
|
|
|
|
|
],
|
|
|
|
|
}
|