blob: eba18cf6aba9ad5da42e898a7354b0504f18796e [file] [log] [blame]
Roshan Pius80c3cc62021-08-27 12:55:02 -07001package {
Aditya Choudharyad2ba1b2024-02-05 15:45:22 +00002 default_team: "trendy_team_fwk_uwb",
Roshan Pius80c3cc62021-08-27 12:55:02 -07003 // See: http://go/android-license-faq
4 // A large-scale-change added 'default_applicable_licenses' to import
5 // all of the 'license_kinds' from "hardware_interfaces_license"
6 // to get the below license kinds:
7 // SPDX-license-identifier-Apache-2.0
8 default_applicable_licenses: ["hardware_interfaces_license"],
9}
10
Charlie Boutierd572dd02023-04-10 18:14:23 +000011rust_binary {
Roshan Pius80c3cc62021-08-27 12:55:02 -070012 name: "android.hardware.uwb-service",
Charlie Boutierd572dd02023-04-10 18:14:23 +000013 crate_name: "uwb_default_hal",
Roshan Pius80c3cc62021-08-27 12:55:02 -070014 relative_install_path: "hw",
Roshan Pius80c3cc62021-08-27 12:55:02 -070015 vendor: true,
Jooyung Han83497062023-08-21 13:37:13 +090016 prefer_rlib: true,
Charlie Boutierd572dd02023-04-10 18:14:23 +000017 rustlibs: [
18 "android.hardware.uwb-V1-rust",
Henri Chataing7e798082023-10-05 16:14:12 +000019 "liblibc",
Charlie Boutierd572dd02023-04-10 18:14:23 +000020 "liblogger",
21 "liblog_rust",
22 "libbinder_rs",
23 "libbinder_tokio_rs",
24 "libtokio",
ziyiw4fec12a2023-09-27 21:00:25 +000025 "libtokio_util",
Charlie Boutierd572dd02023-04-10 18:14:23 +000026 "libnix",
27 "libanyhow",
ziyiw49aa3352023-12-08 22:40:55 +000028 "libpdl_runtime",
29 "libuwb_uci_packets",
Roshan Pius80c3cc62021-08-27 12:55:02 -070030 ],
Charlie Boutierd572dd02023-04-10 18:14:23 +000031 proc_macros: [
32 "libasync_trait",
Roshan Pius80c3cc62021-08-27 12:55:02 -070033 ],
34 srcs: [
Charlie Boutierd572dd02023-04-10 18:14:23 +000035 "src/service.rs",
Roshan Pius80c3cc62021-08-27 12:55:02 -070036 ],
37}
Jooyung Han83497062023-08-21 13:37:13 +090038
39prebuilt_etc {
40 name: "uwb-service.rc",
41 src: "uwb-service.rc",
42 vendor: true,
43 installable: false,
44}
45
46prebuilt_etc {
47 name: "uwb-service.xml",
48 src: "uwb-service.xml",
49 sub_dir: "vintf",
50 vendor: true,
51 installable: false,
52}
53
Jooyung Han83497062023-08-21 13:37:13 +090054apex {
55 name: "com.android.hardware.uwb",
56 manifest: "manifest.json",
57 file_contexts: "file_contexts",
Jooyung Han3d66ca32023-10-10 13:46:47 +090058 key: "com.android.hardware.key",
59 certificate: ":com.android.hardware.certificate",
Jooyung Han83497062023-08-21 13:37:13 +090060 updatable: false,
61 vendor: true,
62
63 binaries: [
64 "android.hardware.uwb-service",
65 ],
66 prebuilts: [
67 "uwb-service.rc", // init_rc
68 "uwb-service.xml", // vintf_fragments
69 ],
70}