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

Side by Side Diff: Source/bindings/derived_sources.gyp

Issue 15801003: IDL parser rewrite in Python (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final (rebased). Created 7 years, 5 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 | « no previous file | Source/bindings/scripts/blink_idl_lexer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 ], 44 ],
45 'python_idl_files': [ 45 'python_idl_files': [
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': [
55 '<@(deprecated_perl_webcore_test_support_idl_files)',
56 '<@(python_webcore_test_support_idl_files)',
57 ],
54 58
55 'bindings_output_dir': '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings', 59 'bindings_output_dir': '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings',
56 'generated_global_constructors_idl_files': [ 60 'generated_global_constructors_idl_files': [
57 '<(SHARED_INTERMEDIATE_DIR)/WindowConstructors.idl', 61 '<(SHARED_INTERMEDIATE_DIR)/WindowConstructors.idl',
58 '<(SHARED_INTERMEDIATE_DIR)/WorkerGlobalScopeConstructors.idl', 62 '<(SHARED_INTERMEDIATE_DIR)/WorkerGlobalScopeConstructors.idl',
59 '<(SHARED_INTERMEDIATE_DIR)/SharedWorkerGlobalScopeConstructors.idl', 63 '<(SHARED_INTERMEDIATE_DIR)/SharedWorkerGlobalScopeConstructors.idl',
60 '<(SHARED_INTERMEDIATE_DIR)/DedicatedWorkerGlobalScopeConstructors.idl' , 64 '<(SHARED_INTERMEDIATE_DIR)/DedicatedWorkerGlobalScopeConstructors.idl' ,
61 ], 65 ],
62 66
63 'conditions': [ 67 'conditions': [
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 'sources': [ 251 'sources': [
248 '<@(python_idl_files)', 252 '<@(python_idl_files)',
249 '<@(python_webcore_test_support_idl_files)', 253 '<@(python_webcore_test_support_idl_files)',
250 ], 254 ],
251 'rules': [{ 255 'rules': [{
252 'rule_name': 'python_binding', 256 'rule_name': 'python_binding',
253 'extension': 'idl', 257 'extension': 'idl',
254 'msvs_external_rule': 1, 258 'msvs_external_rule': 1,
255 'inputs': [ 259 'inputs': [
256 'scripts/idl_compiler.py', 260 'scripts/idl_compiler.py',
261 '../../../ply/lex.py',
262 '../../../ply/yacc.py',
263 '../../../../tools/idl_parser/idl_lexer.py',
264 '../../../../tools/idl_parser/idl_node.py',
265 '../../../../tools/idl_parser/idl_parser.py',
abarth-chromium 2013/07/22 17:57:54 Consider using <(DEPTH) to find the top-level dire
Nils Barth (inactive) 2013/07/23 09:04:07 Thanks, that's much better! Posted CL fixing this:
266 'scripts/blink_idl_lexer.py',
267 'scripts/blink_idl_parser.py',
268 'scripts/code_generator_v8.py',
269 'scripts/idl_definitions.py',
270 'scripts/idl_definitions_builder.py',
257 'scripts/idl_reader.py', 271 'scripts/idl_reader.py',
272 'scripts/idl_validator.py',
258 'scripts/interface_dependency_resolver.py', 273 'scripts/interface_dependency_resolver.py',
259 'scripts/code_generator_v8.py',
260 'scripts/IDLAttributes.txt', 274 'scripts/IDLAttributes.txt',
261 # FIXME: If the dependency structure changes, we rebuild all files, 275 # FIXME: If the dependency structure changes, we rebuild all files,
262 # since we're not computing dependencies file-by-file in the build. 276 # since we're not computing dependencies file-by-file in the build.
263 '<(SHARED_INTERMEDIATE_DIR)/InterfaceDependencies.txt', 277 '<(SHARED_INTERMEDIATE_DIR)/InterfaceDependencies.txt',
264 # FIXME: Similarly, if any partial interface changes, rebuild 278 # FIXME: Similarly, if any partial interface changes, rebuild
265 # everything, since every IDL potentially depends on them, because 279 # everything, since every IDL potentially depends on them, because
266 # we're not computing dependencies file-by-file. 280 # we're not computing dependencies file-by-file.
267 '<!@pymod_do_main(list_idl_files_with_partial_interface <@(perl_and_py thon_idl_files))', 281 '<!@pymod_do_main(list_idl_files_with_partial_interface <@(perl_and_py thon_idl_files))',
268 # Generated IDLs are all partial interfaces, hence everything 282 # Generated IDLs are all partial interfaces, hence everything
269 # potentially depends on them. 283 # potentially depends on them.
(...skipping 23 matching lines...) Expand all
293 'scripts/idl_compiler.py', 307 'scripts/idl_compiler.py',
294 '--output-dir', 308 '--output-dir',
295 '<(bindings_output_dir)', 309 '<(bindings_output_dir)',
296 '--idl-attributes-file', 310 '--idl-attributes-file',
297 'scripts/IDLAttributes.txt', 311 'scripts/IDLAttributes.txt',
298 '<@(generator_include_dirs)', 312 '<@(generator_include_dirs)',
299 '<@(extra_blink_generator_include_dirs)', 313 '<@(extra_blink_generator_include_dirs)',
300 '--interface-dependencies-file', 314 '--interface-dependencies-file',
301 '<(SHARED_INTERMEDIATE_DIR)/InterfaceDependencies.txt', 315 '<(SHARED_INTERMEDIATE_DIR)/InterfaceDependencies.txt',
302 '--additional-idl-files', 316 '--additional-idl-files',
303 '<(python_webcore_test_support_idl_files)', 317 '<(webcore_test_support_idl_files)',
304 '<@(write_file_only_if_changed)', 318 '<@(write_file_only_if_changed)',
305 '<(RULE_INPUT_PATH)', 319 '<(RULE_INPUT_PATH)',
306 ], 320 ],
307 'message': 'Generating binding from <(RULE_INPUT_PATH)', 321 'message': 'Generating binding from <(RULE_INPUT_PATH)',
308 }], 322 }],
309 }, 323 },
310 { 324 {
311 'target_name': 'bindings_derived_sources', 325 'target_name': 'bindings_derived_sources',
312 'type': 'none', 326 'type': 'none',
313 'dependencies': [ 327 'dependencies': [
(...skipping 15 matching lines...) Expand all
329 '../core/scripts/action_derivedsourcesallinone.py', 343 '../core/scripts/action_derivedsourcesallinone.py',
330 '<(SHARED_INTERMEDIATE_DIR)/InterfaceDependencies.txt', 344 '<(SHARED_INTERMEDIATE_DIR)/InterfaceDependencies.txt',
331 '--', 345 '--',
332 '<@(derived_sources_aggregate_files)', 346 '<@(derived_sources_aggregate_files)',
333 ], 347 ],
334 'message': 'Generating bindings derived sources', 348 'message': 'Generating bindings derived sources',
335 }], 349 }],
336 }, 350 },
337 ], 351 ],
338 } 352 }
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/scripts/blink_idl_lexer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698