OLD | NEW |
---|---|
1 # | 1 # |
2 # Copyright (C) 2013 Google Inc. All rights reserved. | 2 # Copyright (C) 2013 Google Inc. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 '<@(python_core_idl_files)', | 46 '<@(python_core_idl_files)', |
47 '<@(python_modules_idl_files)', | 47 '<@(python_modules_idl_files)', |
48 '<@(python_svg_idl_files)', | 48 '<@(python_svg_idl_files)', |
49 ], | 49 ], |
50 'perl_and_python_idl_files': [ | 50 'perl_and_python_idl_files': [ |
51 '<@(deprecated_perl_idl_files)', | 51 '<@(deprecated_perl_idl_files)', |
52 '<@(python_idl_files)', | 52 '<@(python_idl_files)', |
53 ], | 53 ], |
54 'webcore_test_support_idl_files': [ | 54 'webcore_test_support_idl_files': [ |
55 '<@(deprecated_perl_webcore_test_support_idl_files)', | 55 '<@(deprecated_perl_webcore_test_support_idl_files)', |
56 '<@(deprecated_perl_generated_webcore_test_support_idl_files)', | |
56 '<@(python_webcore_test_support_idl_files)', | 57 '<@(python_webcore_test_support_idl_files)', |
57 ], | 58 ], |
59 'test_support_perl_and_python_idl_files': [ | |
60 '<@(deprecated_perl_webcore_test_support_idl_files)', | |
61 '<@(python_webcore_test_support_idl_files)', | |
62 ], | |
63 'deprecated_perl_bindings_test_support_idl_files': [ | |
64 '<@(deprecated_perl_webcore_test_support_idl_files)', | |
65 '<@(deprecated_perl_generated_webcore_test_support_idl_files)', | |
66 ], | |
58 'compiler_module_files': [ | 67 'compiler_module_files': [ |
59 'scripts/idl_compiler.py', | 68 'scripts/idl_compiler.py', |
60 '<(DEPTH)/third_party/ply/lex.py', | 69 '<(DEPTH)/third_party/ply/lex.py', |
61 '<(DEPTH)/third_party/ply/yacc.py', | 70 '<(DEPTH)/third_party/ply/yacc.py', |
62 '<(DEPTH)/tools/idl_parser/idl_lexer.py', | 71 '<(DEPTH)/tools/idl_parser/idl_lexer.py', |
63 '<(DEPTH)/tools/idl_parser/idl_node.py', | 72 '<(DEPTH)/tools/idl_parser/idl_node.py', |
64 '<(DEPTH)/tools/idl_parser/idl_parser.py', | 73 '<(DEPTH)/tools/idl_parser/idl_parser.py', |
65 'scripts/blink_idl_lexer.py', | 74 'scripts/blink_idl_lexer.py', |
66 'scripts/blink_idl_parser.py', | 75 'scripts/blink_idl_parser.py', |
67 'scripts/code_generator_v8.py', | 76 'scripts/code_generator_v8.py', |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
144 | 153 |
145 'targets': [{ | 154 'targets': [{ |
146 'target_name': 'interface_dependencies', | 155 'target_name': 'interface_dependencies', |
147 'type': 'none', | 156 'type': 'none', |
148 'actions': [{ | 157 'actions': [{ |
149 'action_name': 'compute_interface_dependencies', | 158 'action_name': 'compute_interface_dependencies', |
150 'variables': { | 159 'variables': { |
151 # Write sources into a file, so that the action command line won't | 160 # Write sources into a file, so that the action command line won't |
152 # exceed OS limits. | 161 # exceed OS limits. |
153 'idl_files_list': '<|(idl_files_list.tmp <@(perl_and_python_idl_files))' , | 162 'idl_files_list': '<|(idl_files_list.tmp <@(perl_and_python_idl_files))' , |
163 'test_support_idl_files_list': '<|(test_support_idl_files_list.tmp <@(te st_support_perl_and_python_idl_files))', | |
154 }, | 164 }, |
155 'inputs': [ | 165 'inputs': [ |
156 'scripts/compute_dependencies.py', | 166 'scripts/compute_dependencies.py', |
157 '<(idl_files_list)', | 167 '<(idl_files_list)', |
158 '<!@(cat <(idl_files_list))', | 168 '<!@(cat <(idl_files_list))', |
169 '<(test_support_idl_files_list)', | |
170 '<!@(cat <(test_support_idl_files_list))', | |
159 ], | 171 ], |
160 'outputs': [ | 172 'outputs': [ |
161 '<(SHARED_INTERMEDIATE_DIR)/blink/InterfaceDependencies.txt', | 173 '<(SHARED_INTERMEDIATE_DIR)/blink/InterfaceDependencies.txt', |
174 '<(SHARED_INTERMEDIATE_DIR)/blink/TestSupportInterfaceDependencies.txt' , | |
162 '<@(generated_global_constructors_idl_files)', | 175 '<@(generated_global_constructors_idl_files)', |
163 '<(SHARED_INTERMEDIATE_DIR)/blink/EventInterfaces.in', | 176 '<(SHARED_INTERMEDIATE_DIR)/blink/EventInterfaces.in', |
164 ], | 177 ], |
165 'msvs_cygwin_shell': 0, | 178 'msvs_cygwin_shell': 0, |
166 'action': [ | 179 'action': [ |
167 'python', | 180 'python', |
168 'scripts/compute_dependencies.py', | 181 'scripts/compute_dependencies.py', |
169 '--idl-files-list', | 182 '--idl-files-list', |
170 '<(idl_files_list)', | 183 '<(idl_files_list)', |
171 '--interface-dependencies-file', | 184 '--interface-dependencies-file', |
172 '<(SHARED_INTERMEDIATE_DIR)/blink/InterfaceDependencies.txt', | 185 '<(SHARED_INTERMEDIATE_DIR)/blink/InterfaceDependencies.txt', |
186 '--test-support-idl-files-list', | |
do-not-use
2013/09/09 07:42:09
Nils or haraken likely know better at this point w
Nils Barth (inactive)
2013/09/10 09:52:10
Agreed, that's much cleaner (to call twice)!
(Seco
| |
187 '<(test_support_idl_files_list)', | |
188 '--test-support-interface-dependencies-file', | |
189 '<(SHARED_INTERMEDIATE_DIR)/blink/TestSupportInterfaceDependencies.txt' , | |
173 '--window-constructors-file', | 190 '--window-constructors-file', |
174 '<(SHARED_INTERMEDIATE_DIR)/blink/WindowConstructors.idl', | 191 '<(SHARED_INTERMEDIATE_DIR)/blink/WindowConstructors.idl', |
175 '--workerglobalscope-constructors-file', | 192 '--workerglobalscope-constructors-file', |
176 '<(SHARED_INTERMEDIATE_DIR)/blink/WorkerGlobalScopeConstructors.idl', | 193 '<(SHARED_INTERMEDIATE_DIR)/blink/WorkerGlobalScopeConstructors.idl', |
177 '--sharedworkerglobalscope-constructors-file', | 194 '--sharedworkerglobalscope-constructors-file', |
178 '<(SHARED_INTERMEDIATE_DIR)/blink/SharedWorkerGlobalScopeConstructors.i dl', | 195 '<(SHARED_INTERMEDIATE_DIR)/blink/SharedWorkerGlobalScopeConstructors.i dl', |
179 '--dedicatedworkerglobalscope-constructors-file', | 196 '--dedicatedworkerglobalscope-constructors-file', |
180 '<(SHARED_INTERMEDIATE_DIR)/blink/DedicatedWorkerGlobalScopeConstructor s.idl', | 197 '<(SHARED_INTERMEDIATE_DIR)/blink/DedicatedWorkerGlobalScopeConstructor s.idl', |
181 '--event-names-file', | 198 '--event-names-file', |
182 '<(SHARED_INTERMEDIATE_DIR)/blink/EventInterfaces.in', | 199 '<(SHARED_INTERMEDIATE_DIR)/blink/EventInterfaces.in', |
183 '<@(write_file_only_if_changed)', | 200 '<@(write_file_only_if_changed)', |
184 ], | 201 ], |
185 'message': 'Resolving partial interfaces dependencies in all IDL files', | 202 'message': 'Resolving partial interfaces dependencies in all IDL files', |
186 }] | 203 }] |
187 }, | 204 }, |
188 { | 205 { |
189 'target_name': 'deprecated_perl_bindings_sources', | 206 'target_name': 'deprecated_perl_bindings_sources', |
190 'type': 'none', | 207 'type': 'none', |
191 # The 'binding' rule generates .h files, so mark as hard_dependency, per: | 208 # The 'binding' rule generates .h files, so mark as hard_dependency, per: |
192 # https://code.google.com/p/gyp/wiki/InputFormatReference#Linking_Dependen cies | 209 # https://code.google.com/p/gyp/wiki/InputFormatReference#Linking_Dependen cies |
193 'hard_dependency': 1, | 210 'hard_dependency': 1, |
194 'dependencies': [ | 211 'dependencies': [ |
195 'interface_dependencies', | 212 'interface_dependencies', |
196 '../core/core_derived_sources.gyp:generate_test_support_idls', | 213 '../core/core_derived_sources.gyp:generate_test_support_idls', |
197 ], | 214 ], |
198 'sources': [ | 215 'sources': [ |
199 '<@(deprecated_perl_idl_files)', | 216 '<@(deprecated_perl_idl_files)', |
200 '<@(deprecated_perl_webcore_test_support_idl_files)', | 217 '<@(deprecated_perl_bindings_test_support_idl_files)', |
201 ], | 218 ], |
202 'rules': [{ | 219 'rules': [{ |
203 'rule_name': 'deprecated_perl_binding', | 220 'rule_name': 'deprecated_perl_binding', |
204 'extension': 'idl', | 221 'extension': 'idl', |
205 'msvs_external_rule': 1, | 222 'msvs_external_rule': 1, |
206 'inputs': [ | 223 'inputs': [ |
207 'scripts/deprecated_generate_bindings.pl', | 224 'scripts/deprecated_generate_bindings.pl', |
208 'scripts/deprecated_code_generator_v8.pm', | 225 'scripts/deprecated_code_generator_v8.pm', |
209 'scripts/deprecated_idl_parser.pm', | 226 'scripts/deprecated_idl_parser.pm', |
210 'scripts/deprecated_idl_serializer.pm', | 227 'scripts/deprecated_idl_serializer.pm', |
211 '../core/scripts/preprocessor.pm', | 228 '../core/scripts/preprocessor.pm', |
212 'scripts/IDLAttributes.txt', | 229 'scripts/IDLAttributes.txt', |
213 # FIXME: If the dependency structure changes, we rebuild all files, | 230 # FIXME: If the dependency structure changes, we rebuild all files, |
214 # since we're not computing dependencies file-by-file in the build. | 231 # since we're not computing dependencies file-by-file in the build. |
215 '<(SHARED_INTERMEDIATE_DIR)/blink/InterfaceDependencies.txt', | 232 '<(SHARED_INTERMEDIATE_DIR)/blink/InterfaceDependencies.txt', |
233 '<(SHARED_INTERMEDIATE_DIR)/blink/TestSupportInterfaceDependencies.txt ', | |
216 # FIXME: Similarly, if any partial interface changes, rebuild | 234 # FIXME: Similarly, if any partial interface changes, rebuild |
217 # everything, since every IDL potentially depends on them, because | 235 # everything, since every IDL potentially depends on them, because |
218 # we're not computing dependencies file-by-file. | 236 # we're not computing dependencies file-by-file. |
219 # | 237 # |
220 # If a new partial interface is added, need to regyp to update these | 238 # If a new partial interface is added, need to regyp to update these |
221 # dependencies, as these are computed statically at gyp runtime. | 239 # dependencies, as these are computed statically at gyp runtime. |
222 '<!@pymod_do_main(list_idl_files_with_partial_interface <@(perl_and_py thon_idl_files))', | 240 '<!@pymod_do_main(list_idl_files_with_partial_interface <@(perl_and_py thon_idl_files))', |
223 # Generated IDLs are all partial interfaces, hence everything | 241 # Generated IDLs are all partial interfaces, hence everything |
224 # potentially depends on them. | 242 # potentially depends on them. |
225 '<@(generated_global_constructors_idl_files)', | 243 '<@(generated_global_constructors_idl_files)', |
(...skipping 25 matching lines...) Expand all Loading... | |
251 '-I<(DEPTH)/third_party/JSON/out/lib/perl5', | 269 '-I<(DEPTH)/third_party/JSON/out/lib/perl5', |
252 'scripts/deprecated_generate_bindings.pl', | 270 'scripts/deprecated_generate_bindings.pl', |
253 '--outputDir', | 271 '--outputDir', |
254 '<(bindings_output_dir)', | 272 '<(bindings_output_dir)', |
255 '--idlAttributesFile', | 273 '--idlAttributesFile', |
256 'scripts/IDLAttributes.txt', | 274 'scripts/IDLAttributes.txt', |
257 '<@(generator_include_dirs)', | 275 '<@(generator_include_dirs)', |
258 '<@(extra_blink_generator_include_dirs)', | 276 '<@(extra_blink_generator_include_dirs)', |
259 '--interfaceDependenciesFile', | 277 '--interfaceDependenciesFile', |
260 '<(SHARED_INTERMEDIATE_DIR)/blink/InterfaceDependencies.txt', | 278 '<(SHARED_INTERMEDIATE_DIR)/blink/InterfaceDependencies.txt', |
279 '--testSupportInterfaceDependenciesFile', | |
do-not-use
2013/09/09 07:27:10
It is not clear to me yet why the test support IDL
Nils Barth (inactive)
2013/09/10 09:52:10
That's a good question -- it puzzled me at first t
| |
280 '<(SHARED_INTERMEDIATE_DIR)/blink/TestSupportInterfaceDependencies.txt ', | |
261 '--additionalIdlFiles', | 281 '--additionalIdlFiles', |
262 '<(deprecated_perl_webcore_test_support_idl_files)', | 282 '<(deprecated_perl_generated_webcore_test_support_idl_files)', |
263 '<@(preprocessor)', | 283 '<@(preprocessor)', |
264 '<@(write_file_only_if_changed)', | 284 '<@(write_file_only_if_changed)', |
265 '<(RULE_INPUT_PATH)', | 285 '<(RULE_INPUT_PATH)', |
266 ], | 286 ], |
267 'message': 'Generating binding from <(RULE_INPUT_PATH)', | 287 'message': 'Generating binding from <(RULE_INPUT_PATH)', |
268 }], | 288 }], |
269 }, | 289 }, |
270 { | 290 { |
271 'target_name': 'python_bindings_sources', | 291 'target_name': 'python_bindings_sources', |
272 'type': 'none', | 292 'type': 'none', |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
360 '../core/scripts/action_derivedsourcesallinone.py', | 380 '../core/scripts/action_derivedsourcesallinone.py', |
361 '<(SHARED_INTERMEDIATE_DIR)/blink/InterfaceDependencies.txt', | 381 '<(SHARED_INTERMEDIATE_DIR)/blink/InterfaceDependencies.txt', |
362 '--', | 382 '--', |
363 '<@(derived_sources_aggregate_files)', | 383 '<@(derived_sources_aggregate_files)', |
364 ], | 384 ], |
365 'message': 'Generating bindings derived sources', | 385 'message': 'Generating bindings derived sources', |
366 }], | 386 }], |
367 }, | 387 }, |
368 ], | 388 ], |
369 } | 389 } |
OLD | NEW |