Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: Source/bindings/modules/generated.gyp

Issue 319933002: IDL build: factor out global constructors action into a GYP template (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix name collision Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/core/generated.gyp ('k') | Source/bindings/scripts/global_constructors.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 interfaces info for modules, used to generate bindings 5 # Generate IDL interfaces info for modules, used to generate bindings
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 'output_file': 145 'output_file':
146 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle', 146 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle',
147 }, 147 },
148 'includes': ['../../bindings/scripts/global_objects.gypi'], 148 'includes': ['../../bindings/scripts/global_objects.gypi'],
149 }, 149 },
150 ################################################################################ 150 ################################################################################
151 { 151 {
152 # Global constructors for global objects in modules (ServiceWorker) 152 # Global constructors for global objects in modules (ServiceWorker)
153 # but interfaces in core. 153 # but interfaces in core.
154 'target_name': 'modules_core_global_constructors_idls', 154 'target_name': 'modules_core_global_constructors_idls',
155 'type': 'none',
156 'dependencies': [ 155 'dependencies': [
157 'modules_global_objects', 156 'modules_global_objects',
158 ], 157 ],
159 'actions': [{ 158 'variables': {
160 'action_name': 'generate_modules_core_global_constructors_idls', 159 'idl_files': '<(core_idl_files)',
161 'inputs': [ 160 'global_objects_file':
162 '<(bindings_scripts_dir)/generate_global_constructors.py',
163 '<(bindings_scripts_dir)/utilities.py',
164 # Only includes main IDL files (exclude dependencies and testing,
165 # which should not appear on global objects).
166 '<(core_idl_files_list)',
167 '<@(core_idl_files)',
168 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle', 161 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle',
162 'global_names_idl_files': [
163 'ServiceWorkerGlobalScope',
164 '<(blink_modules_output_dir)/ServiceWorkerGlobalScopeCoreConstructors.id l',
169 ], 165 ],
170 'outputs': [ 166 'outputs': [
171 '<@(modules_core_global_constructors_generated_idl_files)', 167 '<@(modules_core_global_constructors_generated_idl_files)',
172 '<@(modules_core_global_constructors_generated_header_files)', 168 '<@(modules_core_global_constructors_generated_header_files)',
173 ], 169 ],
174 'action': [ 170 },
175 'python', 171 'includes': ['../../bindings/scripts/global_constructors.gypi'],
176 '<(bindings_scripts_dir)/generate_global_constructors.py',
177 '--idl-files-list',
178 '<(core_idl_files_list)',
179 '--global-objects-file',
180 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle',
181 '--write-file-only-if-changed',
182 '<(write_file_only_if_changed)',
183 '--',
184 'ServiceWorkerGlobalScope',
185 '<(blink_modules_output_dir)/ServiceWorkerGlobalScopeCoreConstructors.id l',
186 ],
187 'message':
188 'Generating IDL files for constructors for interfaces in core, on globa l objects from modules',
189 }]
190 }, 172 },
191 ################################################################################ 173 ################################################################################
192 { 174 {
193 'target_name': 'modules_global_constructors_idls', 175 'target_name': 'modules_global_constructors_idls',
194 'type': 'none',
195 'dependencies': [ 176 'dependencies': [
196 'modules_global_objects', 177 'modules_global_objects',
197 ], 178 ],
198 'actions': [{ 179 'variables': {
199 'action_name': 'generate_modules_global_constructors_idls', 180 'idl_files': '<(modules_idl_files)',
200 'inputs': [ 181 'global_objects_file':
201 '<(bindings_scripts_dir)/generate_global_constructors.py',
202 '<(bindings_scripts_dir)/utilities.py',
203 # Only includes main IDL files (exclude dependencies and testing,
204 # which should not appear on global objects).
205 '<(modules_idl_files_list)',
206 '<@(modules_idl_files)',
207 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle', 182 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle',
208 ], 183 'global_names_idl_files': [
209 'outputs': [
210 '<@(modules_global_constructors_generated_idl_files)',
211 '<@(modules_global_constructors_generated_header_files)',
212 ],
213 'action': [
214 'python',
215 '<(bindings_scripts_dir)/generate_global_constructors.py',
216 '--idl-files-list',
217 '<(modules_idl_files_list)',
218 '--global-objects-file',
219 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle',
220 '--write-file-only-if-changed',
221 '<(write_file_only_if_changed)',
222 '--',
223 'Window', 184 'Window',
224 '<(blink_modules_output_dir)/WindowModulesConstructors.idl', 185 '<(blink_modules_output_dir)/WindowModulesConstructors.idl',
225 'SharedWorkerGlobalScope', 186 'SharedWorkerGlobalScope',
226 '<(blink_modules_output_dir)/SharedWorkerGlobalScopeModulesConstructors. idl', 187 '<(blink_modules_output_dir)/SharedWorkerGlobalScopeModulesConstructors. idl',
227 'DedicatedWorkerGlobalScope', 188 'DedicatedWorkerGlobalScope',
228 '<(blink_modules_output_dir)/DedicatedWorkerGlobalScopeModulesConstructo rs.idl', 189 '<(blink_modules_output_dir)/DedicatedWorkerGlobalScopeModulesConstructo rs.idl',
229 'ServiceWorkerGlobalScope', 190 'ServiceWorkerGlobalScope',
230 '<(blink_modules_output_dir)/ServiceWorkerGlobalScopeModulesConstructors .idl', 191 '<(blink_modules_output_dir)/ServiceWorkerGlobalScopeModulesConstructors .idl',
231 ], 192 ],
232 'message': 193 'outputs': [
233 'Generating IDL files for constructors on global objects from modules', 194 '<@(modules_global_constructors_generated_idl_files)',
234 }] 195 '<@(modules_global_constructors_generated_header_files)',
196 ],
197 },
198 'includes': ['../../bindings/scripts/global_constructors.gypi'],
235 }, 199 },
236 ################################################################################ 200 ################################################################################
237 { 201 {
238 'target_name': 'interfaces_info_individual_modules', 202 'target_name': 'interfaces_info_individual_modules',
239 'type': 'none', 203 'type': 'none',
240 'dependencies': [ 204 'dependencies': [
241 'modules_core_global_constructors_idls', 205 'modules_core_global_constructors_idls',
242 'modules_global_constructors_idls', 206 'modules_global_constructors_idls',
243 ], 207 ],
244 'actions': [{ 208 'actions': [{
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 '<(bindings_core_output_dir)/InterfacesInfoCoreIndividual.pickle', 262 '<(bindings_core_output_dir)/InterfacesInfoCoreIndividual.pickle',
299 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', 263 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle',
300 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', 264 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle',
301 ], 265 ],
302 'message': 'Computing overall global information about IDL files', 266 'message': 'Computing overall global information about IDL files',
303 }] 267 }]
304 }, 268 },
305 ################################################################################ 269 ################################################################################
306 ], # targets 270 ], # targets
307 } 271 }
OLDNEW
« no previous file with comments | « Source/bindings/core/generated.gyp ('k') | Source/bindings/scripts/global_constructors.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698