In iossim, ignore harmless messages from launchd.
[chromium-blink-merge.git] / device / device.gyp
blob25db3cb257b9e5d0297b15488170e35fb3983ef1
1 # Copyright (c) 2012 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           '../chrome/chrome_resources.gyp:chrome_strings',
15           '../third_party/libxml/libxml.gyp:libxml',
16           '../ui/ui.gyp:ui'
17       ],
18       'sources': [
19         'bluetooth/bluetooth_adapter.cc',
20         'bluetooth/bluetooth_adapter.h',
21         'bluetooth/bluetooth_adapter_chromeos.cc',
22         'bluetooth/bluetooth_adapter_chromeos.h',
23         'bluetooth/bluetooth_adapter_factory.cc',
24         'bluetooth/bluetooth_adapter_factory.h',
25         'bluetooth/bluetooth_adapter_win.cc',
26         'bluetooth/bluetooth_adapter_win.h',
27         'bluetooth/bluetooth_device.cc',
28         'bluetooth/bluetooth_device.h',
29         'bluetooth/bluetooth_device_chromeos.cc',
30         'bluetooth/bluetooth_device_chromeos.h',
31         'bluetooth/bluetooth_device_win.cc',
32         'bluetooth/bluetooth_device_win.h',
33         'bluetooth/bluetooth_out_of_band_pairing_data.h',
34         'bluetooth/bluetooth_service_record.cc',
35         'bluetooth/bluetooth_service_record.h',
36         'bluetooth/bluetooth_socket.h',
37         'bluetooth/bluetooth_socket_chromeos.cc',
38         'bluetooth/bluetooth_socket_chromeos.h',
39         'bluetooth/bluetooth_socket_win.cc',
40         'bluetooth/bluetooth_socket_win.h',
41         'bluetooth/bluetooth_utils.cc',
42         'bluetooth/bluetooth_utils.h',
43       ],
44       'conditions': [
45         ['chromeos==1', {
46           'dependencies': [
47             '../build/linux/system.gyp:dbus',
48             '../chromeos/chromeos.gyp:chromeos',
49             '../dbus/dbus.gyp:dbus',
50           ]
51         }],
52         ['OS=="win"', {
53           'all_dependent_settings': {
54             'msvs_settings': {
55               'VCLinkerTool': {
56                 'DelayLoadDLLs': [
57                   # Despite MSDN stating that Bthprops.dll contains the
58                   # symbols declared by bthprops.lib, they actually reside here:
59                   'Bthprops.cpl',
60                 ],
61               },
62             },
63           },
64         }],
65       ],
66     },
67     {
68       'target_name': 'device_bluetooth_mocks',
69       'type': 'static_library',
70       'dependencies': [
71         'device_bluetooth',
72         '../testing/gmock.gyp:gmock',
73       ],
74       'sources': [
75         'bluetooth/test/mock_bluetooth_adapter.cc',
76         'bluetooth/test/mock_bluetooth_adapter.h',
77         'bluetooth/test/mock_bluetooth_device.cc',
78         'bluetooth/test/mock_bluetooth_device.h',
79         'bluetooth/test/mock_bluetooth_socket.cc',
80         'bluetooth/test/mock_bluetooth_socket.h',
81       ],
82       'include_dirs': [
83         '..',
84       ],
85     },
86     {
87       'target_name': 'device_usb',
88       'type': 'static_library',
89       'sources': [
90         'usb/usb_ids.cc',
91         'usb/usb_ids.h',
92       ],
93       'include_dirs': [
94         '..',
95       ],
96       'actions': [
97         {
98           'action_name': 'generate_usb_ids',
99           'variables': {
100             'usb_ids_path%': '<(DEPTH)/third_party/usb_ids/usb.ids',
101             'usb_ids_py_path': '<(DEPTH)/tools/usb_ids/usb_ids.py',
102           },
103           'inputs': [
104             '<(usb_ids_path)',
105             '<(usb_ids_py_path)',
106           ],
107           'outputs': [
108             '<(SHARED_INTERMEDIATE_DIR)/device/usb/usb_ids_gen.cc',
109           ],
110           'action': [
111             'python',
112             '<(usb_ids_py_path)',
113             '-i', '<(usb_ids_path)',
114             '-o', '<@(_outputs)',
115           ],
116           'process_outputs_as_sources': 1,
117         },
118       ],
119     },
120     {
121       'target_name': 'device_unittests',
122       'type': '<(gtest_target_type)',
123       'dependencies': [
124         'device_bluetooth',
125         'device_bluetooth_mocks',
126         'device_usb',
127         '../base/base.gyp:test_support_base',
128         '../content/content.gyp:test_support_content',
129         '../testing/gmock.gyp:gmock',
130         '../testing/gtest.gyp:gtest',
131       ],
132       'sources': [
133         'bluetooth/bluetooth_adapter_chromeos_unittest.cc',
134         'bluetooth/bluetooth_adapter_devices_chromeos_unittest.cc',
135         'bluetooth/bluetooth_adapter_win_unittest.cc',
136         'bluetooth/bluetooth_service_record_unittest.cc',
137         'bluetooth/bluetooth_utils_unittest.cc',
138         'test/device_test_suite.cc',
139         'test/device_test_suite.h',
140         'test/run_all_unittests.cc',
141         'usb/usb_ids_unittest.cc',
142       ],
143       'conditions': [
144         ['chromeos==1', {
145           'dependencies': [
146             '../build/linux/system.gyp:dbus',
147             '../chromeos/chromeos.gyp:chromeos_test_support',
148             '../dbus/dbus.gyp:dbus',
149           ]
150         }],
151       ],
152     },
153   ],