From 31854d24431b69ae27a89eab2d03bbb40fe9144d Mon Sep 17 00:00:00 2001 From: kcbanner Date: Tue, 29 Jul 2025 00:10:36 -0400 Subject: [PATCH] - Fixup deprecated build API usage - Update zpool dependency to latest --- build.zig | 16 ++++++++++------ build.zig.zon | 4 ++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/build.zig b/build.zig index 28fb619..18586dd 100644 --- a/build.zig +++ b/build.zig @@ -110,10 +110,12 @@ pub fn build(b: *std.Build) void { }, }); - const zdawn = b.addStaticLibrary(.{ + const zdawn = b.addLibrary(.{ .name = "zdawn", - .target = target, - .optimize = optimize, + .root_module = b.createModule(.{ + .target = target, + .optimize = optimize, + }), }); b.installArtifact(zdawn); @@ -141,9 +143,11 @@ pub fn build(b: *std.Build) void { const tests = b.addTest(.{ .name = "zgpu-tests", - .root_source_file = b.path("src/zgpu.zig"), - .target = target, - .optimize = optimize, + .root_module = b.createModule(.{ + .root_source_file = b.path("src/zgpu.zig"), + .target = target, + .optimize = optimize, + }), }); tests.addIncludePath(b.path("libs/dawn/include")); tests.linkLibrary(zdawn); diff --git a/build.zig.zon b/build.zig.zon index 27fede6..1d3bf42 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -13,8 +13,8 @@ }, .dependencies = .{ .zpool = .{ - .url = "https://github.com/zig-gamedev/zpool/archive/99a4c74ec26b1f327209782565b4adaf1c1d610f.tar.gz", - .hash = "zpool-0.11.0-dev-bG692eY7AQDLTkjTbgnbg_-qgjmxUCg8hNpN1kZRrIlW", + .url = "https://github.com/zig-gamedev/zpool/archive/7829cf02f78e8c39e19b802ccb47ed44037299c2.tar.gz", + .hash = "zpool-0.11.0-dev-bG692QtEAQCyqBnzSBJbJlY0-a_3v1YcjFTGmg0VBjOc", }, .system_sdk = .{ .url = "https://github.com/zig-gamedev/system_sdk/archive/c0dbf11cdc17da5904ea8a17eadc54dee26567ec.tar.gz",