shaderexp: port to new API
This commit is contained in:
parent
218a6a5c08
commit
7c518f7bd6
2 changed files with 89 additions and 89 deletions
29
build.zig
29
build.zig
|
|
@ -59,19 +59,24 @@ pub fn build(b: *std.build.Builder) void {
|
|||
example_run_step.dependOn(&example_run_cmd.step);
|
||||
}
|
||||
|
||||
//const shaderexp_exe = b.addExecutable("shaderexp", "shaderexp/main.zig");
|
||||
//shaderexp_exe.setTarget(target);
|
||||
//shaderexp_exe.setBuildMode(mode);
|
||||
//shaderexp_exe.addPackage(pkg);
|
||||
//shaderexp_exe.addPackage(gpu.pkg);
|
||||
//shaderexp_exe.addPackage(glfw.pkg);
|
||||
//link(b, shaderexp_exe, options);
|
||||
//shaderexp_exe.install();
|
||||
const shaderexp_app = App.init(
|
||||
b,
|
||||
.{
|
||||
.name = "shaderexp",
|
||||
.src = "shaderexp/main.zig",
|
||||
.deps = &.{ glfw.pkg, gpu.pkg, pkg },
|
||||
},
|
||||
);
|
||||
const shaderexp_exe = shaderexp_app.step;
|
||||
shaderexp_exe.setTarget(target);
|
||||
shaderexp_exe.setBuildMode(mode);
|
||||
shaderexp_app.link(options);
|
||||
shaderexp_exe.install();
|
||||
|
||||
//const shaderexp_run_cmd = shaderexp_exe.run();
|
||||
//shaderexp_run_cmd.step.dependOn(b.getInstallStep());
|
||||
//const shaderexp_run_step = b.step("run-shaderexp", "Run shaderexp");
|
||||
//shaderexp_run_step.dependOn(&shaderexp_run_cmd.step);
|
||||
const shaderexp_run_cmd = shaderexp_exe.run();
|
||||
shaderexp_run_cmd.step.dependOn(b.getInstallStep());
|
||||
const shaderexp_run_step = b.step("run-shaderexp", "Run shaderexp");
|
||||
shaderexp_run_step.dependOn(&shaderexp_run_cmd.step);
|
||||
}
|
||||
|
||||
pub const Options = struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue