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.mm",
39 "bluetooth_channel_mac.h",
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.mm",
49 "bluetooth_discovery_manager_mac.h",
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.mm",
69 "bluetooth_l2cap_channel_mac.h",
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.mm",
87 "bluetooth_rfcomm_channel_mac.h",
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",
108 defines = [ "DEVICE_BLUETOOTH_IMPLEMENTATION" ]
110 all_dependent_configs = [ ":bluetooth_config" ]
127 libs = [ "IOBluetooth.framework" ]
132 source = "bluetooth_strings.grd"
134 "grit/device_bluetooth_strings.h",
135 "device_bluetooth_strings_am.pak",
136 "device_bluetooth_strings_ar.pak",
137 "device_bluetooth_strings_bg.pak",
138 "device_bluetooth_strings_bn.pak",
139 "device_bluetooth_strings_ca.pak",
140 "device_bluetooth_strings_cs.pak",
141 "device_bluetooth_strings_da.pak",
142 "device_bluetooth_strings_de.pak",
143 "device_bluetooth_strings_el.pak",
144 "device_bluetooth_strings_en-GB.pak",
145 "device_bluetooth_strings_en-US.pak",
146 "device_bluetooth_strings_es.pak",
147 "device_bluetooth_strings_es-419.pak",
148 "device_bluetooth_strings_et.pak",
149 "device_bluetooth_strings_fa.pak",
150 "device_bluetooth_strings_fake-bidi.pak",
151 "device_bluetooth_strings_fi.pak",
152 "device_bluetooth_strings_fil.pak",
153 "device_bluetooth_strings_fr.pak",
154 "device_bluetooth_strings_gu.pak",
155 "device_bluetooth_strings_he.pak",
156 "device_bluetooth_strings_hi.pak",
157 "device_bluetooth_strings_hr.pak",
158 "device_bluetooth_strings_hu.pak",
159 "device_bluetooth_strings_id.pak",
160 "device_bluetooth_strings_it.pak",
161 "device_bluetooth_strings_ja.pak",
162 "device_bluetooth_strings_kn.pak",
163 "device_bluetooth_strings_ko.pak",
164 "device_bluetooth_strings_lt.pak",
165 "device_bluetooth_strings_lv.pak",
166 "device_bluetooth_strings_ml.pak",
167 "device_bluetooth_strings_mr.pak",
168 "device_bluetooth_strings_ms.pak",
169 "device_bluetooth_strings_nl.pak",
170 "device_bluetooth_strings_nb.pak",
171 "device_bluetooth_strings_pl.pak",
172 "device_bluetooth_strings_pt-BR.pak",
173 "device_bluetooth_strings_pt-PT.pak",
174 "device_bluetooth_strings_ro.pak",
175 "device_bluetooth_strings_ru.pak",
176 "device_bluetooth_strings_sk.pak",
177 "device_bluetooth_strings_sl.pak",
178 "device_bluetooth_strings_sr.pak",
179 "device_bluetooth_strings_sv.pak",
180 "device_bluetooth_strings_sw.pak",
181 "device_bluetooth_strings_ta.pak",
182 "device_bluetooth_strings_te.pak",
183 "device_bluetooth_strings_th.pak",
184 "device_bluetooth_strings_tr.pak",
185 "device_bluetooth_strings_uk.pak",
186 "device_bluetooth_strings_vi.pak",
187 "device_bluetooth_strings_zh-CN.pak",
188 "device_bluetooth_strings_zh-TW.pak",
192 static_library("mocks") {
195 "test/mock_bluetooth_adapter.cc",
196 "test/mock_bluetooth_adapter.h",
197 "test/mock_bluetooth_device.cc",
198 "test/mock_bluetooth_device.h",
199 "test/mock_bluetooth_discovery_session.cc",
200 "test/mock_bluetooth_discovery_session.h",
201 "test/mock_bluetooth_gatt_characteristic.cc",
202 "test/mock_bluetooth_gatt_characteristic.h",
203 "test/mock_bluetooth_gatt_connection.cc",
204 "test/mock_bluetooth_gatt_connection.h",
205 "test/mock_bluetooth_gatt_descriptor.cc",
206 "test/mock_bluetooth_gatt_descriptor.h",
207 "test/mock_bluetooth_gatt_notify_session.cc",
208 "test/mock_bluetooth_gatt_notify_session.h",
209 "test/mock_bluetooth_gatt_service.cc",
210 "test/mock_bluetooth_gatt_service.h",
211 "test/mock_bluetooth_socket.cc",
212 "test/mock_bluetooth_socket.h",