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 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 '../../build/scripts/scripts.gypi', | 11 # ../.. == Source |
| 12 '../bindings.gypi', | 12 '../../bindings/bindings.gypi', |
|
haraken
2014/06/03 15:31:10
FIXME: remove this?
| |
| 13 '../core/core.gypi', | 13 '../../bindings/core/core.gypi', |
| 14 '../scripts/scripts.gypi', | 14 '../../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 | |
| 16 '../../modules/modules.gypi', | |
|
haraken
2014/06/03 15:31:10
Doesn't this GYP also depend on:
- ../../modules/
Nils Barth (inactive)
2014/06/04 03:36:31
No.
Variables are *expanded* on use;
includes are
| |
| 17 'generated.gypi', | |
| 15 'idl.gypi', | 18 'idl.gypi', |
| 16 'modules.gypi', | 19 'modules.gypi', |
| 17 ], | 20 ], |
| 18 | 21 |
| 19 'targets': [ | 22 'targets': [ |
| 20 ################################################################################ | 23 ################################################################################ |
| 21 { | 24 { |
| 22 'target_name': 'bindings_modules_generated', | 25 'target_name': 'modules_event_generated', |
| 23 'type': 'none', | 26 'type': 'none', |
| 24 'actions': [ | 27 'actions': [ |
| 25 { | 28 { |
| 26 'action_name': 'event_interfaces', | 29 'action_name': 'event_interfaces', |
| 27 'variables': { | 30 'variables': { |
| 28 'event_idl_files': [ | 31 'event_idl_files': [ |
| 29 '<@(modules_event_idl_files)', | 32 '<@(modules_event_idl_files)', |
| 30 ], | 33 ], |
| 31 'event_idl_files_list': | 34 'event_idl_files_list': |
| 32 '<|(event_idl_files_list.tmp <@(event_idl_files))', | 35 '<|(event_idl_files_list.tmp <@(event_idl_files))', |
| 33 }, | 36 }, |
| 34 'inputs': [ | 37 'inputs': [ |
| 35 '<(bindings_scripts_dir)/generate_event_interfaces.py', | 38 '<(bindings_scripts_dir)/generate_event_interfaces.py', |
| 36 '<(bindings_scripts_dir)/utilities.py', | 39 '<(bindings_scripts_dir)/utilities.py', |
| 37 '<(event_idl_files_list)', | 40 '<(event_idl_files_list)', |
| 38 '<@(event_idl_files)', | 41 '<@(event_idl_files)', |
| 39 ], | 42 ], |
| 40 'outputs': [ | 43 'outputs': [ |
| 41 '<(blink_output_dir)/EventModulesInterfaces.in', | 44 # FIXME: should output to bindings_modules_output_dir http://crbug.co m/358074 |
| 45 '<(SHARED_INTERMEDIATE_DIR)/blink/EventModulesInterfaces.in', | |
| 42 ], | 46 ], |
| 43 'action': [ | 47 'action': [ |
| 44 'python', | 48 'python', |
| 45 '<(bindings_scripts_dir)/generate_event_interfaces.py', | 49 '<(bindings_scripts_dir)/generate_event_interfaces.py', |
| 46 '--event-idl-files-list', | 50 '--event-idl-files-list', |
| 47 '<(event_idl_files_list)', | 51 '<(event_idl_files_list)', |
| 48 '--event-interfaces-file', | 52 '--event-interfaces-file', |
| 49 '<(blink_output_dir)/EventModulesInterfaces.in', | 53 '<(SHARED_INTERMEDIATE_DIR)/blink/EventModulesInterfaces.in', |
| 50 '--write-file-only-if-changed', | 54 '--write-file-only-if-changed', |
| 51 '<(write_file_only_if_changed)', | 55 '<(write_file_only_if_changed)', |
| 52 '--suffix', | 56 '--suffix', |
| 53 'Modules', | 57 'Modules', |
| 54 ], | 58 ], |
| 55 }, | 59 }, |
| 56 { | 60 { |
| 57 'action_name': 'EventModulesFactory', | 61 'action_name': 'EventModulesFactory', |
| 58 'inputs': [ | 62 'inputs': [ |
| 59 '<@(make_event_factory_files)', | 63 '<@(make_event_factory_files)', |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 121 'action': [ | 125 'action': [ |
| 122 'python', | 126 'python', |
| 123 '../../build/scripts/make_names.py', | 127 '../../build/scripts/make_names.py', |
| 124 '../../modules/EventTargetModulesFactory.in', | 128 '../../modules/EventTargetModulesFactory.in', |
| 125 '--output_dir', | 129 '--output_dir', |
| 126 '<(SHARED_INTERMEDIATE_DIR)/blink', | 130 '<(SHARED_INTERMEDIATE_DIR)/blink', |
| 127 ], | 131 ], |
| 128 }, | 132 }, |
| 129 ], | 133 ], |
| 130 }, | 134 }, |
| 135 ################################################################################ | |
| 136 { | |
| 137 'target_name': 'modules_global_constructors_idls', | |
| 138 'type': 'none', | |
| 139 'dependencies': [ | |
| 140 # FIXME: should be modules_global_objects http://crbug.com/358074 | |
| 141 '../generated.gyp:global_objects', | |
| 142 ], | |
| 143 'actions': [{ | |
| 144 'action_name': 'generate_modules_global_constructors_idls', | |
| 145 'inputs': [ | |
| 146 '<(bindings_scripts_dir)/generate_global_constructors.py', | |
| 147 '<(bindings_scripts_dir)/utilities.py', | |
| 148 # Only includes main IDL files (exclude dependencies and testing, | |
| 149 # which should not appear on global objects). | |
| 150 '<(modules_idl_files_list)', | |
| 151 '<@(modules_idl_files)', | |
| 152 '<(bindings_output_dir)/GlobalObjects.pickle', | |
| 153 ], | |
| 154 'outputs': [ | |
| 155 '<@(modules_global_constructors_generated_idl_files)', | |
| 156 '<@(modules_global_constructors_generated_header_files)', | |
| 157 ], | |
| 158 'action': [ | |
| 159 'python', | |
| 160 '<(bindings_scripts_dir)/generate_global_constructors.py', | |
| 161 '--idl-files-list', | |
| 162 '<(modules_idl_files_list)', | |
| 163 '--global-objects-file', | |
| 164 '<(bindings_output_dir)/GlobalObjects.pickle', | |
| 165 '--write-file-only-if-changed', | |
| 166 '<(write_file_only_if_changed)', | |
| 167 '--', | |
| 168 'Window', | |
| 169 '<(blink_modules_output_dir)/WindowModulesConstructors.idl', | |
| 170 'SharedWorkerGlobalScope', | |
| 171 '<(blink_modules_output_dir)/SharedWorkerGlobalScopeModulesConstructors. idl', | |
| 172 'DedicatedWorkerGlobalScope', | |
| 173 '<(blink_modules_output_dir)/DedicatedWorkerGlobalScopeModulesConstructo rs.idl', | |
| 174 'ServiceWorkerGlobalScope', | |
| 175 '<(blink_modules_output_dir)/ServiceWorkerGlobalScopeModulesConstructors .idl', | |
| 176 ], | |
| 177 'message': | |
| 178 'Generating IDL files for constructors on global objects from modules', | |
| 179 }] | |
| 180 }, | |
| 181 ################################################################################ | |
| 131 { | 182 { |
| 132 'target_name': 'interfaces_info_individual_modules', | 183 'target_name': 'interfaces_info_individual_modules', |
| 133 'type': 'none', | 184 'type': 'none', |
| 134 'dependencies': [ | 185 'dependencies': [ |
| 135 # FIXME: should be modules_generated_idls | 186 'modules_global_constructors_idls', |
| 136 # http://crbug.com/358074 | |
| 137 '../generated.gyp:generated_idls', | |
| 138 ], | 187 ], |
| 139 'actions': [{ | 188 'actions': [{ |
| 140 'action_name': 'compute_interfaces_info_individual_modules', | 189 'action_name': 'compute_interfaces_info_individual_modules', |
| 141 'inputs': [ | 190 'inputs': [ |
| 142 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py', | 191 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py', |
| 143 '<(bindings_scripts_dir)/utilities.py', | 192 '<(bindings_scripts_dir)/utilities.py', |
| 144 '<(modules_static_idl_files_list)', | 193 '<(modules_static_idl_files_list)', |
| 145 '<@(modules_static_idl_files)', | 194 '<@(modules_static_idl_files)', |
| 146 # No generated files currently, will add with constructors | 195 '<@(modules_generated_idl_files)', |
| 147 # '<@(modules_generated_idl_files)', | |
| 148 ], | 196 ], |
| 149 'outputs': [ | 197 'outputs': [ |
| 150 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', | 198 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', |
| 151 ], | 199 ], |
| 152 'action': [ | 200 'action': [ |
| 153 'python', | 201 'python', |
| 154 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py', | 202 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py', |
| 155 '--component-dir', | 203 '--component-dir', |
| 156 'modules', | 204 'modules', |
| 157 '--idl-files-list', | 205 '--idl-files-list', |
| 158 '<(modules_static_idl_files_list)', | 206 '<(modules_static_idl_files_list)', |
| 159 '--interfaces-info-file', | 207 '--interfaces-info-file', |
| 160 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', | 208 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', |
| 161 '--write-file-only-if-changed', | 209 '--write-file-only-if-changed', |
| 162 '<(write_file_only_if_changed)', | 210 '<(write_file_only_if_changed)', |
| 163 # No generated files currently, will add with constructors | 211 '--', |
| 164 # '--', | |
| 165 # Generated files must be passed at command line | 212 # Generated files must be passed at command line |
| 166 # '<@(modules_generated_idl_files)', | 213 '<@(modules_generated_idl_files)', |
| 167 ], | 214 ], |
| 168 'message': 'Computing global information about individual IDL files', | 215 'message': 'Computing global information about individual IDL files', |
| 169 }] | 216 }] |
| 170 }, | 217 }, |
| 171 ################################################################################ | 218 ################################################################################ |
| 172 { | 219 { |
| 173 'target_name': 'interfaces_info', | 220 'target_name': 'interfaces_info', |
| 174 'type': 'none', | 221 'type': 'none', |
| 175 'dependencies': [ | 222 'dependencies': [ |
| 176 '../core/generated.gyp:interfaces_info_individual_core', | 223 '../core/generated.gyp:interfaces_info_individual_core', |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 195 '<(bindings_core_output_dir)/InterfacesInfoCoreIndividual.pickle', | 242 '<(bindings_core_output_dir)/InterfacesInfoCoreIndividual.pickle', |
| 196 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', | 243 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', |
| 197 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', | 244 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', |
| 198 ], | 245 ], |
| 199 'message': 'Computing overall global information about IDL files', | 246 'message': 'Computing overall global information about IDL files', |
| 200 }] | 247 }] |
| 201 }, | 248 }, |
| 202 ################################################################################ | 249 ################################################################################ |
| 203 ], # targets | 250 ], # targets |
| 204 } | 251 } |
| OLD | NEW |