Generator,BUILD.gn: add optional python path, use it for Jinja2

This makes the Jinja2 (and MarkupSafe) installation hermetic by
adding it to the DEPS and making the code generator add them in the
first spot of the python path.
This commit is contained in:
Corentin Wallez
2018-08-13 17:47:44 +02:00
committed by Corentin Wallez
parent 682c44af92
commit 3bb0bb940e
5 changed files with 33 additions and 11 deletions

View File

@@ -43,3 +43,7 @@ if (!defined(dawn_shaderc_dir)) {
if (!defined(dawn_glfw_dir)) {
dawn_glfw_dir = "//third_party/glfw"
}
if (!defined(dawn_jinja2_dir)) {
dawn_jinja2_dir = "//third_party/jinja2"
}