From 3980c4eb4936de641b28fbfb588d627d3bbd279f Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Wed, 21 Apr 2021 19:05:14 +0000 Subject: [PATCH] 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 Commit-Queue: Corentin Wallez Auto-Submit: Ryan Harrison Reviewed-by: Ben Clayton Reviewed-by: Corentin Wallez --- .gn | 2 +- test/BUILD.gn | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gn b/.gn index 9fa5a3504c..c685bfe5fd 100644 --- a/.gn +++ b/.gn @@ -14,4 +14,4 @@ buildconfig = "//build/config/BUILDCONFIG.gn" -check_targets = [ "//:*" ] +check_targets = [ "//*" ] diff --git a/test/BUILD.gn b/test/BUILD.gn index ae2fe552a1..106056e08f 100644 --- a/test/BUILD.gn +++ b/test/BUILD.gn @@ -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", + ] } }