dawn-cmake/generator
David 'Digit' Turner 5dee3e826b [generator_lib]: Make generator_lib.py easier to reuse.
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>
2019-06-24 14:31:06 +00:00
..
templates Remove glad and replace it with our own GL header 2019-06-17 09:17:29 +00:00
dawn_generator.gni [generator_lib]: Make generator_lib.py easier to reuse. 2019-06-24 14:31:06 +00:00
dawn_json_generator.py Generators: main.py is now dawn_json_generator.py 2019-06-11 18:03:05 +00:00
extract_json.py BUILD.gn: Remove use of exec_script 2018-08-20 07:24:55 -04:00
generator_lib.gni [generator_lib]: Make generator_lib.py easier to reuse. 2019-06-24 14:31:06 +00:00
generator_lib.py [generator_lib]: Make generator_lib.py easier to reuse. 2019-06-24 14:31:06 +00:00
opengl_loader_generator.py Remove glad and replace it with our own GL header 2019-06-17 09:17:29 +00:00