blob: d3f63643f51d30d4ab327a231cc6fd3cc6ca5dd2 [file] [log] [blame]
Myles Watson6d5e7722022-09-30 06:22:43 -07001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Myles Watson6d5e7722022-09-30 06:22:43 -07005cc_library_static {
6 name: "libbluetoothhcihalimpl",
7 vendor_available: true,
8 host_supported: true,
Myles Watson6d5e7722022-09-30 06:22:43 -07009 srcs: [
10 "BluetoothHci.cpp",
Myles Watsonefa25d72022-10-03 16:27:32 -070011 "net_bluetooth_mgmt.cpp",
Myles Watson6d5e7722022-09-30 06:22:43 -070012 ],
Antoine SOULIERb833bc62024-11-08 00:50:36 +000013 cflags: [
14 "-Wall",
15 "-Wextra",
Myles Watson6d5e7722022-09-30 06:22:43 -070016 ],
Antoine SOULIERb833bc62024-11-08 00:50:36 +000017 header_libs: [
18 "libbluetooth_offload_hal_headers",
Myles Watson6d5e7722022-09-30 06:22:43 -070019 ],
20 static_libs: [
21 "android.hardware.bluetooth.async",
22 "android.hardware.bluetooth.hci",
Myles Watson6d5e7722022-09-30 06:22:43 -070023 ],
Antoine SOULIERb833bc62024-11-08 00:50:36 +000024 shared_libs: [
25 "libbase",
26 "libcutils",
27 "liblog",
28 "libutils",
29 ],
30}
31
32rust_binary {
33 name: "android.hardware.bluetooth-service.default",
34 crate_name: "bluetooth_hci_hal_server",
35 relative_install_path: "hw",
36 init_rc: ["bluetooth-service-default.rc"],
37 vintf_fragments: [":manifest_android.hardware.bluetooth-service.default.xml"],
38 vendor: true,
39 prefer_rlib: true,
40 srcs: ["main.rs"],
41 rustlibs: [
42 "android.hardware.bluetooth-V1-rust",
43 "libbluetooth_offload_hal",
44 "libbluetooth_offload_leaudio_hci",
45 "libbinder_rs",
46 "liblogger",
47 "liblog_rust",
48 ],
49 static_libs: [
50 "android.hardware.bluetooth.async",
51 "android.hardware.bluetooth.hci",
52 "libbluetoothhcihalimpl",
53 ],
54 shared_libs: [
55 "libbase",
56 "libc++",
57 "libcutils",
58 "liblog",
59 "libutils",
60 ],
Myles Watson6d5e7722022-09-30 06:22:43 -070061}
Myles Watsonefa25d72022-10-03 16:27:32 -070062
63filegroup {
64 name: "manifest_android.hardware.bluetooth-service.default.xml",
65 srcs: ["bluetooth-service-default.xml"],
66}