blob: 037eac3e50388b8f863eb68df6eb33c2af6aef5c [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",
19 "liblogger",
20 "liblog_rust",
21 "libbinder_rs",
22 "libbinder_tokio_rs",
23 "libtokio",
24 "libnix",
25 "libanyhow",
Roshan Pius80c3cc62021-08-27 12:55:02 -070026 ],
Charlie Boutierd572dd02023-04-10 18:14:23 +000027 proc_macros: [
28 "libasync_trait",
Roshan Pius80c3cc62021-08-27 12:55:02 -070029 ],
30 srcs: [
Charlie Boutierd572dd02023-04-10 18:14:23 +000031 "src/service.rs",
Roshan Pius80c3cc62021-08-27 12:55:02 -070032 ],
33}
Jooyung Han83497062023-08-21 13:37:13 +090034
35prebuilt_etc {
36 name: "uwb-service.rc",
37 src: "uwb-service.rc",
38 vendor: true,
39 installable: false,
40}
41
42prebuilt_etc {
43 name: "uwb-service.xml",
44 src: "uwb-service.xml",
45 sub_dir: "vintf",
46 vendor: true,
47 installable: false,
48}
49
Jooyung Han83497062023-08-21 13:37:13 +090050apex {
51 name: "com.android.hardware.uwb",
52 manifest: "manifest.json",
53 file_contexts: "file_contexts",
Jooyung Han3d66ca32023-10-10 13:46:47 +090054 key: "com.android.hardware.key",
55 certificate: ":com.android.hardware.certificate",
Jooyung Han83497062023-08-21 13:37:13 +090056 updatable: false,
57 vendor: true,
58
59 binaries: [
60 "android.hardware.uwb-service",
61 ],
62 prebuilts: [
63 "uwb-service.rc", // init_rc
64 "uwb-service.xml", // vintf_fragments
65 ],
66}