blob: 916646cff30647744b9f189e35d7e1cc0dde27c2 [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",
Roshan Pius80c3cc62021-08-27 12:55:02 -070027 ],
Charlie Boutierd572dd02023-04-10 18:14:23 +000028 proc_macros: [
29 "libasync_trait",
Roshan Pius80c3cc62021-08-27 12:55:02 -070030 ],
31 srcs: [
Charlie Boutierd572dd02023-04-10 18:14:23 +000032 "src/service.rs",
Roshan Pius80c3cc62021-08-27 12:55:02 -070033 ],
34}
Jooyung Han83497062023-08-21 13:37:13 +090035
36prebuilt_etc {
37 name: "uwb-service.rc",
38 src: "uwb-service.rc",
39 vendor: true,
40 installable: false,
41}
42
43prebuilt_etc {
44 name: "uwb-service.xml",
45 src: "uwb-service.xml",
46 sub_dir: "vintf",
47 vendor: true,
48 installable: false,
49}
50
51apex_key {
52 name: "com.android.hardware.uwb.key",
53 public_key: "com.android.hardware.uwb.avbpubkey",
54 private_key: "com.android.hardware.uwb.pem",
55}
56
57android_app_certificate {
58 name: "com.android.hardware.uwb.certificate",
59 certificate: "com.android.hardware.uwb",
60}
61
62apex {
63 name: "com.android.hardware.uwb",
64 manifest: "manifest.json",
65 file_contexts: "file_contexts",
66 key: "com.android.hardware.uwb.key",
67 certificate: ":com.android.hardware.uwb.certificate",
68 updatable: false,
69 vendor: true,
70
71 binaries: [
72 "android.hardware.uwb-service",
73 ],
74 prebuilts: [
75 "uwb-service.rc", // init_rc
76 "uwb-service.xml", // vintf_fragments
77 ],
78}