Roll WebRTC 8837:8852, Libjingle 8836:8851
[chromium-blink-merge.git] / device / bluetooth / bluetooth.gyp
blobf4d3f1fa1fa0c7032f5063afc35a6d4d118aee46
1 # Copyright 2013 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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       # GN version: //device/bluetooth
12       'target_name': 'device_bluetooth',
13       'type': '<(component)',
14       'dependencies': [
15         '../../base/base.gyp:base',
16         '../../net/net.gyp:net',
17         '../../ui/base/ui_base.gyp:ui_base',
18         'bluetooth_strings.gyp:device_bluetooth_strings',
19       ],
20       'defines': [
21         'DEVICE_BLUETOOTH_IMPLEMENTATION',
22       ],
23       'sources': [
24         # Note: file list duplicated in GN build.
25         'bluetooth_adapter.cc',
26         'bluetooth_adapter.h',
27         'bluetooth_adapter_chromeos.cc',
28         'bluetooth_adapter_chromeos.h',
29         'bluetooth_adapter_factory.cc',
30         'bluetooth_adapter_factory.h',
31         'bluetooth_adapter_mac.h',
32         'bluetooth_adapter_mac.mm',
33         "bluetooth_adapter_profile_chromeos.cc",
34         "bluetooth_adapter_profile_chromeos.h",
35         'bluetooth_adapter_win.cc',
36         'bluetooth_adapter_win.h',
37         'bluetooth_audio_sink.cc',
38         'bluetooth_audio_sink.h',
39         'bluetooth_audio_sink_chromeos.cc',
40         'bluetooth_audio_sink_chromeos.h',
41         'bluetooth_channel_mac.mm',
42         'bluetooth_channel_mac.h',
43         'bluetooth_device.cc',
44         'bluetooth_device.h',
45         'bluetooth_device_chromeos.cc',
46         'bluetooth_device_chromeos.h',
47         'bluetooth_device_mac.h',
48         'bluetooth_device_mac.mm',
49         'bluetooth_device_win.cc',
50         'bluetooth_device_win.h',
51         'bluetooth_discovery_manager_mac.mm',
52         'bluetooth_discovery_manager_mac.h',
53         'bluetooth_discovery_session.cc',
54         'bluetooth_discovery_session.h',
55         'bluetooth_gatt_characteristic.cc',
56         'bluetooth_gatt_characteristic.h',
57         'bluetooth_gatt_connection.cc',
58         'bluetooth_gatt_connection.h',
59         'bluetooth_gatt_connection_chromeos.cc',
60         'bluetooth_gatt_connection_chromeos.h',
61         'bluetooth_gatt_descriptor.cc',
62         'bluetooth_gatt_descriptor.h',
63         'bluetooth_gatt_notify_session.cc',
64         'bluetooth_gatt_notify_session.h',
65         'bluetooth_gatt_notify_session_chromeos.cc',
66         'bluetooth_gatt_notify_session_chromeos.h',
67         'bluetooth_gatt_service.cc',
68         'bluetooth_gatt_service.h',
69         'bluetooth_init_win.cc',
70         'bluetooth_init_win.h',
71         'bluetooth_l2cap_channel_mac.mm',
72         'bluetooth_l2cap_channel_mac.h',
73         'bluetooth_low_energy_defs_win.cc',
74         'bluetooth_low_energy_defs_win.h',
75         'bluetooth_low_energy_device_mac.h',
76         'bluetooth_low_energy_device_mac.mm',
77         'bluetooth_low_energy_discovery_manager_mac.h',
78         'bluetooth_low_energy_discovery_manager_mac.mm',
79         'bluetooth_low_energy_win.cc',
80         'bluetooth_low_energy_win.h',
81         'bluetooth_pairing_chromeos.cc',
82         'bluetooth_pairing_chromeos.h',
83         'bluetooth_remote_gatt_characteristic_chromeos.cc',
84         'bluetooth_remote_gatt_characteristic_chromeos.h',
85         'bluetooth_remote_gatt_descriptor_chromeos.cc',
86         'bluetooth_remote_gatt_descriptor_chromeos.h',
87         'bluetooth_remote_gatt_service_chromeos.cc',
88         'bluetooth_remote_gatt_service_chromeos.h',
89         'bluetooth_rfcomm_channel_mac.mm',
90         'bluetooth_rfcomm_channel_mac.h',
91         'bluetooth_service_record_win.cc',
92         'bluetooth_service_record_win.h',
93         'bluetooth_socket.cc',
94         'bluetooth_socket.h',
95         'bluetooth_socket_chromeos.cc',
96         'bluetooth_socket_chromeos.h',
97         'bluetooth_socket_mac.h',
98         'bluetooth_socket_mac.mm',
99         'bluetooth_socket_net.cc',
100         'bluetooth_socket_net.h',
101         'bluetooth_socket_thread.cc',
102         'bluetooth_socket_thread.h',
103         'bluetooth_socket_win.cc',
104         'bluetooth_socket_win.h',
105         'bluetooth_task_manager_win.cc',
106         'bluetooth_task_manager_win.h',
107         'bluetooth_uuid.cc',
108         'bluetooth_uuid.h',
109       ],
110       'conditions': [
111         ['chromeos==1', {
112           'dependencies': [
113             '../../build/linux/system.gyp:dbus',
114             '../../chromeos/chromeos.gyp:chromeos',
115             '../../dbus/dbus.gyp:dbus',
116           ],
117           'export_dependent_settings': [
118             '../../build/linux/system.gyp:dbus'
119           ]
120         }],
121         ['OS=="win"', {
122           # The following two blocks are duplicated. They apply to static lib
123           # and shared lib configurations respectively.
124           'all_dependent_settings': {  # For static lib, apply to dependents.
125             'msvs_settings': {
126               'VCLinkerTool': {
127                 'DelayLoadDLLs': [
128                   'BluetoothApis.dll',
129                   # Despite MSDN stating that Bthprops.dll contains the
130                   # symbols declared by bthprops.lib, they actually reside here:
131                   'Bthprops.cpl',
132                   'setupapi.dll',
133                 ],
134               },
135             },
136           },
137           'msvs_settings': {  # For shared lib, apply to self.
138             'VCLinkerTool': {
139               'DelayLoadDLLs': [
140                 'BluetoothApis.dll',
141                 # Despite MSDN stating that Bthprops.dll contains the
142                 # symbols declared by bthprops.lib, they actually reside here:
143                 'Bthprops.cpl',
144                 'setupapi.dll',
145               ],
146             },
147           },
148         }],
149         ['OS=="mac"', {
150           'link_settings': {
151             'libraries': [
152               '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework',
153             ],
154           },
155         }],
156       ],
157     },
158     {
159       # GN version: //device/bluetooth:mocks
160       'target_name': 'device_bluetooth_mocks',
161       'type': 'static_library',
162       'dependencies': [
163         '../../testing/gmock.gyp:gmock',
164         'device_bluetooth',
165       ],
166       'include_dirs': [
167         '../../',
168       ],
169       'sources': [
170         # Note: file list duplicated in GN build.
171         'test/mock_bluetooth_adapter.cc',
172         'test/mock_bluetooth_adapter.h',
173         'test/mock_bluetooth_device.cc',
174         'test/mock_bluetooth_device.h',
175         'test/mock_bluetooth_discovery_session.cc',
176         'test/mock_bluetooth_discovery_session.h',
177         'test/mock_bluetooth_gatt_characteristic.cc',
178         'test/mock_bluetooth_gatt_characteristic.h',
179         'test/mock_bluetooth_gatt_connection.cc',
180         'test/mock_bluetooth_gatt_connection.h',
181         'test/mock_bluetooth_gatt_descriptor.cc',
182         'test/mock_bluetooth_gatt_descriptor.h',
183         'test/mock_bluetooth_gatt_notify_session.cc',
184         'test/mock_bluetooth_gatt_notify_session.h',
185         'test/mock_bluetooth_gatt_service.cc',
186         'test/mock_bluetooth_gatt_service.h',
187         'test/mock_bluetooth_socket.cc',
188         'test/mock_bluetooth_socket.h',
189       ],
190     },
191   ],