Create new src/tests BUILD.gn file.

Move all test-related build stuff into its own BUILD.gn file. This
required moving the dawn_generator template into a common file, so it
can be called by both BUILD.gn and src/tests/BUILD.gn.

Bug: dawn:61

Change-Id: Icaa459270bdaa60306e053b93835812e70dba6f5
Reviewed-on: https://dawn-review.googlesource.com/c/2940
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: Stephen White <senorblanco@chromium.org>
This commit is contained in:
Stephen White
2018-12-05 22:42:23 +00:00
parent e2f948469c
commit 0a7ddd43d7
4 changed files with 275 additions and 221 deletions

View File

@@ -24,6 +24,10 @@ if (!defined(dawn_standalone)) {
dawn_standalone = false
}
if (!defined(dawn_root)) {
dawn_root = get_path_info("..", "abspath")
}
if (!defined(dawn_jinja2_dir)) {
dawn_jinja2_dir = "//third_party/jinja2"
}