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 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
127 '../../build/scripts/make_names.py', | 127 '../../build/scripts/make_names.py', |
128 '../../modules/EventTargetModulesFactory.in', | 128 '../../modules/EventTargetModulesFactory.in', |
129 '--output_dir', | 129 '--output_dir', |
130 '<(SHARED_INTERMEDIATE_DIR)/blink', | 130 '<(SHARED_INTERMEDIATE_DIR)/blink', |
131 ], | 131 ], |
132 }, | 132 }, |
133 ], | 133 ], |
134 }, | 134 }, |
135 ################################################################################ | 135 ################################################################################ |
136 { | 136 { |
137 'target_name': 'modules_global_objects', | |
138 'type': 'none', | |
139 'dependencies': [ | |
140 '../core/generated.gyp:core_global_objects', | |
141 ], | |
142 'actions': [{ | |
143 'action_name': 'compute_modules_global_objects', | |
144 'inputs': [ | |
145 '<(bindings_scripts_dir)/compute_global_objects.py', | |
146 '<(bindings_scripts_dir)/utilities.py', | |
147 # Only look in main IDL files (exclude dependencies and testing, | |
148 # which should not define global objects). | |
149 '<(modules_idl_files_list)', | |
150 '<@(modules_idl_files)', | |
151 ], | |
152 'outputs': [ | |
153 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle', | |
154 ], | |
155 'action': [ | |
156 'python', | |
157 '<(bindings_scripts_dir)/compute_global_objects.py', | |
158 '--idl-files-list', | |
159 '<(modules_idl_files_list)', | |
160 '--write-file-only-if-changed', | |
161 '<(write_file_only_if_changed)', | |
162 '--', | |
163 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle', | |
haraken
2014/06/05 03:05:10
Do we need GlobalObjectsCore.pickle?
Nils Barth (inactive)
2014/06/05 03:10:53
Yes: it's global objects defined in core, and is n
Nils Barth (inactive)
2014/06/05 03:23:58
For example, I'll be using it directly in the foll
| |
164 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle', | |
165 ], | |
166 'message': 'Computing global objects in modules', | |
167 }] | |
168 }, | |
169 ################################################################################ | |
170 { | |
137 'target_name': 'modules_global_constructors_idls', | 171 'target_name': 'modules_global_constructors_idls', |
138 'type': 'none', | 172 'type': 'none', |
139 'dependencies': [ | 173 'dependencies': [ |
140 # FIXME: should be modules_global_objects http://crbug.com/358074 | 174 'modules_global_objects', |
141 '../generated.gyp:global_objects', | |
142 ], | 175 ], |
143 'actions': [{ | 176 'actions': [{ |
144 'action_name': 'generate_modules_global_constructors_idls', | 177 'action_name': 'generate_modules_global_constructors_idls', |
145 'inputs': [ | 178 'inputs': [ |
146 '<(bindings_scripts_dir)/generate_global_constructors.py', | 179 '<(bindings_scripts_dir)/generate_global_constructors.py', |
147 '<(bindings_scripts_dir)/utilities.py', | 180 '<(bindings_scripts_dir)/utilities.py', |
148 # Only includes main IDL files (exclude dependencies and testing, | 181 # Only includes main IDL files (exclude dependencies and testing, |
149 # which should not appear on global objects). | 182 # which should not appear on global objects). |
150 '<(modules_idl_files_list)', | 183 '<(modules_idl_files_list)', |
151 '<@(modules_idl_files)', | 184 '<@(modules_idl_files)', |
152 '<(bindings_output_dir)/GlobalObjects.pickle', | 185 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle', |
153 ], | 186 ], |
154 'outputs': [ | 187 'outputs': [ |
155 '<@(modules_global_constructors_generated_idl_files)', | 188 '<@(modules_global_constructors_generated_idl_files)', |
156 '<@(modules_global_constructors_generated_header_files)', | 189 '<@(modules_global_constructors_generated_header_files)', |
157 ], | 190 ], |
158 'action': [ | 191 'action': [ |
159 'python', | 192 'python', |
160 '<(bindings_scripts_dir)/generate_global_constructors.py', | 193 '<(bindings_scripts_dir)/generate_global_constructors.py', |
161 '--idl-files-list', | 194 '--idl-files-list', |
162 '<(modules_idl_files_list)', | 195 '<(modules_idl_files_list)', |
163 '--global-objects-file', | 196 '--global-objects-file', |
164 '<(bindings_output_dir)/GlobalObjects.pickle', | 197 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle', |
165 '--write-file-only-if-changed', | 198 '--write-file-only-if-changed', |
166 '<(write_file_only_if_changed)', | 199 '<(write_file_only_if_changed)', |
167 '--', | 200 '--', |
168 'Window', | 201 'Window', |
169 '<(blink_modules_output_dir)/WindowModulesConstructors.idl', | 202 '<(blink_modules_output_dir)/WindowModulesConstructors.idl', |
170 'SharedWorkerGlobalScope', | 203 'SharedWorkerGlobalScope', |
171 '<(blink_modules_output_dir)/SharedWorkerGlobalScopeModulesConstructors. idl', | 204 '<(blink_modules_output_dir)/SharedWorkerGlobalScopeModulesConstructors. idl', |
172 'DedicatedWorkerGlobalScope', | 205 'DedicatedWorkerGlobalScope', |
173 '<(blink_modules_output_dir)/DedicatedWorkerGlobalScopeModulesConstructo rs.idl', | 206 '<(blink_modules_output_dir)/DedicatedWorkerGlobalScopeModulesConstructo rs.idl', |
174 'ServiceWorkerGlobalScope', | 207 'ServiceWorkerGlobalScope', |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
242 '<(bindings_core_output_dir)/InterfacesInfoCoreIndividual.pickle', | 275 '<(bindings_core_output_dir)/InterfacesInfoCoreIndividual.pickle', |
243 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', | 276 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', |
244 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', | 277 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', |
245 ], | 278 ], |
246 'message': 'Computing overall global information about IDL files', | 279 'message': 'Computing overall global information about IDL files', |
247 }] | 280 }] |
248 }, | 281 }, |
249 ################################################################################ | 282 ################################################################################ |
250 ], # targets | 283 ], # targets |
251 } | 284 } |
OLD | NEW |