gpu-dawn: use source scanning for tint_spv_writer target

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-02-13 01:08:51 -07:00 committed by Stephen Gutekanst
parent ce9608897b
commit 8d4b3059ba
2 changed files with 10 additions and 9 deletions

View file

@ -872,7 +872,14 @@ fn buildLibTint(b: *Builder, step: *std.build.LibExeObjStep, options: Options) *
sources.append(thisDir() ++ "/src/dawn/sources/tint_spv_reader_src.cc") catch unreachable;
// libtint_spv_writer_src
sources.append(thisDir() ++ "/src/dawn/sources/tint_spv_writer_src.cc") catch unreachable;
scanSources(
b,
&sources,
"libs/dawn/third_party/tint/src/writer/spirv/",
&.{ ".cpp", ".c", ".cc" },
&.{},
&.{"test", "benchmark"},
) catch unreachable;
// TODO(build-system): make optional
// libtint_wgsl_reader_src
@ -1081,9 +1088,9 @@ fn buildLibAbseilCpp(b: *Builder, step: *std.build.LibExeObjStep, options: Optio
b,
&sources,
"libs/dawn/" ++ dir,
&.{".cpp", ".c", ".cc"},
&.{ ".cpp", ".c", ".cc" },
&.{},
&.{"_test", "_testing", "benchmark"},
&.{ "_test", "_testing", "benchmark" },
) catch unreachable;
}
lib.addCSourceFiles(sources.items, flags.items);