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

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

Issue 1561283003: Revert of Implement basic USB device enumeration on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/usb/mock_usb_device.h ('k') | device/usb/usb_configuration_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'targets': [ 9 'targets': [
10 { 10 {
11 'target_name': 'device_usb', 11 'target_name': 'device_usb',
12 'type': 'static_library', 12 'type': 'static_library',
13 'dependencies': [ 13 'dependencies': [
14 '../../components/components.gyp:device_event_log_component', 14 '../../components/components.gyp:device_event_log_component',
15 '../../net/net.gyp:net', 15 '../../net/net.gyp:net',
16 '../../third_party/libusb/libusb.gyp:libusb', 16 '../../third_party/libusb/libusb.gyp:libusb',
17 '../core/core.gyp:device_core', 17 '../core/core.gyp:device_core',
18 ], 18 ],
19 'include_dirs': [ 19 'include_dirs': [
20 '../..', 20 '../..',
21 ], 21 ],
22 'sources': [ 22 'sources': [
23 'android/usb_jni_registrar.cc',
24 'android/usb_jni_registrar.h',
25 'usb_configuration_android.cc',
26 'usb_configuration_android.h',
27 'usb_context.cc', 23 'usb_context.cc',
28 'usb_context.h', 24 'usb_context.h',
29 'usb_descriptors.cc', 25 'usb_descriptors.cc',
30 'usb_descriptors.h', 26 'usb_descriptors.h',
31 'usb_device_impl.cc', 27 'usb_device_impl.cc',
32 'usb_device_impl.h', 28 'usb_device_impl.h',
33 'usb_device.cc', 29 'usb_device.cc',
34 'usb_device.h', 30 'usb_device.h',
35 'usb_device_android.cc',
36 'usb_device_android.h',
37 'usb_device_filter.cc', 31 'usb_device_filter.cc',
38 'usb_device_filter.h', 32 'usb_device_filter.h',
39 'usb_device_handle_impl.cc', 33 'usb_device_handle_impl.cc',
40 'usb_device_handle_impl.h', 34 'usb_device_handle_impl.h',
41 'usb_device_handle.cc', 35 'usb_device_handle.cc',
42 'usb_device_handle.h', 36 'usb_device_handle.h',
43 'usb_endpoint_android.cc',
44 'usb_endpoint_android.h',
45 'usb_error.cc', 37 'usb_error.cc',
46 'usb_error.h', 38 'usb_error.h',
47 'usb_ids.cc', 39 'usb_ids.cc',
48 'usb_ids.h', 40 'usb_ids.h',
49 'usb_interface_android.cc',
50 'usb_interface_android.h',
51 'usb_service.cc', 41 'usb_service.cc',
52 'usb_service.h', 42 'usb_service.h',
53 'usb_service_android.cc',
54 'usb_service_android.h',
55 'usb_service_impl.cc', 43 'usb_service_impl.cc',
56 'usb_service_impl.h', 44 'usb_service_impl.h',
57 'webusb_descriptors.cc', 45 'webusb_descriptors.cc',
58 'webusb_descriptors.h', 46 'webusb_descriptors.h',
59 ], 47 ],
60 'actions': [ 48 'actions': [
61 { 49 {
62 'action_name': 'generate_usb_ids', 50 'action_name': 'generate_usb_ids',
63 'variables': { 51 'variables': {
64 'usb_ids_path%': '../../third_party/usb_ids/usb.ids', 52 'usb_ids_path%': '../../third_party/usb_ids/usb.ids',
(...skipping 15 matching lines...) Expand all
80 'process_outputs_as_sources': 1, 68 'process_outputs_as_sources': 1,
81 }, 69 },
82 ], 70 ],
83 'conditions': [ 71 'conditions': [
84 ['use_udev == 1', { 72 ['use_udev == 1', {
85 'dependencies': [ 73 'dependencies': [
86 '../udev_linux/udev.gyp:udev_linux', 74 '../udev_linux/udev.gyp:udev_linux',
87 ], 75 ],
88 }], 76 }],
89 ['OS=="android"', { 77 ['OS=="android"', {
90 'dependencies': [
91 'device_usb_java',
92 'device_usb_jni_headers',
93 ],
94 'dependencies!': [ 78 'dependencies!': [
95 '../../third_party/libusb/libusb.gyp:libusb', 79 '../../third_party/libusb/libusb.gyp:libusb',
96 ], 80 ],
97 # These sources are libusb-specific. 81 'sources': [
82 'usb_service_android.cc',
83 'usb_service_android.h',
84 ],
98 'sources!': [ 85 'sources!': [
99 'usb_context.cc', 86 'usb_context.cc',
100 'usb_context.h', 87 'usb_context.h',
101 'usb_device_handle_impl.cc', 88 'usb_device_handle_impl.cc',
102 'usb_device_handle_impl.h', 89 'usb_device_handle_impl.h',
103 'usb_device_impl.cc', 90 'usb_device_impl.cc',
104 'usb_device_impl.h', 91 'usb_device_impl.h',
105 'usb_error.cc', 92 'usb_error.cc',
106 'usb_error.h', 93 'usb_error.h',
107 'usb_service_impl.cc', 94 'usb_service_impl.cc',
(...skipping 20 matching lines...) Expand all
128 'sources': [ 115 'sources': [
129 'mock_usb_device.cc', 116 'mock_usb_device.cc',
130 'mock_usb_device.h', 117 'mock_usb_device.h',
131 'mock_usb_device_handle.cc', 118 'mock_usb_device_handle.cc',
132 'mock_usb_device_handle.h', 119 'mock_usb_device_handle.h',
133 'mock_usb_service.cc', 120 'mock_usb_service.cc',
134 'mock_usb_service.h', 121 'mock_usb_service.h',
135 ], 122 ],
136 }, 123 },
137 ], 124 ],
138 'conditions': [
139 ['OS == "android"', {
140 'targets': [
141 {
142 'target_name': 'device_usb_jni_headers',
143 'type': 'none',
144 'sources': [
145 'android/java/src/org/chromium/device/usb/ChromeUsbConfiguration.jav a',
146 'android/java/src/org/chromium/device/usb/ChromeUsbDevice.java',
147 'android/java/src/org/chromium/device/usb/ChromeUsbEndpoint.java',
148 'android/java/src/org/chromium/device/usb/ChromeUsbInterface.java',
149 'android/java/src/org/chromium/device/usb/ChromeUsbService.java',
150 ],
151 'variables': {
152 'jni_gen_package': 'device_usb',
153 },
154 'includes': [ '../../build/jni_generator.gypi' ],
155 },
156 {
157 'target_name': 'device_usb_java',
158 'type': 'none',
159 'dependencies': [
160 'usb_descriptors_javagen',
161 '../../base/base.gyp:base',
162 ],
163 'variables': {
164 'java_in_dir': '../../device/usb/android/java',
165 },
166 'includes': [ '../../build/java.gypi' ],
167 },
168 {
169 'target_name': 'usb_descriptors_javagen',
170 'type': 'none',
171 'variables': {
172 'source_file': 'usb_descriptors.h',
173 },
174 'includes': [ '../../build/android/java_cpp_enum.gypi' ],
175 },
176 ],
177 }],
178 ],
179 } 125 }
OLDNEW
« no previous file with comments | « device/usb/mock_usb_device.h ('k') | device/usb/usb_configuration_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698