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