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