5dee3e826b
This CL tries to make generator_lib.py easier to reuse in other projects (e.g. non Dawn-related), by doing the following: - Removing dawn-specific variables from the script and replacing them by path-relative defaults, or through additional command-line parameters (e.g. --root-dir can now be used to pass the root source directory for Python dependency computations). - Move project-agnostic processing from dawn_generator GN template into a new generator_lib:generator_lib_action template. The new generator_lib.gni file does not contain Dawn-specific settings and can be reused more easily outside of Dawn. + Replace --extra-python-path with --jinja2-path to be more explicit. + Add a few documentation comments in the Python scripts. R=cwallez@chromium.org Bug: NONE Change-Id: I3e89f4bc32bdb6a019d251473222c6ce5cdc5f9f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/8280 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org> |
||
---|---|---|
.. | ||
templates | ||
dawn_generator.gni | ||
dawn_json_generator.py | ||
extract_json.py | ||
generator_lib.gni | ||
generator_lib.py | ||
opengl_loader_generator.py |