Skip to content

Commit 96f3ce2

Browse files
authored
- Fixup deprecated build API usage (#18)
1 parent 028c724 commit 96f3ce2

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

build.zig

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,12 @@ pub fn build(b: *std.Build) void {
110110
},
111111
});
112112

113-
const zdawn = b.addStaticLibrary(.{
113+
const zdawn = b.addLibrary(.{
114114
.name = "zdawn",
115-
.target = target,
116-
.optimize = optimize,
115+
.root_module = b.createModule(.{
116+
.target = target,
117+
.optimize = optimize,
118+
}),
117119
});
118120
b.installArtifact(zdawn);
119121

@@ -141,9 +143,11 @@ pub fn build(b: *std.Build) void {
141143

142144
const tests = b.addTest(.{
143145
.name = "zgpu-tests",
144-
.root_source_file = b.path("src/zgpu.zig"),
145-
.target = target,
146-
.optimize = optimize,
146+
.root_module = b.createModule(.{
147+
.root_source_file = b.path("src/zgpu.zig"),
148+
.target = target,
149+
.optimize = optimize,
150+
}),
147151
});
148152
tests.addIncludePath(b.path("libs/dawn/include"));
149153
tests.linkLibrary(zdawn);

build.zig.zon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
},
1414
.dependencies = .{
1515
.zpool = .{
16-
.url = "https://github.com/zig-gamedev/zpool/archive/99a4c74ec26b1f327209782565b4adaf1c1d610f.tar.gz",
17-
.hash = "zpool-0.11.0-dev-bG692eY7AQDLTkjTbgnbg_-qgjmxUCg8hNpN1kZRrIlW",
16+
.url = "https://github.com/zig-gamedev/zpool/archive/7829cf02f78e8c39e19b802ccb47ed44037299c2.tar.gz",
17+
.hash = "zpool-0.11.0-dev-bG692QtEAQCyqBnzSBJbJlY0-a_3v1YcjFTGmg0VBjOc",
1818
},
1919
.system_sdk = .{
2020
.url = "https://github.com/zig-gamedev/system_sdk/archive/c0dbf11cdc17da5904ea8a17eadc54dee26567ec.tar.gz",

0 commit comments

Comments
 (0)