blob: 32d1a139e541ff10f47da34ae132f3ce160e37a0 [file] [log] [blame]
Myles Watson6d5e7722022-09-30 06:22:43 -07001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5cc_defaults {
6 name: "android.hardware.bluetooth-service-build-defaults",
7 cflags: [
8 "-Wall",
9 "-Wextra",
10 ],
11 shared_libs: [
12 "android.hardware.bluetooth-V1-ndk",
13 "libbase",
14 "libbinder_ndk",
15 "libcutils",
16 "libhidlbase",
17 "liblog",
18 "libutils",
19 ],
20 static_libs: [
21 "android.hardware.bluetooth.async",
22 "android.hardware.bluetooth.hci",
23 ],
24}
25
26cc_library_static {
27 name: "libbluetoothhcihalimpl",
28 vendor_available: true,
29 host_supported: true,
30 defaults: ["android.hardware.bluetooth-service-build-defaults"],
31 srcs: [
32 "BluetoothHci.cpp",
Myles Watson65b47f52023-01-26 12:59:06 -080033 ":BluetoothPacketSources",
Myles Watsonefa25d72022-10-03 16:27:32 -070034 "net_bluetooth_mgmt.cpp",
Myles Watson6d5e7722022-09-30 06:22:43 -070035 ],
Myles Watson65b47f52023-01-26 12:59:06 -080036 generated_headers: [
37 "BluetoothGeneratedPackets_h",
38 ],
39 include_dirs: [
40 "packages/modules/Bluetooth/system/gd",
41 ],
Myles Watson6d5e7722022-09-30 06:22:43 -070042}
43
44cc_binary {
45 name: "android.hardware.bluetooth-service.default",
46 relative_install_path: "hw",
47 init_rc: ["bluetooth-service-default.rc"],
Myles Watsonefa25d72022-10-03 16:27:32 -070048 vintf_fragments: [":manifest_android.hardware.bluetooth-service.default.xml"],
Myles Watson6d5e7722022-09-30 06:22:43 -070049 vendor: true,
50 defaults: ["android.hardware.bluetooth-service-build-defaults"],
51 srcs: [
52 "service.cpp",
53 ],
54 shared_libs: [
55 "android.hardware.bluetooth-V1-ndk",
56 "libbase",
57 "libbinder_ndk",
58 "libhidlbase",
59 "libutils",
60 "liblog",
61 ],
62 static_libs: [
63 "libbluetoothhcihalimpl",
64 ],
65}
66
67cc_fuzz {
68 name: "android.hardware.bluetooth-service.default_fuzzer",
69 host_supported: true,
70 defaults: ["service_fuzzer_defaults"],
71 srcs: [
72 "test/fuzzer.cpp",
73 ],
74 static_libs: [
75 "android.hardware.bluetooth.async",
76 "android.hardware.bluetooth.hci",
77 "android.hardware.bluetooth-V1-ndk",
78 "libbluetoothhcihalimpl",
79 "liblog",
80 ],
81 fuzz_config: {
82 componentid: 27441,
83 cc: [
84 "mylesgw@google.com",
85 ],
86 },
87}
Myles Watsonefa25d72022-10-03 16:27:32 -070088
89filegroup {
90 name: "manifest_android.hardware.bluetooth-service.default.xml",
91 srcs: ["bluetooth-service-default.xml"],
92}