DescriptionTo transition to bindings generation in Python rather than Perl,
we're adding a parallel flow in GYP, and moving IDL files one-by-one
as the generator is able to handle them.
This CL contains the necessary build changes and basic Python scripts,
but does not include the parser or code generator, which will come later.
The build generates exactly the same bindings files before and after this CL.
In detail, this CL:
* Splits the existing GYP target 'bindings_sources' in two:
- 'perl_bindings_sources' (rename existing),
- 'python_bindings_sources' (new one, just copy-paste Perl one and change script),
...and splits the various 'idl_files' lists into 'perl_...' and 'python_...',
so we can just move files one-by-one from the Perl list to the Python list.
* Adds generate_bindings.py, the main Python bindings build script
Almost complete, just does not call the parser or the real code generator.
* Adds a stub build_ir.py
This will eventually be the main AST to IR converter, but for now just does
dependency resolution and raises an IdlNotFoundError exception,
instructing generate_bindings.py to make dummy files.
* Adds a stub code_generator_v8.py, which only generates dummy files
(.cpp and .h only needed to provide 'outputs' for build).
* Moves the 37 IDL files that generate dummy files over to Python.
Also a few cleanups I noticed on the way (commented inline).
BUG=239771
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153878
Patch Set 1 #Patch Set 2 : Wording #Patch Set 3 : Tweak similarity #
Total comments: 38
Patch Set 4 : Revised #
Total comments: 16
Patch Set 5 : Rebase, fix run-bindings-test, remove supplemental #Patch Set 6 : Revised 2 #
Total comments: 10
Patch Set 7 : Revision 3 #Patch Set 8 : Revision 3 (tweak similarity) #
Total comments: 14
Patch Set 9 : Revision 4 (IdlDocument -> IdlDefinitions) #
Total comments: 5
Patch Set 10 : Final #Patch Set 11 : Rebased #Messages
Total messages: 21 (0 generated)
|