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; sources.append(thisDir() ++ "/src/dawn/sources/tint_spv_reader_src.cc") catch unreachable;
// libtint_spv_writer_src // 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 // TODO(build-system): make optional
// libtint_wgsl_reader_src // libtint_wgsl_reader_src

View file

@ -1,6 +0,0 @@
#include "third_party/tint/src/writer/spirv/binary_writer.cc"
#include "third_party/tint/src/writer/spirv/builder.cc"
#include "third_party/tint/src/writer/spirv/function.cc"
#include "third_party/tint/src/writer/spirv/generator.cc"
#include "third_party/tint/src/writer/spirv/instruction.cc"
#include "third_party/tint/src/writer/spirv/operand.cc"