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