moving volk to a deps fetch

This commit is contained in:
2025-11-05 20:51:31 +01:00
parent 8994e19c98
commit 72e24bf954
5 changed files with 10 additions and 7083 deletions

View File

@@ -68,6 +68,8 @@ pub fn build(b: *std.Build) void {
const test_step = b.step(b.fmt("test-{s}", .{impl.name}), b.fmt("Run lib{s} tests", .{impl.name}));
test_step.dependOn(&run_tests.step);
const volk = b.lazyDependency("volk", .{}) orelse continue;
const c_test_exe = b.addExecutable(.{
.name = b.fmt("c_test_vulkan_{s}", .{impl.name}),
.root_module = b.createModule(.{
@@ -77,6 +79,8 @@ pub fn build(b: *std.Build) void {
}),
});
c_test_exe.root_module.addSystemIncludePath(volk.path(""));
c_test_exe.root_module.addCSourceFile(.{
.file = b.path("test/c/main.c"),
.flags = &.{b.fmt("-DLIBVK=\"{s}\"", .{lib.name})},