Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading