Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / device / bluetooth / bluetooth.gyp
blob4a10a67061345a12c7b65badb32dd08a4b4754a5
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': 'static_library',
14       'dependencies': [
15         '../../base/base.gyp:base',
16         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
17         '../../net/net.gyp:net',
18         '../../third_party/libxml/libxml.gyp:libxml',
19         '../../ui/base/ui_base.gyp:ui_base',
20         '../../ui/gfx/gfx.gyp:gfx',
21         '../../ui/gfx/gfx.gyp:gfx_geometry',
22         'bluetooth_strings.gyp:device_bluetooth_strings',
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_win.cc',
35         'bluetooth_adapter_win.h',
36         'bluetooth_channel_mac.mm',
37         'bluetooth_channel_mac.h',
38         'bluetooth_device.cc',
39         'bluetooth_device.h',
40         'bluetooth_device_chromeos.cc',
41         'bluetooth_device_chromeos.h',
42         'bluetooth_device_mac.h',
43         'bluetooth_device_mac.mm',
44         'bluetooth_device_win.cc',
45         'bluetooth_device_win.h',
46         'bluetooth_discovery_manager_mac.mm',
47         'bluetooth_discovery_manager_mac.h',
48         'bluetooth_discovery_session.cc',
49         'bluetooth_discovery_session.h',
50         'bluetooth_gatt_characteristic.cc',
51         'bluetooth_gatt_characteristic.h',
52         'bluetooth_gatt_connection.cc',
53         'bluetooth_gatt_connection.h',
54         'bluetooth_gatt_connection_chromeos.cc',
55         'bluetooth_gatt_connection_chromeos.h',
56         'bluetooth_gatt_descriptor.cc',
57         'bluetooth_gatt_descriptor.h',
58         'bluetooth_gatt_notify_session.cc',
59         'bluetooth_gatt_notify_session.h',
60         'bluetooth_gatt_notify_session_chromeos.cc',
61         'bluetooth_gatt_notify_session_chromeos.h',
62         'bluetooth_gatt_service.cc',
63         'bluetooth_gatt_service.h',
64         'bluetooth_init_win.cc',
65         'bluetooth_init_win.h',
66         'bluetooth_l2cap_channel_mac.mm',
67         'bluetooth_l2cap_channel_mac.h',
68         'bluetooth_low_energy_defs_win.cc',
69         'bluetooth_low_energy_defs_win.h',
70         'bluetooth_low_energy_win.cc',
71         'bluetooth_low_energy_win.h',
72         'bluetooth_pairing_chromeos.cc',
73         'bluetooth_pairing_chromeos.h',
74         'bluetooth_remote_gatt_characteristic_chromeos.cc',
75         'bluetooth_remote_gatt_characteristic_chromeos.h',
76         'bluetooth_remote_gatt_descriptor_chromeos.cc',
77         'bluetooth_remote_gatt_descriptor_chromeos.h',
78         'bluetooth_remote_gatt_service_chromeos.cc',
79         'bluetooth_remote_gatt_service_chromeos.h',
80         'bluetooth_rfcomm_channel_mac.mm',
81         'bluetooth_rfcomm_channel_mac.h',
82         'bluetooth_service_record_win.cc',
83         'bluetooth_service_record_win.h',
84         'bluetooth_socket.cc',
85         'bluetooth_socket.h',
86         'bluetooth_socket_chromeos.cc',
87         'bluetooth_socket_chromeos.h',
88         'bluetooth_socket_mac.h',
89         'bluetooth_socket_mac.mm',
90         'bluetooth_socket_net.cc',
91         'bluetooth_socket_net.h',
92         'bluetooth_socket_thread.cc',
93         'bluetooth_socket_thread.h',
94         'bluetooth_socket_win.cc',
95         'bluetooth_socket_win.h',
96         'bluetooth_task_manager_win.cc',
97         'bluetooth_task_manager_win.h',
98         'bluetooth_uuid.cc',
99         'bluetooth_uuid.h',
100       ],
101       'conditions': [
102         ['chromeos==1', {
103           'dependencies': [
104             '../../build/linux/system.gyp:dbus',
105             '../../chromeos/chromeos.gyp:chromeos',
106             '../../dbus/dbus.gyp:dbus',
107           ]
108         }],
109         ['OS=="win"', {
110           'all_dependent_settings': {
111             'msvs_settings': {
112               'VCLinkerTool': {
113                 'DelayLoadDLLs': [
114                   'BluetoothApis.dll',
115                   # Despite MSDN stating that Bthprops.dll contains the
116                   # symbols declared by bthprops.lib, they actually reside here:
117                   'Bthprops.cpl',
118                   'setupapi.dll',
119                 ],
120               },
121             },
122           },
123         }],
124         ['OS=="mac"', {
125           'link_settings': {
126             'libraries': [
127               '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework',
128             ],
129           },
130         }],
131       ],
132     },
133     {
134       # GN version: //device/bluetooth:mocks
135       'target_name': 'device_bluetooth_mocks',
136       'type': 'static_library',
137       'dependencies': [
138         '../../testing/gmock.gyp:gmock',
139         'device_bluetooth',
140       ],
141       'include_dirs': [
142         '../../',
143       ],
144       'sources': [
145         # Note: file list duplicated in GN build.
146         'test/mock_bluetooth_adapter.cc',
147         'test/mock_bluetooth_adapter.h',
148         'test/mock_bluetooth_device.cc',
149         'test/mock_bluetooth_device.h',
150         'test/mock_bluetooth_discovery_session.cc',
151         'test/mock_bluetooth_discovery_session.h',
152         'test/mock_bluetooth_gatt_characteristic.cc',
153         'test/mock_bluetooth_gatt_characteristic.h',
154         'test/mock_bluetooth_gatt_connection.cc',
155         'test/mock_bluetooth_gatt_connection.h',
156         'test/mock_bluetooth_gatt_descriptor.cc',
157         'test/mock_bluetooth_gatt_descriptor.h',
158         'test/mock_bluetooth_gatt_notify_session.cc',
159         'test/mock_bluetooth_gatt_notify_session.h',
160         'test/mock_bluetooth_gatt_service.cc',
161         'test/mock_bluetooth_gatt_service.h',
162         'test/mock_bluetooth_socket.cc',
163         'test/mock_bluetooth_socket.h',
164       ],
165     },
166   ],