Chromium Code Reviews| 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 core, plus aggregate bindings files. | 5 # Generate IDL bindings for core, 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': [ |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 36 # FIXME: should not depend on modules, but partial interface definitions | 36 # FIXME: should not depend on modules, but partial interface definitions |
| 37 # in modules change bindings for core http://crbug.com/358074 | 37 # in modules change bindings for core http://crbug.com/358074 |
| 38 '../../modules/generated.gyp:modules_global_constructors_idls', | 38 '../../modules/generated.gyp:modules_global_constructors_idls', |
| 39 '<(bindings_scripts_dir)/scripts.gyp:cached_jinja_templates', | 39 '<(bindings_scripts_dir)/scripts.gyp:cached_jinja_templates', |
| 40 '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables', | 40 '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables', |
| 41 # FIXME: should be interfaces_info_core (w/o modules) | 41 # FIXME: should be interfaces_info_core (w/o modules) |
| 42 # http://crbug.com/358074 | 42 # http://crbug.com/358074 |
| 43 '../../modules/generated.gyp:interfaces_info', | 43 '../../modules/generated.gyp:interfaces_info', |
| 44 ], | 44 ], |
| 45 'sources': [ | 45 'sources': [ |
| 46 '<@(core_interface_idl_files)', | 46 '<@(core_interface_idl_files)', |
|
haraken
2014/08/05 15:51:37
These IDL files are already written in the 'source
Nico
2014/08/05 17:49:03
The code I linked to above apparently calls https:
| |
| 47 ], | 47 ], |
| 48 'rules': [{ | 48 'rules': [{ |
| 49 'rule_name': 'binding', | 49 'rule_name': 'binding', |
| 50 'extension': 'idl', | 50 'extension': 'idl', |
| 51 'msvs_external_rule': 1, | 51 'msvs_external_rule': 1, |
| 52 'inputs': [ | 52 'inputs': [ |
| 53 '<@(idl_lexer_parser_files)', # to be explicit (covered by parsetab) | 53 '<@(idl_lexer_parser_files)', # to be explicit (covered by parsetab) |
| 54 '<@(idl_compiler_files)', | 54 '<@(idl_compiler_files)', |
| 55 '<(bindings_scripts_output_dir)/lextab.py', | 55 '<(bindings_scripts_output_dir)/lextab.py', |
| 56 '<(bindings_scripts_output_dir)/parsetab.pickle', | 56 '<(bindings_scripts_output_dir)/parsetab.pickle', |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 115 'core', | 115 'core', |
| 116 '<(core_idl_files_list)', | 116 '<(core_idl_files_list)', |
| 117 '--', | 117 '--', |
| 118 '<@(bindings_core_v8_generated_aggregate_files)', | 118 '<@(bindings_core_v8_generated_aggregate_files)', |
| 119 ], | 119 ], |
| 120 'message': 'Generating aggregate generated core V8 bindings files', | 120 'message': 'Generating aggregate generated core V8 bindings files', |
| 121 }], | 121 }], |
| 122 }, | 122 }, |
| 123 ################################################################################ | 123 ################################################################################ |
| 124 { | 124 { |
| 125 # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_dic tionary_impl_generated | |
| 126 # http://crbug.com/358074; See comments on | |
| 127 # 'bindings_core_v8_generated_individual' target | |
| 128 'target_name': 'bindings_core_dictionary_impl_generated', | |
| 129 'type': 'none', | |
| 130 'hard_dependency': 1, | |
| 131 'dependencies': [ | |
| 132 '<(bindings_scripts_dir)/scripts.gyp:cached_jinja_templates', | |
| 133 '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables', | |
| 134 '../../modules/generated.gyp:interfaces_info', | |
| 135 ], | |
| 136 'sources': [ | |
| 137 # FIXME: Add '<@(core_dictionary_idl_files)', | |
| 138 '<@(core_testing_dictionary_idl_files)', | |
| 139 ], | |
| 140 'actions': [{ | |
| 141 'action_name': 'idl_dictionary', | |
| 142 'inputs': [ | |
| 143 '<@(core_testing_dictionary_idl_files)', | |
| 144 '<@(idl_lexer_parser_files)', | |
| 145 '<@(idl_compiler_files)', | |
| 146 '<(bindings_scripts_output_dir)/lextab.py', | |
| 147 '<(bindings_scripts_output_dir)/parsetab.pickle', | |
| 148 '<(bindings_scripts_output_dir)/cached_jinja_templates.stamp', | |
| 149 '<(bindings_dir)/IDLExtendedAttributes.txt', | |
| 150 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', | |
| 151 ], | |
| 152 'outputs': [ | |
| 153 # FIXME: Add '<@(generated_core_dictionary_files)', | |
| 154 '<@(generated_core_testing_dictionary_files)', | |
| 155 ], | |
| 156 'action': [ | |
| 157 'python', | |
| 158 '<(bindings_scripts_dir)/idl_compiler.py', | |
| 159 '--cache-dir', | |
| 160 '<(bindings_scripts_output_dir)', | |
| 161 '--output-dir', | |
| 162 '<(SHARED_INTERMEDIATE_DIR)/blink/', | |
| 163 '--interfaces-info', | |
| 164 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', | |
| 165 '--write-file-only-if-changed', | |
| 166 '<(write_file_only_if_changed)', | |
| 167 '--generate-dictionary-impl', | |
| 168 '<(core_dictionary_idl_files_list)', | |
| 169 ], | |
| 170 'message': 'Generating core IDL dictionary impl classes', | |
| 171 }], | |
| 172 }, | |
| 173 ################################################################################ | |
| 174 { | |
| 125 # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_ generated | 175 # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_ generated |
| 126 'target_name': 'bindings_core_v8_generated', | 176 'target_name': 'bindings_core_v8_generated', |
| 127 'type': 'none', | 177 'type': 'none', |
| 128 'dependencies': [ | 178 'dependencies': [ |
| 179 'bindings_core_dictionary_impl_generated', | |
| 129 'bindings_core_v8_generated_aggregate', | 180 'bindings_core_v8_generated_aggregate', |
| 130 'bindings_core_v8_generated_individual', | 181 'bindings_core_v8_generated_individual', |
| 131 ], | 182 ], |
| 132 }, | 183 }, |
| 133 ################################################################################ | 184 ################################################################################ |
| 134 ], # targets | 185 ], # targets |
| 135 } | 186 } |
| OLD | NEW |