Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: device/usb/usb.gyp

Issue 2332843004: Remove GYP files. (Closed)
Patch Set: Merge Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « device/udev_linux/udev.gyp ('k') | device/vibration/vibration.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 {
6 'variables': {
7 'chromium_code': 1,
8 'mojom_files': [
9 'public/interfaces/chooser_service.mojom',
10 'public/interfaces/device.mojom',
11 'public/interfaces/device_manager.mojom',
12 ],
13 },
14 'targets': [
15 {
16 'target_name': 'device_usb',
17 'type': 'static_library',
18 'dependencies': [
19 'device_usb_mojo_bindings',
20 '../../components/components.gyp:device_event_log_component',
21 '../../net/net.gyp:net',
22 '../core/core.gyp:device_core',
23 ],
24 'include_dirs': [
25 '../..',
26 ],
27 'sources': [
28 'android/usb_jni_registrar.cc',
29 'android/usb_jni_registrar.h',
30 'mojo/device_impl.cc',
31 'mojo/device_impl.h',
32 'mojo/device_manager_impl.cc',
33 'mojo/device_manager_impl.h',
34 'mojo/type_converters.cc',
35 'mojo/type_converters.h',
36 'mojo/permission_provider.cc',
37 'mojo/permission_provider.h',
38 'usb_configuration_android.cc',
39 'usb_configuration_android.h',
40 'usb_descriptors.cc',
41 'usb_descriptors.h',
42 'usb_device_linux.cc',
43 'usb_device_linux.h',
44 'usb_device.cc',
45 'usb_device.h',
46 'usb_device_android.cc',
47 'usb_device_android.h',
48 'usb_device_filter.cc',
49 'usb_device_filter.h',
50 'usb_device_handle.cc',
51 'usb_device_handle.h',
52 'usb_endpoint_android.cc',
53 'usb_endpoint_android.h',
54 'usb_ids.cc',
55 'usb_ids.h',
56 'usb_interface_android.cc',
57 'usb_interface_android.h',
58 'usb_service.cc',
59 'usb_service.h',
60 'usb_service_android.cc',
61 'usb_service_android.h',
62 'webusb_descriptors.cc',
63 'webusb_descriptors.h',
64 ],
65 'actions': [
66 {
67 'action_name': 'generate_usb_ids',
68 'variables': {
69 'usb_ids_path%': '../../third_party/usb_ids/usb.ids',
70 'usb_ids_py_path': 'tools/usb_ids.py',
71 },
72 'inputs': [
73 '<(usb_ids_path)',
74 '<(usb_ids_py_path)',
75 ],
76 'outputs': [
77 '<(SHARED_INTERMEDIATE_DIR)/device/usb/usb_ids_gen.cc',
78 ],
79 'action': [
80 'python',
81 '<(usb_ids_py_path)',
82 '-i', '<(usb_ids_path)',
83 '-o', '<@(_outputs)',
84 ],
85 'process_outputs_as_sources': 1,
86 },
87 ],
88 'conditions': [
89 ['use_udev == 1', {
90 'sources': [
91 'usb_service_linux.cc',
92 'usb_service_linux.h',
93 ],
94 'dependencies': [
95 '../udev_linux/udev.gyp:udev_linux',
96 ],
97 }],
98 ['OS=="android"', {
99 'dependencies': [
100 'device_usb_java',
101 'device_usb_jni_headers',
102 ],
103 }],
104 ['OS=="win" or OS=="mac"', {
105 'dependencies': [
106 '../../third_party/libusb/libusb.gyp:libusb',
107 ],
108 'sources': [
109 'usb_context.cc',
110 'usb_context.h',
111 'usb_device_handle_impl.cc',
112 'usb_device_handle_impl.h',
113 'usb_device_impl.cc',
114 'usb_device_impl.h',
115 'usb_error.cc',
116 'usb_error.h',
117 'usb_service_impl.cc',
118 'usb_service_impl.h',
119 ],
120 }],
121 ['OS=="linux" or OS=="android"', {
122 'sources': [
123 'usb_device_handle_usbfs.cc',
124 'usb_device_handle_usbfs.h',
125 ],
126 }],
127 ['chromeos==1', {
128 'dependencies': [
129 '../../chromeos/chromeos.gyp:chromeos',
130 ],
131 }]
132 ]
133 },
134 {
135 'target_name': 'device_usb_mojo_bindings',
136 'type': 'static_library',
137 'sources': [ '<@(mojom_files)' ],
138 'includes': [
139 '../../mojo/mojom_bindings_generator.gypi',
140 ],
141 'variables': {
142 'use_new_wrapper_types': 'false',
143 },
144 },
145 {
146 'target_name': 'device_usb_mojo_bindings_for_blink',
147 'type': 'static_library',
148 'sources': [ '<@(mojom_files)' ],
149 'variables': {
150 'for_blink': 'true',
151 'use_new_wrapper_types': 'false',
152 },
153 'includes': [
154 '../../mojo/mojom_bindings_generator.gypi',
155 ],
156 },
157 {
158 'target_name': 'device_usb_mocks',
159 'type': 'static_library',
160 'include_dirs': [
161 '../..',
162 ],
163 'dependencies': [
164 '../../testing/gmock.gyp:gmock',
165 'device_usb',
166 ],
167 'sources': [
168 'mock_usb_device.cc',
169 'mock_usb_device.h',
170 'mock_usb_device_handle.cc',
171 'mock_usb_device_handle.h',
172 'mock_usb_service.cc',
173 'mock_usb_service.h',
174 ],
175 },
176 ],
177 'conditions': [
178 ['OS == "android"', {
179 'targets': [
180 {
181 'target_name': 'device_usb_jni_headers',
182 'type': 'none',
183 'sources': [
184 'android/java/src/org/chromium/device/usb/ChromeUsbConfiguration.jav a',
185 'android/java/src/org/chromium/device/usb/ChromeUsbDevice.java',
186 'android/java/src/org/chromium/device/usb/ChromeUsbEndpoint.java',
187 'android/java/src/org/chromium/device/usb/ChromeUsbInterface.java',
188 'android/java/src/org/chromium/device/usb/ChromeUsbService.java',
189 ],
190 'variables': {
191 'jni_gen_package': 'device_usb',
192 },
193 'includes': [ '../../build/jni_generator.gypi' ],
194 },
195 {
196 'target_name': 'device_usb_java',
197 'type': 'none',
198 'dependencies': [
199 'usb_descriptors_javagen',
200 '../../base/base.gyp:base',
201 ],
202 'variables': {
203 'java_in_dir': '../../device/usb/android/java',
204 },
205 'includes': [ '../../build/java.gypi' ],
206 },
207 {
208 'target_name': 'usb_descriptors_javagen',
209 'type': 'none',
210 'variables': {
211 'source_file': 'usb_descriptors.h',
212 },
213 'includes': [ '../../build/android/java_cpp_enum.gypi' ],
214 },
215 ],
216 }],
217 ],
218 }
OLDNEW
« no previous file with comments | « device/udev_linux/udev.gyp ('k') | device/vibration/vibration.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698