Skip to content

Commit

Permalink
remove example build logic
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
  • Loading branch information
slimsag committed Mar 9, 2024
1 parent 2746739 commit 58a2220
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,4 @@ pub fn build(b: *std.Build) void {

const test_step = b.step("test", "Run library tests");
test_step.dependOn(&b.addRunArtifact(main_tests).step);

const example = b.addExecutable(.{
.name = "example-play",
.root_source_file = .{ .path = "examples/play.zig" },
.target = target,
.optimize = optimize,
});
example.root_module.addImport("mach-opus", module);
b.installArtifact(example);

const example_run_cmd = b.addRunArtifact(example);
example_run_cmd.step.dependOn(b.getInstallStep());

const example_run_step = b.step("run-example", "Run example");
example_run_step.dependOn(&example_run_cmd.step);
}

0 comments on commit 58a2220

Please sign in to comment.