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") {
23 "hal/bluetooth_interface.cpp",
24 "ipc/binder/bluetooth_binder_server.cpp",
25 "ipc/binder/IBluetooth.cpp",
26 "ipc/binder/IBluetoothCallback.cpp",
27 "ipc/binder/ipc_handler_binder.cpp",
28 "ipc/ipc_handler.cpp",
29 "ipc/ipc_handler_linux.cpp",
30 "ipc/ipc_manager.cpp",
31 "ipc/linux_ipc_host.cpp",
32 "logging_helpers.cpp",
34 "util/atomic_string.cpp",
40 "//third_party/libchrome"
44 executable("bluetoothtbd") {
52 "//third_party/libchrome:base",
53 "//third_party/modp_b64"
58 "//third_party/libchrome"
61 libs = [ "-ldl", "-lpthread", "-lrt" ]
64 executable("service_unittests") {
67 "test/fake_hal_util.cpp",
68 "test/ipc_linux_unittest.cpp",
69 "test/settings_unittest.cpp",
70 "test/uuid_unittest.cpp",
75 "//third_party/gmock/include",
76 "//third_party/libchrome"
81 "//third_party/gmock:gmock_main",
82 "//third_party/gtest:gtest_main",
83 "//third_party/libchrome:base",
84 "//third_party/modp_b64",