6 name: "fluoride_service_defaults",
7 defaults: ["fluoride_defaults"],
14 // ========================================================
15 btserviceDaemonSrc = [
21 "hal/bluetooth_gatt_interface.cc",
22 "hal/bluetooth_interface.cc",
26 "low_energy_advertiser.cc",
27 "low_energy_scanner.cc",
28 "low_energy_client.cc",
33 "ipc/ipc_handler_linux.cc",
34 "ipc/linux_ipc_host.cc",
37 btserviceBinderDaemonSrc = [
38 "ipc/binder/bluetooth_binder_server.cc",
39 "ipc/binder/bluetooth_gatt_client_binder_server.cc",
40 "ipc/binder/bluetooth_gatt_server_binder_server.cc",
41 "ipc/binder/bluetooth_le_advertiser_binder_server.cc",
42 "ipc/binder/bluetooth_le_scanner_binder_server.cc",
43 "ipc/binder/bluetooth_low_energy_binder_server.cc",
44 "ipc/binder/interface_with_instances_base.cc",
45 "ipc/binder/ipc_handler_binder.cc",
48 // Main unit test sources. These get built for host and target.
49 // ========================================================
50 btserviceBaseTestSrc = [
51 "hal/fake_bluetooth_gatt_interface.cc",
52 "hal/fake_bluetooth_interface.cc",
53 "test/adapter_unittest.cc",
54 "test/advertise_data_unittest.cc",
55 "test/fake_hal_util.cc",
56 "test/gatt_client_unittest.cc",
57 "test/gatt_server_unittest.cc",
58 "test/low_energy_advertiser_unittest.cc",
59 "test/low_energy_client_unittest.cc",
60 "test/low_energy_scanner_unittest.cc",
61 "test/settings_unittest.cc",
62 "test/uuid_unittest.cc",
65 // Native system service for target
66 // ========================================================
69 defaults: ["fluoride_service_defaults"],
70 srcs: btserviceBinderDaemonSrc +
74 required: ["bluetooth.default"],
76 "libbluetooth-binder-common",
86 init_rc: ["bluetoothtbd.rc"],
89 // Native system service unit tests for target and host
91 // ========================================================
93 name: "bluetoothtbd_test",
94 test_suites: ["device-tests"],
95 defaults: ["fluoride_service_defaults"],
96 srcs: btserviceBaseTestSrc +
97 btserviceDaemonSrc + [
102 "system/bt/service/common",
103 "frameworks/native/aidl/binder",
107 "libbluetooth-common",
111 host_supported: true,
113 // This includes Binder related tests that can only be run
116 srcs: btserviceBinderDaemonSrc + [
117 "test/parcelable_unittest.cc",
118 "test/ParcelableTest.aidl",
121 "libbluetooth-binder-common",
130 "test/stub_ipc_handler_binder.cc",
135 "test/stub_ipc_handler_linux.cc",
139 srcs: btserviceLinuxSrc + [
140 // TODO(bcf): Fix this test.
141 //"test/ipc_linux_unittest.cc",
143 host_ldlibs: ["-lrt"],
148 // Native system service CLI for target
149 // ========================================================
151 name: "bluetooth-cli",
152 defaults: ["fluoride_defaults"],
153 srcs: ["client/main.cc"],
155 "libbluetooth-binder-common",
163 // Heart Rate GATT service example for target
164 // ========================================================
166 name: "bt-example-hr-server",
167 defaults: ["fluoride_defaults"],
168 local_include_dirs: ["example/heart_rate"],
170 "example/heart_rate/heart_rate_server.cc",
171 "example/heart_rate/server_main.cc",
174 "libbluetooth-binder-common",
183 name: "libbluetoothtbd_hal",
184 defaults: ["fluoride_defaults"],
185 include_dirs: ["system/bt"],
187 "hal/bluetooth_gatt_interface.cc",
188 "hal/bluetooth_interface.cc",
189 "logging_helpers.cc",