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 104 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 # http://crbug.com/358074 | |
| 126 # See comments on 'bindings_core_v8_generated_individual' target | |
| 127 'target_name': 'bindings_core_dictionary_impl_generated', | |
| 128 'type': 'none', | |
| 129 'hard_dependency': 1, | |
| 130 'dependencies': [ | |
| 131 '<(bindings_scripts_dir)/scripts.gyp:cached_jinja_templates', | |
| 132 '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables', | |
| 133 '../../modules/generated.gyp:interfaces_info', | |
| 134 ], | |
| 135 'sources': [ | |
| 136 '<@(core_dictionary_idl_files)', | |
| 137 ], | |
| 138 'rules': [{ | |
| 139 'rule_name': 'idl_dictionary', | |
| 140 'extension': 'idl', | |
| 141 'msvs_external_rule': 1, | |
| 142 'inputs': [ | |
| 143 '<@(idl_lexer_parser_files)', | |
| 144 '<@(idl_compiler_files)', | |
| 145 '<(bindings_scripts_output_dir)/lextab.py', | |
| 146 '<(bindings_scripts_output_dir)/parsetab.pickle', | |
| 147 '<(bindings_scripts_output_dir)/cached_jinja_templates.stamp', | |
| 148 '<(bindings_dir)/IDLExtendedAttributes.txt', | |
| 149 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', | |
| 150 ], | |
| 151 'outputs': [ | |
| 152 '<@(generated_core_dictionary_files)', | |
| 153 ], | |
| 154 'action': [ | |
| 155 'python', | |
| 156 '-S', # skip 'import site' to speed up startup | |
|
bashi
2014/08/05 05:36:22
Removed -S because this action runs once.
| |
| 157 '<(bindings_scripts_dir)/idl_compiler.py', | |
| 158 '--cache-dir', | |
| 159 '<(bindings_scripts_output_dir)', | |
| 160 '--output-dir', | |
| 161 '<(SHARED_INTERMEDIATE_DIR)/blink/', | |
| 162 '--interfaces-info', | |
| 163 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', | |
| 164 '--write-file-only-if-changed', | |
| 165 '<(write_file_only_if_changed)', | |
| 166 '--generate-dictionary-impl', | |
| 167 '<(RULE_INPUT_PATH)', | |
| 168 ], | |
| 169 'message': 'Generating IDL dictionary impls from <(RULE_INPUT_PATH)', | |
| 170 }], | |
| 171 }, | |
| 172 ################################################################################ | |
| 173 { | |
| 125 # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_ generated | 174 # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_ generated |
| 126 'target_name': 'bindings_core_v8_generated', | 175 'target_name': 'bindings_core_v8_generated', |
| 127 'type': 'none', | 176 'type': 'none', |
| 128 'dependencies': [ | 177 'dependencies': [ |
| 129 'bindings_core_v8_generated_aggregate', | 178 'bindings_core_v8_generated_aggregate', |
| 130 'bindings_core_v8_generated_individual', | 179 'bindings_core_v8_generated_individual', |
| 180 'bindings_core_dictionary_impl_generated', | |
| 131 ], | 181 ], |
| 132 }, | 182 }, |
| 133 ################################################################################ | 183 ################################################################################ |
| 134 ], # targets | 184 ], # targets |
| 135 } | 185 } |
| OLD | NEW |