gpu-dawn: use source scanning for tint_spv_reader target

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

View file

@ -869,7 +869,14 @@ fn buildLibTint(b: *Builder, step: *std.build.LibExeObjStep, options: Options) *
}) catch unreachable;
// libtint_spv_reader_src
sources.append(thisDir() ++ "/src/dawn/sources/tint_spv_reader_src.cc") catch unreachable;
scanSources(
b,
&sources,
"libs/dawn/third_party/tint/src/reader/spirv/",
&.{ ".cpp", ".c", ".cc" },
&.{},
&.{"test", "benchmark"},
) catch unreachable;
// libtint_spv_writer_src
scanSources(

View file

@ -1,9 +0,0 @@
#include "third_party/tint/src/reader/spirv/construct.cc"
#include "third_party/tint/src/reader/spirv/entry_point_info.cc"
#include "third_party/tint/src/reader/spirv/enum_converter.cc"
#include "third_party/tint/src/reader/spirv/function.cc"
#include "third_party/tint/src/reader/spirv/namer.cc"
#include "third_party/tint/src/reader/spirv/parser.cc"
#include "third_party/tint/src/reader/spirv/parser_impl.cc"
#include "third_party/tint/src/reader/spirv/parser_type.cc"
#include "third_party/tint/src/reader/spirv/usage.cc"