OSDN Git Service

keep history after reset to mnc-dr-dev(03d171170c7ad4e40454a9575cfd4919d2e1ef2f)
[android-x86/system-bt.git] / service / BUILD.gn
1 #
2 #  Copyright (C) 2015 Google
3 #
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:
7 #
8 #  http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15 #
16
17 source_set("service") {
18   sources = [
19     "adapter.cpp",
20     "adapter_state.cpp",
21     "daemon.cpp",
22     "gatt_server.cpp",
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",
33     "settings.cpp",
34     "util/atomic_string.cpp",
35     "uuid.cpp"
36   ]
37
38   include_dirs = [
39     "//",
40     "//third_party/libchrome"
41   ]
42 }
43
44 executable("bluetoothtbd") {
45   sources = [
46     "main.cpp"
47   ]
48
49   deps = [
50     ":service",
51     "//btcore",
52     "//third_party/libchrome:base",
53     "//third_party/modp_b64"
54   ]
55
56   include_dirs = [
57     "//",
58     "//third_party/libchrome"
59   ]
60
61   libs = [ "-ldl", "-lpthread", "-lrt" ]
62 }
63
64 executable("service_unittests") {
65   testonly = true
66   sources = [
67     "test/fake_hal_util.cpp",
68     "test/ipc_linux_unittest.cpp",
69     "test/settings_unittest.cpp",
70     "test/uuid_unittest.cpp",
71   ]
72
73   include_dirs = [
74     "//",
75     "//third_party/gmock/include",
76     "//third_party/libchrome"
77   ]
78
79   deps = [
80     ":service",
81     "//third_party/gmock:gmock_main",
82     "//third_party/gtest:gtest_main",
83     "//third_party/libchrome:base",
84     "//third_party/modp_b64",
85   ]
86 }