You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
400 B

  1. const Builder = @import("std").build.Builder;
  2. pub fn build(b: *Builder) void {
  3. const mode = b.standardReleaseOptions();
  4. const exe = b.addExecutable("oida", "src/main.zig");
  5. exe.setBuildMode(mode);
  6. exe.install();
  7. const run_cmd = exe.run();
  8. run_cmd.step.dependOn(b.getInstallStep());
  9. const run_step = b.step("run", "Run the app");
  10. run_step.dependOn(&run_cmd.step);
  11. }