6 name: "fluoride_service_defaults",
7 defaults: ["fluoride_defaults"],
11 header_libs: [ "libbluetooth_headers" ],
15 // ========================================================
16 btserviceDaemonSrc = [
22 "hal/bluetooth_gatt_interface.cc",
23 "hal/bluetooth_interface.cc",
27 "low_energy_advertiser.cc",
28 "low_energy_scanner.cc",
29 "low_energy_client.cc",
34 "ipc/ipc_handler_linux.cc",
35 "ipc/linux_ipc_host.cc",
38 btserviceBinderDaemonSrc = [
39 "ipc/binder/bluetooth_binder_server.cc",
40 "ipc/binder/bluetooth_gatt_client_binder_server.cc",
41 "ipc/binder/bluetooth_gatt_server_binder_server.cc",
42 "ipc/binder/bluetooth_le_advertiser_binder_server.cc",
43 "ipc/binder/bluetooth_le_scanner_binder_server.cc",
44 "ipc/binder/bluetooth_low_energy_binder_server.cc",
45 "ipc/binder/interface_with_instances_base.cc",
46 "ipc/binder/ipc_handler_binder.cc",
49 // Main unit test sources. These get built for host and target.
50 // ========================================================
51 btserviceBaseTestSrc = [
52 "hal/fake_bluetooth_gatt_interface.cc",
53 "hal/fake_bluetooth_interface.cc",
54 "test/adapter_unittest.cc",
55 "test/advertise_data_unittest.cc",
56 "test/fake_hal_util.cc",
57 "test/gatt_client_unittest.cc",
58 "test/gatt_server_unittest.cc",
59 "test/low_energy_advertiser_unittest.cc",
60 "test/low_energy_client_unittest.cc",
61 "test/low_energy_scanner_unittest.cc",
62 "test/settings_unittest.cc",
65 // Native system service for target
66 // ========================================================
69 defaults: ["fluoride_service_defaults"],
70 srcs: btserviceBinderDaemonSrc +
75 "libbluetooth-binder-common",
87 init_rc: ["bluetoothtbd.rc"],
90 // Native system service unit tests for target and host
92 // ========================================================
94 name: "bluetoothtbd_test",
95 test_suites: ["device-tests"],
96 defaults: ["fluoride_service_defaults"],
97 srcs: btserviceBaseTestSrc +
98 btserviceDaemonSrc + [
103 "system/bt/service/common",
104 "frameworks/native/aidl/binder",
108 "libbluetooth-common",
111 "libbluetooth-types",
113 host_supported: true,
115 // This includes Binder related tests that can only be run
118 srcs: btserviceBinderDaemonSrc + [
119 "test/parcelable_unittest.cc",
120 "test/ParcelableTest.aidl",
123 "libbluetooth-binder-common",
132 "test/stub_ipc_handler_binder.cc",
136 srcs: btserviceLinuxSrc + [
137 // TODO(bcf): Fix this test.
138 //"test/ipc_linux_unittest.cc",
147 // Native system service CLI for target
148 // ========================================================
150 name: "bluetooth-cli",
151 defaults: ["fluoride_defaults"],
152 srcs: ["client/main.cc"],
154 "libbluetooth-binder-common",
162 // Heart Rate GATT service example for target
163 // ========================================================
165 name: "bt-example-hr-server",
166 defaults: ["fluoride_defaults"],
167 local_include_dirs: ["example/heart_rate"],
169 "example/heart_rate/heart_rate_server.cc",
170 "example/heart_rate/server_main.cc",
173 "libbluetooth-binder-common",
182 name: "libbluetoothtbd_hal",
183 defaults: ["fluoride_defaults"],
184 include_dirs: ["system/bt"],
185 header_libs: ["libbluetooth_headers"],
187 "hal/bluetooth_gatt_interface.cc",
188 "hal/bluetooth_interface.cc",
189 "logging_helpers.cc",