GPU workaround to simulate Out of Memory errors with large textures
[chromium-blink-merge.git] / device / usb / usb.gyp
blob085b9b38b6007db1b924733c284e350f6b7c8873
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_usb',
12       'type': 'static_library',
13       'dependencies': [
14         '../../components/components.gyp:device_event_log_component',
15         '../../net/net.gyp:net',
16         '../../third_party/libusb/libusb.gyp:libusb',
17       ],
18       'include_dirs': [
19         '../..',
20       ],
21       'sources': [
22         'usb_context.cc',
23         'usb_context.h',
24         'usb_descriptors.cc',
25         'usb_descriptors.h',
26         'usb_device_impl.cc',
27         'usb_device_impl.h',
28         'usb_device.cc',
29         'usb_device.h',
30         'usb_device_filter.cc',
31         'usb_device_filter.h',
32         'usb_device_handle_impl.cc',
33         'usb_device_handle_impl.h',
34         'usb_device_handle.h',
35         'usb_error.cc',
36         'usb_error.h',
37         'usb_ids.cc',
38         'usb_ids.h',
39         'usb_service.cc',
40         'usb_service.h',
41         'usb_service_impl.cc',
42         'usb_service_impl.h',
43       ],
44       'actions': [
45         {
46           'action_name': 'generate_usb_ids',
47           'variables': {
48             'usb_ids_path%': '../../third_party/usb_ids/usb.ids',
49             'usb_ids_py_path': 'tools/usb_ids.py',
50           },
51           'inputs': [
52             '<(usb_ids_path)',
53             '<(usb_ids_py_path)',
54           ],
55           'outputs': [
56             '<(SHARED_INTERMEDIATE_DIR)/device/usb/usb_ids_gen.cc',
57           ],
58           'action': [
59             'python',
60             '<(usb_ids_py_path)',
61             '-i', '<(usb_ids_path)',
62             '-o', '<@(_outputs)',
63           ],
64           'process_outputs_as_sources': 1,
65         },
66       ],
67       'conditions': [
68         ['use_udev == 1', {
69           'dependencies': [
70             '../udev_linux/udev.gyp:udev_linux',
71           ],
72         }],
73         ['chromeos==1', {
74           'dependencies': [
75             '../../chromeos/chromeos.gyp:chromeos',
76           ],
77         }],
78       ]
79     },
80   ],