blob: 46a69833247909b8e8ed84afd7421c2f3b5c93f0 [file] [log] [blame]
Myles Watson6d5e7722022-09-30 06:22:43 -07001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Antoine SOULIERf0d56e82025-02-26 17:35:45 +00005cc_defaults {
6 name: "android.hardware.bluetooth-service-build-defaults",
Antoine SOULIERb833bc62024-11-08 00:50:36 +00007 cflags: [
8 "-Wall",
9 "-Wextra",
Myles Watson6d5e7722022-09-30 06:22:43 -070010 ],
Antoine SOULIERf0d56e82025-02-26 17:35:45 +000011 shared_libs: [
12 "android.hardware.bluetooth-V1-ndk",
13 "libbase",
14 "libbinder_ndk",
15 "libcutils",
16 "libhidlbase",
17 "liblog",
18 "libutils",
Myles Watson6d5e7722022-09-30 06:22:43 -070019 ],
20 static_libs: [
21 "android.hardware.bluetooth.async",
22 "android.hardware.bluetooth.hci",
Antoine SOULIER35fef7c2025-02-26 23:01:21 +000023 "libbluetooth_offload_hal",
Myles Watson6d5e7722022-09-30 06:22:43 -070024 ],
Antoine SOULIERf0d56e82025-02-26 17:35:45 +000025}
26
27cc_library_static {
28 name: "libbluetoothhcihalimpl",
29 vendor_available: true,
Antoine SOULIERf0d56e82025-02-26 17:35:45 +000030 defaults: ["android.hardware.bluetooth-service-build-defaults"],
31 srcs: [
32 "BluetoothHci.cpp",
33 "net_bluetooth_mgmt.cpp",
Antoine SOULIERb833bc62024-11-08 00:50:36 +000034 ],
35}
36
Antoine SOULIERf0d56e82025-02-26 17:35:45 +000037cc_binary {
Antoine SOULIERb833bc62024-11-08 00:50:36 +000038 name: "android.hardware.bluetooth-service.default",
Antoine SOULIERb833bc62024-11-08 00:50:36 +000039 relative_install_path: "hw",
40 init_rc: ["bluetooth-service-default.rc"],
41 vintf_fragments: [":manifest_android.hardware.bluetooth-service.default.xml"],
42 vendor: true,
Antoine SOULIERf0d56e82025-02-26 17:35:45 +000043 defaults: ["android.hardware.bluetooth-service-build-defaults"],
44 srcs: [
45 "service.cpp",
46 ],
47 shared_libs: [
48 "android.hardware.bluetooth-V1-ndk",
49 "libbase",
50 "libbinder_ndk",
51 "libhidlbase",
52 "libutils",
53 "liblog",
54 ],
55 static_libs: [
56 "libbluetoothhcihalimpl",
57 ],
58}
59
Myles Watsonefa25d72022-10-03 16:27:32 -070060filegroup {
61 name: "manifest_android.hardware.bluetooth-service.default.xml",
62 srcs: ["bluetooth-service-default.xml"],
63}