blob: c6d1a52f9e6a12d7fdfa03d22c83b1ef4a22172e [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",
18 "liblogger",
19 "liblog_rust",
20 "libbinder_rs",
21 "libbinder_tokio_rs",
22 "libtokio",
23 "libnix",
24 "libanyhow",
Roshan Pius80c3cc62021-08-27 12:55:02 -070025 ],
Charlie Boutierd572dd02023-04-10 18:14:23 +000026 proc_macros: [
27 "libasync_trait",
Roshan Pius80c3cc62021-08-27 12:55:02 -070028 ],
29 srcs: [
Charlie Boutierd572dd02023-04-10 18:14:23 +000030 "src/service.rs",
Roshan Pius80c3cc62021-08-27 12:55:02 -070031 ],
32}
Jooyung Han83497062023-08-21 13:37:13 +090033
34prebuilt_etc {
35 name: "uwb-service.rc",
36 src: "uwb-service.rc",
37 vendor: true,
38 installable: false,
39}
40
41prebuilt_etc {
42 name: "uwb-service.xml",
43 src: "uwb-service.xml",
44 sub_dir: "vintf",
45 vendor: true,
46 installable: false,
47}
48
49apex_key {
50 name: "com.android.hardware.uwb.key",
51 public_key: "com.android.hardware.uwb.avbpubkey",
52 private_key: "com.android.hardware.uwb.pem",
53}
54
55android_app_certificate {
56 name: "com.android.hardware.uwb.certificate",
57 certificate: "com.android.hardware.uwb",
58}
59
60apex {
61 name: "com.android.hardware.uwb",
62 manifest: "manifest.json",
63 file_contexts: "file_contexts",
64 key: "com.android.hardware.uwb.key",
65 certificate: ":com.android.hardware.uwb.certificate",
66 updatable: false,
67 vendor: true,
68
69 binaries: [
70 "android.hardware.uwb-service",
71 ],
72 prebuilts: [
73 "uwb-service.rc", // init_rc
74 "uwb-service.xml", // vintf_fragments
75 ],
76}