blob: 8af1678d1a7a31361251212a442c79d4e162fb35 [file] [log] [blame]
Roshan Pius80c3cc62021-08-27 12:55:02 -07001package {
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 "hardware_interfaces_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
Charlie Boutierd572dd02023-04-10 18:14:23 +000010rust_binary {
Roshan Pius80c3cc62021-08-27 12:55:02 -070011 name: "android.hardware.uwb-service",
Charlie Boutierd572dd02023-04-10 18:14:23 +000012 crate_name: "uwb_default_hal",
Roshan Pius80c3cc62021-08-27 12:55:02 -070013 relative_install_path: "hw",
Roshan Pius80c3cc62021-08-27 12:55:02 -070014 vendor: true,
Jooyung Han83497062023-08-21 13:37:13 +090015 prefer_rlib: true,
Charlie Boutierd572dd02023-04-10 18:14:23 +000016 rustlibs: [
17 "android.hardware.uwb-V1-rust",
Henri Chataing7e798082023-10-05 16:14:12 +000018 "liblibc",
Charlie Boutierd572dd02023-04-10 18:14:23 +000019 "liblogger",
20 "liblog_rust",
21 "libbinder_rs",
22 "libbinder_tokio_rs",
23 "libtokio",
ziyiw4fec12a2023-09-27 21:00:25 +000024 "libtokio_util",
Charlie Boutierd572dd02023-04-10 18:14:23 +000025 "libnix",
26 "libanyhow",
ziyiw49aa3352023-12-08 22:40:55 +000027 "libpdl_runtime",
28 "libuwb_uci_packets",
Roshan Pius80c3cc62021-08-27 12:55:02 -070029 ],
Charlie Boutierd572dd02023-04-10 18:14:23 +000030 proc_macros: [
31 "libasync_trait",
Roshan Pius80c3cc62021-08-27 12:55:02 -070032 ],
33 srcs: [
Charlie Boutierd572dd02023-04-10 18:14:23 +000034 "src/service.rs",
Roshan Pius80c3cc62021-08-27 12:55:02 -070035 ],
36}
Jooyung Han83497062023-08-21 13:37:13 +090037
38prebuilt_etc {
39 name: "uwb-service.rc",
40 src: "uwb-service.rc",
41 vendor: true,
42 installable: false,
43}
44
45prebuilt_etc {
46 name: "uwb-service.xml",
47 src: "uwb-service.xml",
48 sub_dir: "vintf",
49 vendor: true,
50 installable: false,
51}
52
Jooyung Han83497062023-08-21 13:37:13 +090053apex {
54 name: "com.android.hardware.uwb",
55 manifest: "manifest.json",
56 file_contexts: "file_contexts",
Jooyung Han3d66ca32023-10-10 13:46:47 +090057 key: "com.android.hardware.key",
58 certificate: ":com.android.hardware.certificate",
Jooyung Han83497062023-08-21 13:37:13 +090059 updatable: false,
60 vendor: true,
61
62 binaries: [
63 "android.hardware.uwb-service",
64 ],
65 prebuilts: [
66 "uwb-service.rc", // init_rc
67 "uwb-service.xml", // vintf_fragments
68 ],
69}