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.
11 'target_name': 'device_usb',
12 'type': 'static_library',
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',
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',
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',
53 'usb_service_impl.cc',
58 'action_name': 'generate_usb_ids',
60 'usb_ids_path%': '../../third_party/usb_ids/usb.ids',
61 'usb_ids_py_path': 'tools/usb_ids.py',
68 '<(SHARED_INTERMEDIATE_DIR)/device/usb/usb_ids_gen.cc',
73 '-i', '<(usb_ids_path)',
76 'process_outputs_as_sources': 1,
82 '../udev_linux/udev.gyp:udev_linux',
87 '../../chromeos/chromeos.gyp:chromeos',
93 'target_name': 'device_usb_mojo_bindings',
97 'public/interfaces/device.mojom',
98 'public/interfaces/device_manager.mojom',
102 '../../third_party/mojo/mojom_bindings_generator_explicit.gypi',
106 'target_name': 'device_usb_mojo_bindings_lib',
107 'type': 'static_library',
109 'device_usb_mojo_bindings',
113 'target_name': 'device_usb_mocks',
114 'type': 'static_library',
119 '../../testing/gmock.gyp:gmock',
123 'mock_usb_device.cc',
125 'mock_usb_device_handle.cc',
126 'mock_usb_device_handle.h',
127 'mock_usb_service.cc',
128 'mock_usb_service.h',