Revert 264226 "Reduce dependency of TiclInvalidationService on P..."
[chromium-blink-merge.git] / device / bluetooth / bluetooth.gyp
blob68a9dfdffbae38f52144248df9de02f85da23d6c
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       'target_name': 'device_bluetooth',
12       'type': 'static_library',
13       'dependencies': [
14         '../../base/base.gyp:base',
15         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
16         '../../net/net.gyp:net',
17         '../../third_party/libxml/libxml.gyp:libxml',
18         '../../ui/base/ui_base.gyp:ui_base',
19         '../../ui/gfx/gfx.gyp:gfx',
20         '../../ui/gfx/gfx.gyp:gfx_geometry',
21         'bluetooth_strings.gyp:device_bluetooth_strings',
22       ],
23       'sources': [
24         'bluetooth_adapter.cc',
25         'bluetooth_adapter.h',
26         'bluetooth_adapter_chromeos.cc',
27         'bluetooth_adapter_chromeos.h',
28         'bluetooth_adapter_factory.cc',
29         'bluetooth_adapter_factory.h',
30         'bluetooth_adapter_mac.h',
31         'bluetooth_adapter_mac.mm',
32         'bluetooth_adapter_win.cc',
33         'bluetooth_adapter_win.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_session.cc',
43         'bluetooth_discovery_session.h',
44         'bluetooth_gatt_characteristic.cc',
45         'bluetooth_gatt_characteristic.h',
46         'bluetooth_gatt_descriptor.cc',
47         'bluetooth_gatt_descriptor.h',
48         'bluetooth_gatt_service.cc',
49         'bluetooth_gatt_service.h',
50         'bluetooth_init_win.cc',
51         'bluetooth_init_win.h',
52         'bluetooth_out_of_band_pairing_data.h',
53         'bluetooth_pairing_chromeos.cc',
54         'bluetooth_pairing_chromeos.h',
55         'bluetooth_profile.cc',
56         'bluetooth_profile.h',
57         'bluetooth_profile_chromeos.cc',
58         'bluetooth_profile_chromeos.h',
59         'bluetooth_profile_mac.h',
60         'bluetooth_profile_mac.mm',
61         'bluetooth_profile_win.cc',
62         'bluetooth_profile_win.h',
63         'bluetooth_remote_gatt_characteristic_chromeos.cc',
64         'bluetooth_remote_gatt_characteristic_chromeos.h',
65         'bluetooth_remote_gatt_descriptor_chromeos.cc',
66         'bluetooth_remote_gatt_descriptor_chromeos.h',
67         'bluetooth_remote_gatt_service_chromeos.cc',
68         'bluetooth_remote_gatt_service_chromeos.h',
69         'bluetooth_service_record.cc',
70         'bluetooth_service_record.h',
71         'bluetooth_service_record_mac.h',
72         'bluetooth_service_record_mac.mm',
73         'bluetooth_service_record_win.cc',
74         'bluetooth_service_record_win.h',
75         'bluetooth_socket.cc',
76         'bluetooth_socket.h',
77         'bluetooth_socket_chromeos.cc',
78         'bluetooth_socket_chromeos.h',
79         'bluetooth_socket_mac.h',
80         'bluetooth_socket_mac.mm',
81         'bluetooth_socket_thread_win.cc',
82         'bluetooth_socket_thread_win.h',
83         'bluetooth_socket_win.cc',
84         'bluetooth_socket_win.h',
85         'bluetooth_task_manager_win.cc',
86         'bluetooth_task_manager_win.h',
87         'bluetooth_uuid.cc',
88         'bluetooth_uuid.h',
89       ],
90       'conditions': [
91         ['chromeos==1', {
92           'dependencies': [
93             '../../build/linux/system.gyp:dbus',
94             '../../chromeos/chromeos.gyp:chromeos',
95             '../../dbus/dbus.gyp:dbus',
96           ]
97         }],
98         ['OS=="win"', {
99           'all_dependent_settings': {
100             'msvs_settings': {
101               'VCLinkerTool': {
102                 'DelayLoadDLLs': [
103                   # Despite MSDN stating that Bthprops.dll contains the
104                   # symbols declared by bthprops.lib, they actually reside here:
105                   'Bthprops.cpl',
106                 ],
107               },
108             },
109           },
110         }],
111         ['OS=="mac"', {
112           'link_settings': {
113             'libraries': [
114               '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework',
115             ],
116           },
117         }],
118       ],
119     },
120     {
121       'target_name': 'device_bluetooth_mocks',
122       'type': 'static_library',
123       'dependencies': [
124         '../../testing/gmock.gyp:gmock',
125         'device_bluetooth',
126       ],
127       'include_dirs': [
128         '../../',
129       ],
130       'sources': [
131         'test/mock_bluetooth_adapter.cc',
132         'test/mock_bluetooth_adapter.h',
133         'test/mock_bluetooth_device.cc',
134         'test/mock_bluetooth_device.h',
135         'test/mock_bluetooth_discovery_session.cc',
136         'test/mock_bluetooth_discovery_session.h',
137         'test/mock_bluetooth_profile.cc',
138         'test/mock_bluetooth_profile.h',
139         'test/mock_bluetooth_socket.cc',
140         'test/mock_bluetooth_socket.h',
141       ],
142     },
143   ],