OLD | NEW |
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 'mojom_files': [ |
| 9 'public/interfaces/chooser_service.mojom', |
| 10 'public/interfaces/device.mojom', |
| 11 'public/interfaces/device_manager.mojom', |
| 12 ], |
8 }, | 13 }, |
9 'targets': [ | 14 'targets': [ |
10 { | 15 { |
11 'target_name': 'device_usb', | 16 'target_name': 'device_usb', |
12 'type': 'static_library', | 17 'type': 'static_library', |
13 'dependencies': [ | 18 'dependencies': [ |
14 'device_usb_mojo_bindings', | 19 'device_usb_mojo_bindings', |
15 '../../components/components.gyp:device_event_log_component', | 20 '../../components/components.gyp:device_event_log_component', |
16 '../../net/net.gyp:net', | 21 '../../net/net.gyp:net', |
17 '../../third_party/libusb/libusb.gyp:libusb', | 22 '../../third_party/libusb/libusb.gyp:libusb', |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 ['chromeos==1', { | 125 ['chromeos==1', { |
121 'dependencies': [ | 126 'dependencies': [ |
122 '../../chromeos/chromeos.gyp:chromeos', | 127 '../../chromeos/chromeos.gyp:chromeos', |
123 ], | 128 ], |
124 }], | 129 }], |
125 ] | 130 ] |
126 }, | 131 }, |
127 { | 132 { |
128 'target_name': 'device_usb_mojo_bindings', | 133 'target_name': 'device_usb_mojo_bindings', |
129 'type': 'static_library', | 134 'type': 'static_library', |
130 'sources': [ | 135 'sources': [ '<@(mojom_files)' ], |
131 'public/interfaces/chooser_service.mojom', | |
132 'public/interfaces/device.mojom', | |
133 'public/interfaces/device_manager.mojom', | |
134 ], | |
135 'includes': [ | 136 'includes': [ |
136 '../../mojo/mojom_bindings_generator.gypi', | 137 '../../mojo/mojom_bindings_generator.gypi', |
137 ], | 138 ], |
| 139 }, |
| 140 { |
| 141 'target_name': 'device_usb_mojo_bindings_for_blink', |
| 142 'type': 'static_library', |
| 143 'sources': [ '<@(mojom_files)' ], |
| 144 'variables': { |
| 145 'mojom_variant': 'blink', |
| 146 'for_blink': 'true', |
| 147 }, |
| 148 'includes': [ |
| 149 '../../mojo/mojom_bindings_generator.gypi', |
| 150 ], |
138 }, | 151 }, |
139 { | 152 { |
140 'target_name': 'device_usb_mocks', | 153 'target_name': 'device_usb_mocks', |
141 'type': 'static_library', | 154 'type': 'static_library', |
142 'include_dirs': [ | 155 'include_dirs': [ |
143 '../..', | 156 '../..', |
144 ], | 157 ], |
145 'dependencies': [ | 158 'dependencies': [ |
146 '../../testing/gmock.gyp:gmock', | 159 '../../testing/gmock.gyp:gmock', |
147 'device_usb', | 160 'device_usb', |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 'type': 'none', | 204 'type': 'none', |
192 'variables': { | 205 'variables': { |
193 'source_file': 'usb_descriptors.h', | 206 'source_file': 'usb_descriptors.h', |
194 }, | 207 }, |
195 'includes': [ '../../build/android/java_cpp_enum.gypi' ], | 208 'includes': [ '../../build/android/java_cpp_enum.gypi' ], |
196 }, | 209 }, |
197 ], | 210 ], |
198 }], | 211 }], |
199 ], | 212 ], |
200 } | 213 } |
OLD | NEW |