Get `gn gen --check` actually working in repo

Fixes an issue in the .gn that allows the check to run as expected. As
well as fixes issues discovered from running the check.

BUG=tint:735

Change-Id: I48cd01339d06132933c3da4f0e9d45cdbaff3b55
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/48700
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Auto-Submit: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Ryan Harrison 2021-04-21 19:05:14 +00:00 committed by Commit Bot service account
parent 536e54bca5
commit 3980c4eb49
2 changed files with 7 additions and 2 deletions

2
.gn
View File

@ -14,4 +14,4 @@
buildconfig = "//build/config/BUILDCONFIG.gn"
check_targets = [ "//:*" ]
check_targets = [ "//*" ]

View File

@ -88,7 +88,12 @@ source_set("tint_unittests_main") {
sources = [ "//gpu/tint_unittests_main.cc" ]
} else {
sources = [ "../src/test_main.cc" ]
deps += [ "${tint_root_dir}/src:libtint" ]
deps += [
":tint_test_helpers",
":tint_unittests_hlsl_writer_src",
":tint_unittests_msl_writer_src",
"${tint_root_dir}/src:libtint",
]
}
}