Report time-related media metrics in milliseconds instead of seconds.
[chromium-blink-merge.git] / device / bluetooth / bluetooth.gyp
blob9da5cda2a3e4c12353de662f9993fd2a2b725b25
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/ui.gyp:ui',
19         'bluetooth_strings.gyp:device_bluetooth_strings',
20       ],
21       'sources': [
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_device.cc',
33         'bluetooth_device.h',
34         'bluetooth_device_chromeos.cc',
35         'bluetooth_device_chromeos.h',
36         'bluetooth_device_mac.h',
37         'bluetooth_device_mac.mm',
38         'bluetooth_device_win.cc',
39         'bluetooth_device_win.h',
40         'bluetooth_init_win.cc',
41         'bluetooth_init_win.h',
42         'bluetooth_out_of_band_pairing_data.h',
43         'bluetooth_profile.cc',
44         'bluetooth_profile.h',
45         'bluetooth_profile_chromeos.cc',
46         'bluetooth_profile_chromeos.h',
47         'bluetooth_profile_mac.h',
48         'bluetooth_profile_mac.mm',
49         'bluetooth_profile_win.cc',
50         'bluetooth_profile_win.h',
51         'bluetooth_service_record.cc',
52         'bluetooth_service_record.h',
53         'bluetooth_service_record_mac.h',
54         'bluetooth_service_record_mac.mm',
55         'bluetooth_service_record_win.cc',
56         'bluetooth_service_record_win.h',
57         'bluetooth_socket.h',
58         'bluetooth_socket_chromeos.cc',
59         'bluetooth_socket_chromeos.h',
60         'bluetooth_socket_mac.h',
61         'bluetooth_socket_mac.mm',
62         'bluetooth_socket_win.cc',
63         'bluetooth_socket_win.h',
64         'bluetooth_task_manager_win.cc',
65         'bluetooth_task_manager_win.h',
66         'bluetooth_utils.cc',
67         'bluetooth_utils.h',
68       ],
69       'conditions': [
70         ['chromeos==1', {
71           'dependencies': [
72             '../../build/linux/system.gyp:dbus',
73             '../../chromeos/chromeos.gyp:chromeos',
74             '../../dbus/dbus.gyp:dbus',
75           ]
76         }],
77         ['OS=="win"', {
78           'all_dependent_settings': {
79             'msvs_settings': {
80               'VCLinkerTool': {
81                 'DelayLoadDLLs': [
82                   # Despite MSDN stating that Bthprops.dll contains the
83                   # symbols declared by bthprops.lib, they actually reside here:
84                   'Bthprops.cpl',
85                 ],
86               },
87             },
88           },
89         }],
90         ['OS=="mac"', {
91           'link_settings': {
92             'libraries': [
93               '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework',
94             ],
95           },
96         }],
97       ],
98     },
99     {
100       'target_name': 'device_bluetooth_mocks',
101       'type': 'static_library',
102       'dependencies': [
103         '../../testing/gmock.gyp:gmock',
104         'device_bluetooth',
105       ],
106       'include_dirs': [
107         '../../',
108       ],
109       'sources': [
110         'test/mock_bluetooth_adapter.cc',
111         'test/mock_bluetooth_adapter.h',
112         'test/mock_bluetooth_device.cc',
113         'test/mock_bluetooth_device.h',
114         'test/mock_bluetooth_profile.cc',
115         'test/mock_bluetooth_profile.h',
116         'test/mock_bluetooth_socket.cc',
117         'test/mock_bluetooth_socket.h',
118       ],
119     },
120   ],