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': [ |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
102 'modules', | 102 'modules', |
103 '<(modules_idl_files_list)', | 103 '<(modules_idl_files_list)', |
104 '--', | 104 '--', |
105 '<@(bindings_modules_v8_generated_aggregate_files)', | 105 '<@(bindings_modules_v8_generated_aggregate_files)', |
106 ], | 106 ], |
107 'message': 'Generating aggregate generated modules V8 bindings files', | 107 'message': 'Generating aggregate generated modules V8 bindings files', |
108 }], | 108 }], |
109 }, | 109 }, |
110 ################################################################################ | 110 ################################################################################ |
111 { | 111 { |
112 # GN version: //third_party/WebKit/Source/bindings/modules/v8:bindings_modul es_dictionary_impl_generated | 112 # GN version: //third_party/WebKit/Source/bindings/modules/v8:bindings_modul es_impl_generated |
113 # http://crbug.com/358074; See comments on | 113 # http://crbug.com/358074; See comments on |
114 # 'bindings_core_v8_generated_individual' target | 114 # 'bindings_core_v8_generated_individual' target |
115 'target_name': 'bindings_modules_dictionary_impl_generated', | 115 'target_name': 'bindings_modules_impl_generated', |
116 'type': 'none', | 116 'type': 'none', |
117 'hard_dependency': 1, | 117 'hard_dependency': 1, |
118 'dependencies': [ | 118 'dependencies': [ |
119 '<(bindings_scripts_dir)/scripts.gyp:cached_jinja_templates', | 119 '<(bindings_scripts_dir)/scripts.gyp:cached_jinja_templates', |
120 '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables', | 120 '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables', |
121 '../../modules/generated.gyp:interfaces_info', | 121 '../../modules/generated.gyp:interfaces_info', |
122 '../../modules/generated.gyp:interfaces_info_individual_modules', | |
122 ], | 123 ], |
123 'sources': [ | 124 'sources': [ |
124 '<@(modules_dictionary_idl_files)', | 125 '<@(modules_dictionary_idl_files)', |
125 ], | 126 ], |
126 'actions': [{ | 127 'actions': [{ |
127 'action_name': 'idl_dictionary', | 128 'action_name': 'idl_dictionary', |
128 # See comment on bindings_core_dictionary_impl_generated | 129 # See comment on bindings_core_impl_generated |
129 'explicit_idl_action': 1, | 130 'explicit_idl_action': 1, |
130 'msvs_cygwin_shell': 0, | 131 'msvs_cygwin_shell': 0, |
131 'inputs': [ | 132 'inputs': [ |
132 '<@(modules_dictionary_idl_files)', | 133 '<@(modules_dictionary_idl_files)', |
133 '<@(idl_lexer_parser_files)', | 134 '<@(idl_lexer_parser_files)', |
134 '<@(idl_cache_files)', | 135 '<@(idl_cache_files)', |
135 '<@(idl_compiler_files)', | 136 '<@(idl_compiler_files)', |
136 '<(bindings_dir)/IDLExtendedAttributes.txt', | 137 '<(bindings_dir)/IDLExtendedAttributes.txt', |
137 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', | 138 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', |
139 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', | |
138 ], | 140 ], |
139 'outputs': [ | 141 'outputs': [ |
142 '<@(bindings_modules_v8_generated_union_type_files)', | |
140 '<@(generated_modules_dictionary_files)', | 143 '<@(generated_modules_dictionary_files)', |
141 ], | 144 ], |
142 'action': [ | 145 'action': [ |
143 'python', | 146 'python', |
144 '<(bindings_scripts_dir)/idl_compiler.py', | 147 '<(bindings_scripts_dir)/idl_compiler.py', |
145 '--cache-dir', | 148 '--cache-dir', |
146 '<(bindings_scripts_output_dir)', | 149 '<(bindings_scripts_output_dir)', |
147 '--output-dir', | 150 '--output-dir', |
151 '<(bindings_modules_v8_output_dir)', | |
152 '--dictionary-impl-output-dir', | |
148 '<(SHARED_INTERMEDIATE_DIR)/blink/', | 153 '<(SHARED_INTERMEDIATE_DIR)/blink/', |
haraken
2014/10/29 04:59:29
Just help me understand: Why do we need a differen
bashi
2014/10/29 09:57:36
Dictionary impls are generated under gen/blink/{co
| |
149 '--interfaces-info', | 154 '--interfaces-info', |
150 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', | 155 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', |
156 '--individual-info', | |
157 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', | |
haraken
2014/10/29 04:59:29
Hmm, "InterfacesInfoModulesIndividual" is a bit co
bashi
2014/10/29 09:57:36
Hmm, in fact, we already put global information in
| |
158 '--target-component', | |
159 'modules', | |
151 '--write-file-only-if-changed', | 160 '--write-file-only-if-changed', |
152 '<(write_file_only_if_changed)', | 161 '<(write_file_only_if_changed)', |
153 '--generate-dictionary-impl', | 162 '--generate-impl', |
154 '<(modules_dictionary_idl_files_list)', | 163 '<(modules_dictionary_idl_files_list)', |
155 ], | 164 ], |
156 'message': 'Generating modules IDL dictionary impl classes', | 165 'message': 'Generating modules IDL dictionary impl classes', |
157 }], | 166 }], |
158 }, | 167 }, |
159 ################################################################################ | 168 ################################################################################ |
160 { | 169 { |
161 'target_name': 'bindings_modules_v8_generated_partial_individual', | 170 'target_name': 'bindings_modules_v8_generated_partial_individual', |
162 'type': 'none', | 171 'type': 'none', |
163 # The 'partial_binding' rule generates .h files, so mark as hard_dependency, per: | 172 # The 'partial_binding' rule generates .h files, so mark as hard_dependency, per: |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
274 '--write-file-only-if-changed', | 283 '--write-file-only-if-changed', |
275 '<(write_file_only_if_changed)', | 284 '<(write_file_only_if_changed)', |
276 ], | 285 ], |
277 }], | 286 }], |
278 }, | 287 }, |
279 ################################################################################ | 288 ################################################################################ |
280 { | 289 { |
281 'target_name': 'bindings_modules_v8_generated', | 290 'target_name': 'bindings_modules_v8_generated', |
282 'type': 'none', | 291 'type': 'none', |
283 'dependencies': [ | 292 'dependencies': [ |
284 'bindings_modules_dictionary_impl_generated', | 293 'bindings_modules_impl_generated', |
285 'bindings_modules_v8_generated_aggregate', | 294 'bindings_modules_v8_generated_aggregate', |
286 'bindings_modules_v8_generated_individual', | 295 'bindings_modules_v8_generated_individual', |
287 'bindings_modules_v8_generated_init_partial', | 296 'bindings_modules_v8_generated_init_partial', |
288 'bindings_modules_v8_generated_partial_aggregate', | 297 'bindings_modules_v8_generated_partial_aggregate', |
289 'bindings_modules_v8_generated_partial_individual', | 298 'bindings_modules_v8_generated_partial_individual', |
290 ], | 299 ], |
291 }, | 300 }, |
292 ################################################################################ | 301 ################################################################################ |
293 ], # targets | 302 ], # targets |
294 } | 303 } |
OLD | NEW |