2 # Copyright (C) 2015 Google
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at:
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 source_set("service") {
20 "common/bluetooth/adapter_state.cc",
21 "common/bluetooth/advertise_data.cc",
22 "common/bluetooth/advertise_settings.cc",
23 "common/bluetooth/characteristic.cc",
24 "common/bluetooth/descriptor.cc",
25 "common/bluetooth/scan_filter.cc",
26 "common/bluetooth/scan_result.cc",
27 "common/bluetooth/scan_settings.cc",
28 "common/bluetooth/service.cc",
29 "common/bluetooth/util/atomic_string.cc",
30 "common/bluetooth/uuid.cc",
35 "hal/bluetooth_gatt_interface.cc",
36 "hal/bluetooth_interface.cc",
37 "ipc/dbus/bluetooth_adapter.cc",
38 "ipc/dbus/ipc_handler_dbus.cc",
39 "hal/fake_bluetooth_gatt_interface.cc",
40 "hal/fake_bluetooth_interface.cc",
42 "ipc/ipc_handler_linux.cc",
44 "ipc/linux_ipc_host.cc",
46 "low_energy_advertiser.cc",
47 "low_energy_scanner.cc",
48 "low_energy_client.cc",
55 "//third_party/modp_b64/modp64",
56 "//third_party/libhardware/include",
61 "//third_party/libchrome:base",
65 executable("bluetoothtbd") {
73 "//third_party/libchrome:base",
74 "//third_party/modp_b64",
77 include_dirs = [ "//" ]
86 executable("service_unittests") {
89 "test/fake_hal_util.cc",
90 "test/settings_unittest.cc",
91 "test/uuid_unittest.cc",
94 include_dirs = [ "//" ]
98 "//third_party/googletest:gmock_main",
99 "//third_party/libchrome:base",
100 "//third_party/modp_b64",