gpu: begin plotting how to wrap a WGPUInstance

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-06 19:34:39 -07:00 committed by Stephen Gutekanst
parent 5f7fe4d7e2
commit 5656d3252a
3 changed files with 9 additions and 14 deletions

View file

@ -7,12 +7,17 @@ pub fn build(b: *std.build.Builder) void {
const target = b.standardTargetOptions(.{});
const lib = b.addStaticLibrary("gpu", "src/main.zig");
lib.setTarget(target);
lib.setBuildMode(mode);
lib.install();
glfw.link(b, lib, .{});
gpu_dawn.link(b, lib, .{});
const main_tests = b.addTest("src/main.zig");
main_tests.setTarget(target);
main_tests.setBuildMode(mode);
glfw.link(b, main_tests, .{});
gpu_dawn.link(b, main_tests, .{});
const test_step = b.step("test", "Run library tests");
test_step.dependOn(&main_tests.step);