OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
6 | 6 |
7 config("bluetooth_config") { | 7 config("bluetooth_config") { |
8 if (is_win) { | 8 if (is_win) { |
9 ldflags = [ | 9 ldflags = [ |
10 # Despite MSDN stating that Bthprops.dll contains the | 10 # Despite MSDN stating that Bthprops.dll contains the |
11 # symbols declared by bthprops.lib, they actually reside here: | 11 # symbols declared by bthprops.lib, they actually reside here: |
12 "/DELAYLOAD:Bthprops.cpl", | 12 "/DELAYLOAD:Bthprops.cpl", |
13 "/DELAYLOAD:setupapi.dll", | 13 "/DELAYLOAD:setupapi.dll", |
14 ] | 14 ] |
15 } | 15 } |
16 } | 16 } |
17 | 17 |
18 static_library("bluetooth") { | 18 component("bluetooth") { |
19 sources = [ | 19 sources = [ |
20 "bluetooth_adapter.cc", | 20 "bluetooth_adapter.cc", |
21 "bluetooth_adapter.h", | 21 "bluetooth_adapter.h", |
22 "bluetooth_adapter_chromeos.cc", | 22 "bluetooth_adapter_chromeos.cc", |
23 "bluetooth_adapter_chromeos.h", | 23 "bluetooth_adapter_chromeos.h", |
24 "bluetooth_adapter_factory.cc", | 24 "bluetooth_adapter_factory.cc", |
25 "bluetooth_adapter_factory.h", | 25 "bluetooth_adapter_factory.h", |
26 "bluetooth_adapter_mac.h", | 26 "bluetooth_adapter_mac.h", |
27 "bluetooth_adapter_mac.mm", | 27 "bluetooth_adapter_mac.mm", |
28 "bluetooth_adapter_win.cc", | 28 "bluetooth_adapter_win.cc", |
29 "bluetooth_adapter_win.h", | 29 "bluetooth_adapter_win.h", |
30 "bluetooth_channel_mac.mm", | 30 "bluetooth_channel_mac.mm", |
31 "bluetooth_channel_mac.h", | 31 "bluetooth_channel_mac.h", |
32 "bluetooth_device.cc", | 32 "bluetooth_device.cc", |
33 "bluetooth_device.h", | 33 "bluetooth_device.h", |
34 "bluetooth_device_chromeos.cc", | 34 "bluetooth_device_chromeos.cc", |
35 "bluetooth_device_chromeos.h", | 35 "bluetooth_device_chromeos.h", |
36 "bluetooth_device_mac.h", | 36 "bluetooth_device_mac.h", |
37 "bluetooth_device_mac.mm", | 37 "bluetooth_device_mac.mm", |
38 "bluetooth_device_win.cc", | 38 "bluetooth_device_win.cc", |
39 "bluetooth_device_win.h", | 39 "bluetooth_device_win.h", |
40 "bluetooth_discovery_manager_mac.mm", | 40 "bluetooth_discovery_manager_mac.mm", |
41 "bluetooth_discovery_manager_mac.h", | 41 "bluetooth_discovery_manager_mac.h", |
42 "bluetooth_discovery_session.cc", | 42 "bluetooth_discovery_session.cc", |
43 "bluetooth_discovery_session.h", | 43 "bluetooth_discovery_session.h", |
| 44 "bluetooth_export.h", |
44 "bluetooth_gatt_characteristic.cc", | 45 "bluetooth_gatt_characteristic.cc", |
45 "bluetooth_gatt_characteristic.h", | 46 "bluetooth_gatt_characteristic.h", |
46 "bluetooth_gatt_connection.cc", | 47 "bluetooth_gatt_connection.cc", |
47 "bluetooth_gatt_connection.h", | 48 "bluetooth_gatt_connection.h", |
48 "bluetooth_gatt_connection_chromeos.cc", | 49 "bluetooth_gatt_connection_chromeos.cc", |
49 "bluetooth_gatt_connection_chromeos.h", | 50 "bluetooth_gatt_connection_chromeos.h", |
50 "bluetooth_gatt_descriptor.cc", | 51 "bluetooth_gatt_descriptor.cc", |
51 "bluetooth_gatt_descriptor.h", | 52 "bluetooth_gatt_descriptor.h", |
52 "bluetooth_gatt_notify_session.cc", | 53 "bluetooth_gatt_notify_session.cc", |
53 "bluetooth_gatt_notify_session.h", | 54 "bluetooth_gatt_notify_session.h", |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 "bluetooth_socket_win.cc", | 87 "bluetooth_socket_win.cc", |
87 "bluetooth_socket_win.h", | 88 "bluetooth_socket_win.h", |
88 "bluetooth_task_manager_win.cc", | 89 "bluetooth_task_manager_win.cc", |
89 "bluetooth_task_manager_win.h", | 90 "bluetooth_task_manager_win.h", |
90 "bluetooth_uuid.cc", | 91 "bluetooth_uuid.cc", |
91 "bluetooth_uuid.h", | 92 "bluetooth_uuid.h", |
92 ] | 93 ] |
93 | 94 |
94 all_dependent_configs = [ ":bluetooth_config" ] | 95 all_dependent_configs = [ ":bluetooth_config" ] |
95 | 96 |
| 97 defines = [ |
| 98 "BLUETOOTH_IMPLEMENTATION", |
| 99 ] |
| 100 |
96 deps = [ | 101 deps = [ |
97 ":strings", | 102 ":strings", |
98 "//base", | 103 "//base", |
99 "//net", | 104 "//net", |
100 "//ui/base", | 105 "//ui/base", |
101 ] | 106 ] |
102 | 107 |
103 if (is_chromeos) { | 108 if (is_chromeos) { |
104 deps += [ | 109 deps += [ |
105 "//chromeos", | 110 "//chromeos", |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 "test/mock_bluetooth_gatt_service.h", | 199 "test/mock_bluetooth_gatt_service.h", |
195 "test/mock_bluetooth_socket.cc", | 200 "test/mock_bluetooth_socket.cc", |
196 "test/mock_bluetooth_socket.h", | 201 "test/mock_bluetooth_socket.h", |
197 ] | 202 ] |
198 | 203 |
199 deps = [ | 204 deps = [ |
200 ":bluetooth", | 205 ":bluetooth", |
201 "//testing/gmock", | 206 "//testing/gmock", |
202 ] | 207 ] |
203 } | 208 } |
OLD | NEW |