blob: 2b7ef57d6756bdc43891b1b2ab639df8f235314b [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",
ziyiw4fec12a2023-09-27 21:00:25 +000023 "libtokio_util",
Charlie Boutierd572dd02023-04-10 18:14:23 +000024 "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
50apex_key {
51 name: "com.android.hardware.uwb.key",
52 public_key: "com.android.hardware.uwb.avbpubkey",
53 private_key: "com.android.hardware.uwb.pem",
54}
55
56android_app_certificate {
57 name: "com.android.hardware.uwb.certificate",
58 certificate: "com.android.hardware.uwb",
59}
60
61apex {
62 name: "com.android.hardware.uwb",
63 manifest: "manifest.json",
64 file_contexts: "file_contexts",
65 key: "com.android.hardware.uwb.key",
66 certificate: ":com.android.hardware.uwb.certificate",
67 updatable: false,
68 vendor: true,
69
70 binaries: [
71 "android.hardware.uwb-service",
72 ],
73 prebuilts: [
74 "uwb-service.rc", // init_rc
75 "uwb-service.xml", // vintf_fragments
76 ],
77}