OSDN Git Service

[automerger skipped] Merge "DO NOT MERGE Separate SDP procedure from bonding state...
[android-x86/system-bt.git] / service / BUILD.gn
1 #
2 #  Copyright 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     "a2dp_sink.cc",
20     "a2dp_source.cc",
21     "adapter.cc",
22     "avrcp_control.cc",
23     "avrcp_target.cc",
24     "common/bluetooth/a2dp_codec_config.cc",
25     "common/bluetooth/adapter_state.cc",
26     "common/bluetooth/advertise_data.cc",
27     "common/bluetooth/advertise_settings.cc",
28     "common/bluetooth/avrcp_int_value.cc",
29     "common/bluetooth/avrcp_media_attr.cc",
30     "common/bluetooth/avrcp_register_notification_response.cc",
31     "common/bluetooth/characteristic.cc",
32     "common/bluetooth/descriptor.cc",
33     "common/bluetooth/remote_device_props.cc",
34     "common/bluetooth/scan_filter.cc",
35     "common/bluetooth/scan_result.cc",
36     "common/bluetooth/scan_settings.cc",
37     "common/bluetooth/service.cc",
38     "common/bluetooth/util/atomic_string.cc",
39     "daemon.cc",
40     "gatt_client.cc",
41     "gatt_server.cc",
42     "gatt_server_old.cc",
43     "hal/bluetooth_gatt_interface.cc",
44     "hal/bluetooth_interface.cc",
45     "ipc/dbus/bluetooth_adapter.cc",
46     "ipc/dbus/ipc_handler_dbus.cc",
47     "hal/bluetooth_av_interface.cc",
48     "hal/bluetooth_avrcp_interface.cc",
49     "hal/fake_bluetooth_gatt_interface.cc",
50     "hal/fake_bluetooth_interface.cc",
51     "ipc/ipc_handler.cc",
52     "ipc/ipc_handler_linux.cc",
53     "ipc/ipc_manager.cc",
54     "ipc/linux_ipc_host.cc",
55     "logging_helpers.cc",
56     "low_energy_advertiser.cc",
57     "low_energy_scanner.cc",
58     "low_energy_client.cc",
59     "settings.cc",
60   ]
61
62   include_dirs = [
63     "//",
64     "//linux_include",
65     "//include",
66     "//service/common",
67     "//third_party/modp_b64/modp64",
68   ]
69
70   deps = [
71     "//types",
72     "//osi",
73     "//third_party/libchrome:base",
74   ]
75 }
76
77 executable("bluetoothtbd") {
78   sources = [
79     "main.cc",
80   ]
81
82   deps = [
83     ":service",
84     "//btcore",
85     "//third_party/libchrome:base",
86     "//third_party/modp_b64",
87   ]
88
89   include_dirs = [ "//" ]
90
91   libs = [
92     "-ldl",
93     "-lpthread",
94     "-lrt",
95   ]
96 }
97
98 executable("service_unittests") {
99   testonly = true
100   sources = [
101     "test/fake_hal_util.cc",
102     "test/settings_unittest.cc",
103   ]
104
105   include_dirs = [ "//" ]
106
107   deps = [
108     ":service",
109     "//third_party/googletest:gmock_main",
110     "//third_party/libchrome:base",
111     "//third_party/modp_b64",
112   ]
113 }