Reland of Adding total available size of heap in v8 isolate memory dump provider.
[chromium-blink-merge.git] / device / usb / usb.gyp
blobdc3ebd0ab3f7583a055693ae6be1a6d1d52a848f
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         'device_usb_mojo_bindings_lib',
15         '../../components/components.gyp:device_event_log_component',
16         '../../net/net.gyp:net',
17         '../../third_party/libusb/libusb.gyp:libusb',
18         '../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
19       ],
20       'include_dirs': [
21         '../..',
22       ],
23       'sources': [
24         'device_impl.cc',
25         'device_impl.h',
26         'device_manager_impl.cc',
27         'device_manager_impl.h',
28         # TODO(rockot/reillyg): Split out public sources into their own target
29         # once all device/usb consumers have transitioned to the new public API.
30         'public/cpp/device_manager_delegate.h',
31         'public/cpp/device_manager_factory.h',
32         'type_converters.cc',
33         'type_converters.h',
34         'usb_context.cc',
35         'usb_context.h',
36         'usb_descriptors.cc',
37         'usb_descriptors.h',
38         'usb_device_impl.cc',
39         'usb_device_impl.h',
40         'usb_device.cc',
41         'usb_device.h',
42         'usb_device_filter.cc',
43         'usb_device_filter.h',
44         'usb_device_handle_impl.cc',
45         'usb_device_handle_impl.h',
46         'usb_device_handle.h',
47         'usb_error.cc',
48         'usb_error.h',
49         'usb_ids.cc',
50         'usb_ids.h',
51         'usb_service.cc',
52         'usb_service.h',
53         'usb_service_impl.cc',
54         'usb_service_impl.h',
55       ],
56       'actions': [
57         {
58           'action_name': 'generate_usb_ids',
59           'variables': {
60             'usb_ids_path%': '../../third_party/usb_ids/usb.ids',
61             'usb_ids_py_path': 'tools/usb_ids.py',
62           },
63           'inputs': [
64             '<(usb_ids_path)',
65             '<(usb_ids_py_path)',
66           ],
67           'outputs': [
68             '<(SHARED_INTERMEDIATE_DIR)/device/usb/usb_ids_gen.cc',
69           ],
70           'action': [
71             'python',
72             '<(usb_ids_py_path)',
73             '-i', '<(usb_ids_path)',
74             '-o', '<@(_outputs)',
75           ],
76           'process_outputs_as_sources': 1,
77         },
78       ],
79       'conditions': [
80         ['use_udev == 1', {
81           'dependencies': [
82             '../udev_linux/udev.gyp:udev_linux',
83           ],
84         }],
85         ['chromeos==1', {
86           'dependencies': [
87             '../../chromeos/chromeos.gyp:chromeos',
88           ],
89         }],
90       ]
91     },
92     {
93       'target_name': 'device_usb_mojo_bindings',
94       'type': 'none',
95       'variables': {
96         'mojom_files': [
97           'public/interfaces/device.mojom',
98           'public/interfaces/device_manager.mojom',
99         ],
100       },
101       'includes': [
102         '../../third_party/mojo/mojom_bindings_generator_explicit.gypi',
103       ],
104     },
105     {
106       'target_name': 'device_usb_mojo_bindings_lib',
107       'type': 'static_library',
108       'dependencies': [
109         'device_usb_mojo_bindings',
110       ],
111     },
112     {
113       'target_name': 'device_usb_mocks',
114       'type': 'static_library',
115       'include_dirs': [
116         '../..',
117       ],
118       'dependencies': [
119         '../../testing/gmock.gyp:gmock',
120         'device_usb',
121       ],
122       'sources': [
123         'mock_usb_device.cc',
124         'mock_usb_device.h',
125         'mock_usb_device_handle.cc',
126         'mock_usb_device_handle.h',
127         'mock_usb_service.cc',
128         'mock_usb_service.h',
129       ],
130     },
131   ],