There are a number of small style cleanups and simplifications in this series, but the main changes are: - use a mako template to generate the header and code rather than prints - be python 3.x ready (the goal isn't to write python 3 code, but to write code that is easy to port or hybridize) - generate the header and the code in one go
I've put emphasis on the readability of the template rather than the readability of the output code, it's relatively easy to pipe the code through 'indent' to make it more readable. This is available at my github: https://github.com/dcbaker/mesa submit/anv_entrypoints-cleanup Notable changes in Version 2: - Pass XML file via an argument - add flag to control output directory - Attempt to update android makefiles Notable changes in Version 3: - Fix "do not edit" message to have proper file name - More Android.mk changes - Don't write both files at the same time - Provide the file name to be written to as an argument Notable changes in Version 4: - Do write both files at the same time, in a separate patch - Hopefully fix the build systems for real Dylan Baker (16): anv: anv_entrypoints_gen.py: use a main function anv: Use python style in anv_entrypoints_gen.py anv: make constants capitals in anv_entrypoints_gen.py anv: don't pass xmlfile via stdin anv_entrypoints_gen.py anv: split main into two functions in anv_entrypoints_gen.py anv: Update "do not edit" comments with proper filename anv: convert header generation in anv_entrypoints_gen.py to mako anv: convert C generation to template in anv_entrypoints_gen.py anv: anv_entrypoints_gen.py: directly write files instead of piping anv: Generate anv_entrypoints header and code in one command anv: anv-entrypoints_gen.py: rename hash to cal_hash. anv: anv_entrypoints_gen.py: use reduce function. anv: use dict.get in anv_entrypoints_gen.py anv: don't use Element.get in anv_entrypoints_gen.py anv: use cElementTree in anv_entrypoints_gen.py anv: Remove dead prototype from entrypoints src/intel/vulkan/Android.mk | 8 +- src/intel/vulkan/Makefile.am | 10 +- src/intel/vulkan/anv_entrypoints_gen.py | 607 ++++++++++++------------- 3 files changed, 321 insertions(+), 304 deletions(-) base-commit: 69063d05612439ff8e60deda5b9847464d5b5873 -- git-series 0.9.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev