| 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 bindings for modules, plus aggregate bindings files. | 5 # Generate IDL bindings for modules, plus aggregate bindings files. |
| 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': [ |
| 11 '../../../modules/modules.gypi', | 11 '../../../modules/modules.gypi', |
| 12 '../../bindings.gypi', | 12 '../../bindings.gypi', |
| 13 '../../core/generated.gypi', |
| 13 '../../core/idl.gypi', | 14 '../../core/idl.gypi', |
| 14 '../../scripts/scripts.gypi', | 15 '../../scripts/scripts.gypi', |
| 15 '../idl.gypi', | 16 '../idl.gypi', |
| 16 '../modules.gypi', | 17 '../modules.gypi', |
| 17 'generated.gypi', | 18 'generated.gypi', |
| 18 ], | 19 ], |
| 19 | 20 |
| 20 'variables': { | |
| 21 # IDL file lists; see: http://www.chromium.org/developers/web-idl-interfaces | |
| 22 # Write lists of main IDL files to a file, so that the command lines don't | |
| 23 # exceed OS length limits. | |
| 24 'modules_idl_files_list': '<|(modules_idl_files_list.tmp <@(modules_idl_file
s))', | |
| 25 | |
| 26 # Interface IDL files: generate individual bindings (includes testing) | |
| 27 'modules_interface_idl_files': [ | |
| 28 # No testing or generated interface IDL files in modules currently | |
| 29 '<@(modules_idl_files)', | |
| 30 ], | |
| 31 }, | |
| 32 | |
| 33 'targets': [ | 21 'targets': [ |
| 34 ################################################################################ | 22 ################################################################################ |
| 35 { | 23 { |
| 36 'target_name': 'bindings_modules_generated_individual', | 24 'target_name': 'bindings_modules_generated_individual', |
| 37 'type': 'none', | 25 'type': 'none', |
| 38 # The 'binding' rule generates .h files, so mark as hard_dependency, per: | 26 # The 'binding' rule generates .h files, so mark as hard_dependency, per: |
| 39 # https://code.google.com/p/gyp/wiki/InputFormatReference#Linking_Dependenci
es | 27 # https://code.google.com/p/gyp/wiki/InputFormatReference#Linking_Dependenci
es |
| 40 'hard_dependency': 1, | 28 'hard_dependency': 1, |
| 41 'dependencies': [ | 29 'dependencies': [ |
| 30 '../../core/generated.gyp:core_global_constructors_idls', |
| 31 # FIXME: should be in modules http://crbug.com/358074 |
| 32 '../../core/generated.gyp:modules_global_constructors_idls', |
| 42 '../generated.gyp:interfaces_info', | 33 '../generated.gyp:interfaces_info', |
| 43 '<(bindings_scripts_dir)/scripts.gyp:cached_jinja_templates', | 34 '<(bindings_scripts_dir)/scripts.gyp:cached_jinja_templates', |
| 44 '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables', | 35 '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables', |
| 45 ], | 36 ], |
| 46 'sources': [ | 37 'sources': [ |
| 47 '<@(modules_interface_idl_files)', | 38 '<@(modules_interface_idl_files)', |
| 48 ], | 39 ], |
| 49 'rules': [{ | 40 'rules': [{ |
| 50 'rule_name': 'binding', | 41 'rule_name': 'binding', |
| 51 'extension': 'idl', | 42 'extension': 'idl', |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 'target_name': 'bindings_modules_generated', | 114 'target_name': 'bindings_modules_generated', |
| 124 'type': 'none', | 115 'type': 'none', |
| 125 'dependencies': [ | 116 'dependencies': [ |
| 126 'bindings_modules_generated_aggregate', | 117 'bindings_modules_generated_aggregate', |
| 127 'bindings_modules_generated_individual', | 118 'bindings_modules_generated_individual', |
| 128 ], | 119 ], |
| 129 }, | 120 }, |
| 130 ################################################################################ | 121 ################################################################################ |
| 131 ], # targets | 122 ], # targets |
| 132 } | 123 } |
| OLD | NEW |