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': [ |
11 # ../.. == Source | 11 # ../.. == Source |
12 '../../bindings/bindings.gypi', | |
13 '../../bindings/core/core.gypi', | 12 '../../bindings/core/core.gypi', |
14 '../../bindings/scripts/scripts.gypi', | 13 '../../bindings/scripts/scripts.gypi', |
15 '../../build/scripts/scripts.gypi', # FIXME: Needed for event files, should
be in modules, not bindings_modules http://crbug.com/358074 | 14 '../../build/scripts/scripts.gypi', # FIXME: Needed for event files, should
be in modules, not bindings_modules http://crbug.com/358074 |
16 '../../modules/modules.gypi', | 15 '../../modules/modules.gypi', |
17 'generated.gypi', | 16 'generated.gypi', |
18 'idl.gypi', | 17 'idl.gypi', |
19 'modules.gypi', | 18 'modules.gypi', |
20 ], | 19 ], |
21 | 20 |
22 'targets': [ | 21 'targets': [ |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 '../../modules/EventTargetModulesFactory.in', | 127 '../../modules/EventTargetModulesFactory.in', |
129 '--output_dir', | 128 '--output_dir', |
130 '<(blink_modules_output_dir)', | 129 '<(blink_modules_output_dir)', |
131 ], | 130 ], |
132 }, | 131 }, |
133 ], | 132 ], |
134 }, | 133 }, |
135 ################################################################################ | 134 ################################################################################ |
136 { | 135 { |
137 'target_name': 'modules_global_objects', | 136 'target_name': 'modules_global_objects', |
138 'type': 'none', | |
139 'dependencies': [ | 137 'dependencies': [ |
140 '../core/generated.gyp:core_global_objects', | 138 '../core/generated.gyp:core_global_objects', |
141 ], | 139 ], |
142 'actions': [{ | 140 'variables': { |
143 'action_name': 'compute_modules_global_objects', | 141 'idl_files': '<(modules_idl_files)', |
144 'inputs': [ | 142 'input_files': [ |
145 '<(bindings_scripts_dir)/compute_global_objects.py', | 143 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle', |
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 ], | 144 ], |
152 'outputs': [ | 145 'output_file': |
153 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle', | 146 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle', |
154 ], | 147 }, |
155 'action': [ | 148 'includes': ['../../bindings/scripts/global_objects.gypi'], |
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', | |
164 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle', | |
165 ], | |
166 'message': 'Computing global objects in modules', | |
167 }] | |
168 }, | 149 }, |
169 ################################################################################ | 150 ################################################################################ |
170 { | 151 { |
171 # Global constructors for global objects in modules (ServiceWorker) | 152 # Global constructors for global objects in modules (ServiceWorker) |
172 # but interfaces in core. | 153 # but interfaces in core. |
173 'target_name': 'modules_core_global_constructors_idls', | 154 'target_name': 'modules_core_global_constructors_idls', |
174 'type': 'none', | 155 'type': 'none', |
175 'dependencies': [ | 156 'dependencies': [ |
176 'modules_global_objects', | 157 'modules_global_objects', |
177 ], | 158 ], |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 '<(bindings_core_output_dir)/InterfacesInfoCoreIndividual.pickle', | 298 '<(bindings_core_output_dir)/InterfacesInfoCoreIndividual.pickle', |
318 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', | 299 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', |
319 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', | 300 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', |
320 ], | 301 ], |
321 'message': 'Computing overall global information about IDL files', | 302 'message': 'Computing overall global information about IDL files', |
322 }] | 303 }] |
323 }, | 304 }, |
324 ################################################################################ | 305 ################################################################################ |
325 ], # targets | 306 ], # targets |
326 } | 307 } |
OLD | NEW |