OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # Generate IDL interfaces info for modules, used to generate bindings | 5 # Generate IDL interfaces info for modules, used to generate bindings |
6 # | 6 # |
7 # Design doc: http://www.chromium.org/developers/design-documents/idl-build | 7 # Design doc: http://www.chromium.org/developers/design-documents/idl-build |
8 | 8 |
9 { | 9 { |
10 'includes': [ | 10 'includes': [ |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 'outputs': [ | 199 'outputs': [ |
200 '<@(modules_global_constructors_generated_idl_files)', | 200 '<@(modules_global_constructors_generated_idl_files)', |
201 '<@(modules_global_constructors_generated_header_files)', | 201 '<@(modules_global_constructors_generated_header_files)', |
202 ], | 202 ], |
203 }, | 203 }, |
204 'includes': ['../../bindings/scripts/global_constructors.gypi'], | 204 'includes': ['../../bindings/scripts/global_constructors.gypi'], |
205 }, | 205 }, |
206 ################################################################################ | 206 ################################################################################ |
207 { | 207 { |
208 'target_name': 'interfaces_info_individual_modules', | 208 'target_name': 'interfaces_info_individual_modules', |
209 'type': 'none', | |
210 'dependencies': [ | 209 'dependencies': [ |
211 'modules_core_global_constructors_idls', | 210 'modules_core_global_constructors_idls', |
212 'modules_global_constructors_idls', | 211 'modules_global_constructors_idls', |
213 ], | 212 ], |
214 'actions': [{ | 213 'variables': { |
215 'action_name': 'compute_interfaces_info_individual_modules', | 214 'static_idl_files': '<(modules_static_idl_files)', |
216 'inputs': [ | 215 'generated_idl_files': '<(modules_generated_idl_files)', |
217 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py', | 216 'component_dir': 'modules', |
218 '<(bindings_scripts_dir)/utilities.py', | 217 'output_file': |
219 '<(modules_static_idl_files_list)', | |
220 '<@(modules_static_idl_files)', | |
221 '<@(modules_generated_idl_files)', | |
222 ], | |
223 'outputs': [ | |
224 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', | 218 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', |
225 ], | 219 }, |
226 'action': [ | 220 'includes': ['../../bindings/scripts/interfaces_info_individual.gypi'], |
227 'python', | |
228 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py', | |
229 '--component-dir', | |
230 'modules', | |
231 '--idl-files-list', | |
232 '<(modules_static_idl_files_list)', | |
233 '--interfaces-info-file', | |
234 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', | |
235 '--write-file-only-if-changed', | |
236 '<(write_file_only_if_changed)', | |
237 '--', | |
238 # Generated files must be passed at command line | |
239 '<@(modules_generated_idl_files)', | |
240 ], | |
241 'message': 'Computing global information about individual IDL files', | |
242 }] | |
243 }, | 221 }, |
244 ################################################################################ | 222 ################################################################################ |
245 { | 223 { |
246 # GN version: //third_party/WebKit/Source/bindings/modules:interfaces_info | 224 # GN version: //third_party/WebKit/Source/bindings/modules:interfaces_info |
247 'target_name': 'interfaces_info', | 225 'target_name': 'interfaces_info', |
248 'type': 'none', | |
249 'dependencies': [ | 226 'dependencies': [ |
250 '../core/generated.gyp:interfaces_info_individual_core', | 227 '../core/generated.gyp:interfaces_info_individual_core', |
251 'interfaces_info_individual_modules', | 228 'interfaces_info_individual_modules', |
252 ], | 229 ], |
253 'actions': [{ | 230 'variables': { |
254 'action_name': 'compute_interfaces_info_overall', | 231 'input_files': [ |
255 'inputs': [ | |
256 '<(bindings_scripts_dir)/compute_interfaces_info_overall.py', | |
257 '<(bindings_core_output_dir)/InterfacesInfoCoreIndividual.pickle', | 232 '<(bindings_core_output_dir)/InterfacesInfoCoreIndividual.pickle', |
258 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', | 233 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', |
259 ], | 234 ], |
260 'outputs': [ | 235 'output_file': |
261 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', | 236 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', |
262 ], | 237 }, |
263 'action': [ | 238 'includes': ['../../bindings/scripts/interfaces_info_overall.gypi'], |
264 'python', | |
265 '<(bindings_scripts_dir)/compute_interfaces_info_overall.py', | |
266 '--write-file-only-if-changed', | |
267 '<(write_file_only_if_changed)', | |
268 '--', | |
269 '<(bindings_core_output_dir)/InterfacesInfoCoreIndividual.pickle', | |
270 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', | |
271 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', | |
272 ], | |
273 'message': 'Computing overall global information about IDL files', | |
274 }] | |
275 }, | 239 }, |
276 ################################################################################ | 240 ################################################################################ |
277 ], # targets | 241 ], # targets |
278 } | 242 } |
OLD | NEW |