gpu-dawn: use source scanning for tint_sem_src target

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-02-13 01:12:40 -07:00 committed by Stephen Gutekanst
parent 37ab51bec1
commit db37bfe93b
3 changed files with 8 additions and 47 deletions

View file

@ -861,12 +861,14 @@ fn buildLibTint(b: *Builder, step: *std.build.LibExeObjStep, options: Options) *
}
// libtint_sem_src
sources.appendSlice(&.{
thisDir() ++ "/src/dawn/sources/tint_sem_src.cc",
thisDir() ++ "/src/dawn/sources/tint_sem_src_2.cc",
thisDir() ++ "/libs/dawn/third_party/tint/src/sem/node.cc",
thisDir() ++ "/libs/dawn/third_party/tint/src/sem/texture_type.cc",
}) catch unreachable;
scanSources(
b,
&sources,
"libs/dawn/third_party/tint/src/sem/",
&.{ ".cpp", ".c", ".cc" },
&.{},
&.{"test", "benchmark"},
) catch unreachable;
// libtint_spv_reader_src
scanSources(