gpu-dawn: use source scanning for spvtools_val target

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-02-13 01:30:21 -07:00 committed by Stephen Gutekanst
parent 3368fa9da0
commit 9b57f73319
2 changed files with 8 additions and 41 deletions

View file

@ -997,7 +997,14 @@ fn buildLibSPIRVTools(b: *Builder, step: *std.build.LibExeObjStep, options: Opti
) catch unreachable;
// spvtools_val
sources.append(thisDir() ++ "/src/dawn/sources/spirv_tools_val.cpp") catch unreachable;
scanSources(
b,
&sources,
"libs/dawn/third_party/vulkan-deps/spirv-tools/src/source/val/",
&.{ ".cpp", ".c", ".cc" },
&.{},
&.{ "test", "benchmark" },
) catch unreachable;
// spvtools_opt
sources.appendSlice(&.{