moving volk to a deps fetch
This commit is contained in:
@@ -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})},
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
.url = "git+https://github.com/FObersteiner/zdt/?ref=v0.8.1#8b551a0a3e5ae64a32b5bad0e6a93119787b43af",
|
||||
.hash = "zdt-0.8.1-xr0_vAxUDwCJRDh9pcAS_mdZBIsvcGTtN-K8JJSWY4I6",
|
||||
},
|
||||
.volk = .{
|
||||
.url = "git+https://github.com/zeux/volk/#8f53cc717f50f142db4736f401d0b61956cd78f9",
|
||||
.hash = "N-V-__8AAPn9BwCBHnaxOC_rffCpFI7QRfi5qBCLvov9EYK3",
|
||||
.lazy = true,
|
||||
},
|
||||
},
|
||||
|
||||
.paths = .{
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#endif
|
||||
|
||||
#define VOLK_IMPLEMENTATION
|
||||
#include "volk.h"
|
||||
#include <volk.h>
|
||||
|
||||
#define CheckVk(x) \
|
||||
do { \
|
||||
|
||||
3899
test/c/volk.c
3899
test/c/volk.c
File diff suppressed because it is too large
Load Diff
3183
test/c/volk.h
3183
test/c/volk.h
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user