impriving architecture

This commit is contained in:
2025-11-02 00:34:45 +01:00
parent f95098cead
commit 7639c40074
12 changed files with 339 additions and 99 deletions

View File

@@ -21,6 +21,7 @@ pub fn build(b: *std.Build) void {
.root_source_file = b.path("src/vulkan/lib.zig"),
.target = target,
.optimize = optimize,
.link_libc = true,
});
const vulkan_headers = b.dependency("vulkan_headers", .{});
@@ -36,6 +37,7 @@ pub fn build(b: *std.Build) void {
const lib_mod = b.createModule(.{
.root_source_file = b.path(impl.root_source_file),
.target = target,
.link_libc = true,
.optimize = optimize,
.imports = &.{
.{ .name = "common", .module = common_mod },
@@ -72,6 +74,8 @@ pub fn build(b: *std.Build) void {
.flags = &.{b.fmt("-DLIBVK=\"{s}\"", .{lib.name})},
});
b.installArtifact(c_test_exe);
const run_c_test = b.addRunArtifact(c_test_exe);
const test_c_step = b.step(b.fmt("test-c-{s}", .{impl.name}), b.fmt("Run lib{s} C test", .{impl.name}));
test_c_step.dependOn(b.getInstallStep());