2019-06-04 00:29:53 +00:00
|
|
|
const Builder = @import("std").build.Builder;
|
|
|
|
|
|
|
|
pub fn build(b: *Builder) void {
|
|
|
|
const mode = b.standardReleaseOptions();
|
2019-08-26 16:39:00 +00:00
|
|
|
const exe = b.addExecutable("vig", "src/main.zig");
|
2019-06-04 00:29:53 +00:00
|
|
|
exe.setBuildMode(mode);
|
|
|
|
|
|
|
|
const run_cmd = exe.run();
|
|
|
|
|
|
|
|
const run_step = b.step("run", "Run the app");
|
|
|
|
run_step.dependOn(&run_cmd.step);
|
|
|
|
|
|
|
|
b.default_step.dependOn(&exe.step);
|
|
|
|
b.installArtifact(exe);
|
|
|
|
}
|