1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//tools/grit/grit_rule.gni")
7 config("bluetooth_config") {
10 "/DELAYLOAD:BluetoothApis.dll",
12 # Despite MSDN stating that Bthprops.dll contains the
13 # symbols declared by bthprops.lib, they actually reside here:
14 "/DELAYLOAD:Bthprops.cpl",
15 "/DELAYLOAD:setupapi.dll",
20 component("bluetooth") {
22 "bluetooth_adapter.cc",
23 "bluetooth_adapter.h",
24 "bluetooth_adapter_chromeos.cc",
25 "bluetooth_adapter_chromeos.h",
26 "bluetooth_adapter_factory.cc",
27 "bluetooth_adapter_factory.h",
28 "bluetooth_adapter_mac.h",
29 "bluetooth_adapter_mac.mm",
30 "bluetooth_adapter_profile_chromeos.cc",
31 "bluetooth_adapter_profile_chromeos.h",
32 "bluetooth_adapter_win.cc",
33 "bluetooth_adapter_win.h",
34 "bluetooth_audio_sink.cc",
35 "bluetooth_audio_sink.h",
36 "bluetooth_audio_sink_chromeos.cc",
37 "bluetooth_audio_sink_chromeos.h",
38 "bluetooth_channel_mac.h",
39 "bluetooth_channel_mac.mm",
40 "bluetooth_device.cc",
42 "bluetooth_device_chromeos.cc",
43 "bluetooth_device_chromeos.h",
44 "bluetooth_device_mac.h",
45 "bluetooth_device_mac.mm",
46 "bluetooth_device_win.cc",
47 "bluetooth_device_win.h",
48 "bluetooth_discovery_manager_mac.h",
49 "bluetooth_discovery_manager_mac.mm",
50 "bluetooth_discovery_session.cc",
51 "bluetooth_discovery_session.h",
52 "bluetooth_gatt_characteristic.cc",
53 "bluetooth_gatt_characteristic.h",
54 "bluetooth_gatt_connection.cc",
55 "bluetooth_gatt_connection.h",
56 "bluetooth_gatt_connection_chromeos.cc",
57 "bluetooth_gatt_connection_chromeos.h",
58 "bluetooth_gatt_descriptor.cc",
59 "bluetooth_gatt_descriptor.h",
60 "bluetooth_gatt_notify_session.cc",
61 "bluetooth_gatt_notify_session.h",
62 "bluetooth_gatt_notify_session_chromeos.cc",
63 "bluetooth_gatt_notify_session_chromeos.h",
64 "bluetooth_gatt_service.cc",
65 "bluetooth_gatt_service.h",
66 "bluetooth_init_win.cc",
67 "bluetooth_init_win.h",
68 "bluetooth_l2cap_channel_mac.h",
69 "bluetooth_l2cap_channel_mac.mm",
70 "bluetooth_low_energy_defs_win.cc",
71 "bluetooth_low_energy_defs_win.h",
72 "bluetooth_low_energy_device_mac.h",
73 "bluetooth_low_energy_device_mac.mm",
74 "bluetooth_low_energy_discovery_manager_mac.h",
75 "bluetooth_low_energy_discovery_manager_mac.mm",
76 "bluetooth_low_energy_win.cc",
77 "bluetooth_low_energy_win.h",
78 "bluetooth_pairing_chromeos.cc",
79 "bluetooth_pairing_chromeos.h",
80 "bluetooth_remote_gatt_characteristic_chromeos.cc",
81 "bluetooth_remote_gatt_characteristic_chromeos.h",
82 "bluetooth_remote_gatt_descriptor_chromeos.cc",
83 "bluetooth_remote_gatt_descriptor_chromeos.h",
84 "bluetooth_remote_gatt_service_chromeos.cc",
85 "bluetooth_remote_gatt_service_chromeos.h",
86 "bluetooth_rfcomm_channel_mac.h",
87 "bluetooth_rfcomm_channel_mac.mm",
88 "bluetooth_service_record_win.cc",
89 "bluetooth_service_record_win.h",
90 "bluetooth_socket.cc",
92 "bluetooth_socket_chromeos.cc",
93 "bluetooth_socket_chromeos.h",
94 "bluetooth_socket_mac.h",
95 "bluetooth_socket_mac.mm",
96 "bluetooth_socket_net.cc",
97 "bluetooth_socket_net.h",
98 "bluetooth_socket_thread.cc",
99 "bluetooth_socket_thread.h",
100 "bluetooth_socket_win.cc",
101 "bluetooth_socket_win.h",
102 "bluetooth_task_manager_win.cc",
103 "bluetooth_task_manager_win.h",
106 "uribeacon/uri_encoder.cc",
107 "uribeacon/uri_encoder.h",
110 defines = [ "DEVICE_BLUETOOTH_IMPLEMENTATION" ]
112 all_dependent_configs = [ ":bluetooth_config" ]
122 libs = [ "setupapi.lib" ]
123 } else if (is_chromeos) {
131 libs = [ "IOBluetooth.framework" ]
136 source = "bluetooth_strings.grd"
138 "grit/device_bluetooth_strings.h",
139 "device_bluetooth_strings_am.pak",
140 "device_bluetooth_strings_ar.pak",
141 "device_bluetooth_strings_bg.pak",
142 "device_bluetooth_strings_bn.pak",
143 "device_bluetooth_strings_ca.pak",
144 "device_bluetooth_strings_cs.pak",
145 "device_bluetooth_strings_da.pak",
146 "device_bluetooth_strings_de.pak",
147 "device_bluetooth_strings_el.pak",
148 "device_bluetooth_strings_en-GB.pak",
149 "device_bluetooth_strings_en-US.pak",
150 "device_bluetooth_strings_es.pak",
151 "device_bluetooth_strings_es-419.pak",
152 "device_bluetooth_strings_et.pak",
153 "device_bluetooth_strings_fa.pak",
154 "device_bluetooth_strings_fake-bidi.pak",
155 "device_bluetooth_strings_fi.pak",
156 "device_bluetooth_strings_fil.pak",
157 "device_bluetooth_strings_fr.pak",
158 "device_bluetooth_strings_gu.pak",
159 "device_bluetooth_strings_he.pak",
160 "device_bluetooth_strings_hi.pak",
161 "device_bluetooth_strings_hr.pak",
162 "device_bluetooth_strings_hu.pak",
163 "device_bluetooth_strings_id.pak",
164 "device_bluetooth_strings_it.pak",
165 "device_bluetooth_strings_ja.pak",
166 "device_bluetooth_strings_kn.pak",
167 "device_bluetooth_strings_ko.pak",
168 "device_bluetooth_strings_lt.pak",
169 "device_bluetooth_strings_lv.pak",
170 "device_bluetooth_strings_ml.pak",
171 "device_bluetooth_strings_mr.pak",
172 "device_bluetooth_strings_ms.pak",
173 "device_bluetooth_strings_nl.pak",
174 "device_bluetooth_strings_nb.pak",
175 "device_bluetooth_strings_pl.pak",
176 "device_bluetooth_strings_pt-BR.pak",
177 "device_bluetooth_strings_pt-PT.pak",
178 "device_bluetooth_strings_ro.pak",
179 "device_bluetooth_strings_ru.pak",
180 "device_bluetooth_strings_sk.pak",
181 "device_bluetooth_strings_sl.pak",
182 "device_bluetooth_strings_sr.pak",
183 "device_bluetooth_strings_sv.pak",
184 "device_bluetooth_strings_sw.pak",
185 "device_bluetooth_strings_ta.pak",
186 "device_bluetooth_strings_te.pak",
187 "device_bluetooth_strings_th.pak",
188 "device_bluetooth_strings_tr.pak",
189 "device_bluetooth_strings_uk.pak",
190 "device_bluetooth_strings_vi.pak",
191 "device_bluetooth_strings_zh-CN.pak",
192 "device_bluetooth_strings_zh-TW.pak",
196 static_library("mocks") {
199 "test/mock_bluetooth_adapter.cc",
200 "test/mock_bluetooth_adapter.h",
201 "test/mock_bluetooth_device.cc",
202 "test/mock_bluetooth_device.h",
203 "test/mock_bluetooth_discovery_session.cc",
204 "test/mock_bluetooth_discovery_session.h",
205 "test/mock_bluetooth_gatt_characteristic.cc",
206 "test/mock_bluetooth_gatt_characteristic.h",
207 "test/mock_bluetooth_gatt_connection.cc",
208 "test/mock_bluetooth_gatt_connection.h",
209 "test/mock_bluetooth_gatt_descriptor.cc",
210 "test/mock_bluetooth_gatt_descriptor.h",
211 "test/mock_bluetooth_gatt_notify_session.cc",
212 "test/mock_bluetooth_gatt_notify_session.h",
213 "test/mock_bluetooth_gatt_service.cc",
214 "test/mock_bluetooth_gatt_service.h",
215 "test/mock_bluetooth_socket.cc",
216 "test/mock_bluetooth_socket.h",