gpu: add run-example build command
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
34ac711d2f
commit
890dd57296
1 changed files with 5 additions and 0 deletions
|
|
@ -31,4 +31,9 @@ pub fn build(b: *std.build.Builder) void {
|
|||
example.addPackagePath("glfw", "libs/mach-glfw/src/main.zig");
|
||||
glfw.link(b, example, .{});
|
||||
gpu_dawn.link(b, example, .{});
|
||||
|
||||
const example_run_cmd = example.run();
|
||||
example_run_cmd.step.dependOn(b.getInstallStep());
|
||||
const example_run_step = b.step("run-example", "Run the example");
|
||||
example_run_step.dependOn(&example_run_cmd.step);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue