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': [ |
| 11 # ../../.. == Source | 11 # ../../.. == Source |
| 12 '../../../bindings/bindings.gypi', | 12 '../../../bindings/bindings.gypi', |
| 13 '../../../bindings/core/core.gypi', | |
| 13 '../../../bindings/core/generated.gypi', | 14 '../../../bindings/core/generated.gypi', |
| 14 '../../../bindings/core/idl.gypi', | 15 '../../../bindings/core/idl.gypi', |
| 15 # FIXME: need info about modules IDL files because some core IDL files | 16 # FIXME: need info about modules IDL files because some core IDL files |
| 16 # depend on modules IDL files http://crbug.com/358074 | 17 # depend on modules IDL files http://crbug.com/358074 |
| 17 '../../../bindings/modules/idl.gypi', | 18 '../../../bindings/modules/idl.gypi', |
| 18 '../../../bindings/modules/modules.gypi', | 19 '../../../bindings/modules/modules.gypi', |
| 19 '../../../bindings/scripts/scripts.gypi', | 20 '../../../bindings/scripts/scripts.gypi', |
| 20 '../../../core/core.gypi', | 21 '../../../core/core.gypi', |
| 21 'generated.gypi', | 22 'generated.gypi', |
| 22 ], | 23 ], |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 112 'core', | 113 'core', |
| 113 '<(core_idl_files_list)', | 114 '<(core_idl_files_list)', |
| 114 '--', | 115 '--', |
| 115 '<@(bindings_core_v8_generated_aggregate_files)', | 116 '<@(bindings_core_v8_generated_aggregate_files)', |
| 116 ], | 117 ], |
| 117 'message': 'Generating aggregate generated core V8 bindings files', | 118 'message': 'Generating aggregate generated core V8 bindings files', |
| 118 }], | 119 }], |
| 119 }, | 120 }, |
| 120 ################################################################################ | 121 ################################################################################ |
| 121 { | 122 { |
| 122 # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_dic tionary_impl_generated | 123 # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_imp l_generated |
| 123 # http://crbug.com/358074; See comments on | 124 # http://crbug.com/358074; See comments on |
| 124 # 'bindings_core_v8_generated_individual' target | 125 # 'bindings_core_v8_generated_individual' target |
| 125 'target_name': 'bindings_core_dictionary_impl_generated', | 126 'target_name': 'bindings_core_impl_generated', |
| 126 'type': 'none', | 127 'type': 'none', |
| 127 'hard_dependency': 1, | 128 'hard_dependency': 1, |
| 128 'dependencies': [ | 129 'dependencies': [ |
| 129 '<(bindings_scripts_dir)/scripts.gyp:cached_jinja_templates', | 130 '<(bindings_scripts_dir)/scripts.gyp:cached_jinja_templates', |
| 130 '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables', | 131 '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables', |
| 131 '../../modules/generated.gyp:interfaces_info', | 132 '../../modules/generated.gyp:interfaces_info', |
| 132 ], | 133 ], |
| 133 'sources': [ | 134 'sources': [ |
| 134 '<@(core_dictionary_idl_files)', | 135 '<@(core_dictionary_idl_files)', |
| 135 '<@(core_testing_dictionary_idl_files)', | 136 '<@(core_testing_dictionary_idl_files)', |
| 136 ], | 137 ], |
| 137 'actions': [{ | 138 'actions': [{ |
| 138 'action_name': 'idl_dictionary', | 139 'action_name': 'idl_dictionary', |
| 139 # Mark as explicit idl action to prevent MSVS emulation on Windows. | 140 # Mark as explicit idl action to prevent MSVS emulation on Windows. |
| 140 'explicit_idl_action': 1, | 141 'explicit_idl_action': 1, |
| 141 'msvs_cygwin_shell': 0, | 142 'msvs_cygwin_shell': 0, |
| 142 'inputs': [ | 143 'inputs': [ |
| 143 '<@(core_dictionary_idl_files)', | 144 '<@(core_dictionary_idl_files)', |
| 144 '<@(core_testing_dictionary_idl_files)', | 145 '<@(core_testing_dictionary_idl_files)', |
| 145 '<@(idl_lexer_parser_files)', | 146 '<@(idl_lexer_parser_files)', |
| 146 '<@(idl_cache_files)', | 147 '<@(idl_cache_files)', |
| 147 '<@(idl_compiler_files)', | 148 '<@(idl_compiler_files)', |
| 148 '<(bindings_dir)/IDLExtendedAttributes.txt', | 149 '<(bindings_dir)/IDLExtendedAttributes.txt', |
| 149 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', | 150 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', |
| 151 '<(bindings_core_output_dir)/InterfacesInfoCoreIndividual.pickle', | |
|
Jens Widell
2014/10/28 11:31:37
Add a dependency on 'interfaces_info_individual_co
bashi
2014/10/29 01:34:32
Done.
| |
| 150 ], | 152 ], |
| 151 'outputs': [ | 153 'outputs': [ |
| 154 '<@(bindings_core_v8_generated_union_type_files)', | |
| 152 '<@(generated_core_dictionary_files)', | 155 '<@(generated_core_dictionary_files)', |
| 153 '<@(generated_core_testing_dictionary_files)', | 156 '<@(generated_core_testing_dictionary_files)', |
| 154 ], | 157 ], |
| 155 'action': [ | 158 'action': [ |
| 156 'python', | 159 'python', |
| 157 '<(bindings_scripts_dir)/idl_compiler.py', | 160 '<(bindings_scripts_dir)/idl_compiler.py', |
| 158 '--cache-dir', | 161 '--cache-dir', |
| 159 '<(bindings_scripts_output_dir)', | 162 '<(bindings_scripts_output_dir)', |
| 160 '--output-dir', | 163 '--output-dir', |
| 164 '<(bindings_core_v8_output_dir)', | |
| 165 '--dictionary-impl-output-dir', | |
| 161 '<(SHARED_INTERMEDIATE_DIR)/blink/', | 166 '<(SHARED_INTERMEDIATE_DIR)/blink/', |
| 162 '--interfaces-info', | 167 '--interfaces-info', |
| 163 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', | 168 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', |
| 169 '--individual-info', | |
| 170 '<(bindings_core_output_dir)/InterfacesInfoCoreIndividual.pickle', | |
| 171 '--target-component', | |
| 172 'core', | |
| 164 '--write-file-only-if-changed', | 173 '--write-file-only-if-changed', |
| 165 '<(write_file_only_if_changed)', | 174 '<(write_file_only_if_changed)', |
| 166 '--generate-dictionary-impl', | 175 '--generate-impl', |
| 167 '<(core_dictionary_idl_files_list)', | 176 '<(core_dictionary_idl_files_list)', |
| 168 ], | 177 ], |
| 169 'message': 'Generating core IDL dictionary impl classes', | 178 'message': 'Generating core IDL dictionary impl classes', |
| 170 }], | 179 }], |
| 171 }, | 180 }, |
| 172 ################################################################################ | 181 ################################################################################ |
| 173 { | 182 { |
| 174 # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_ generated | 183 # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_ generated |
| 175 'target_name': 'bindings_core_v8_generated', | 184 'target_name': 'bindings_core_v8_generated', |
| 176 'type': 'none', | 185 'type': 'none', |
| 177 'dependencies': [ | 186 'dependencies': [ |
| 178 'bindings_core_dictionary_impl_generated', | 187 'bindings_core_impl_generated', |
| 179 'bindings_core_v8_generated_aggregate', | 188 'bindings_core_v8_generated_aggregate', |
| 180 'bindings_core_v8_generated_individual', | 189 'bindings_core_v8_generated_individual', |
| 181 ], | 190 ], |
| 182 }, | 191 }, |
| 183 ################################################################################ | 192 ################################################################################ |
| 184 ], # targets | 193 ], # targets |
| 185 } | 194 } |
| OLD | NEW |