Update build script to latest Zig version
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
946c67f154
commit
52278ab8e0
10
build.zig
10
build.zig
|
@ -38,17 +38,9 @@ pub fn build(builder: *std.Build) void {
|
||||||
ona_exe.addModule("ona", ona_module);
|
ona_exe.addModule("ona", ona_module);
|
||||||
ona_exe.addModule("kym", kym_module);
|
ona_exe.addModule("kym", kym_module);
|
||||||
|
|
||||||
ona_exe.install();
|
|
||||||
// ona_exe.addIncludeDir("./ext");
|
// ona_exe.addIncludeDir("./ext");
|
||||||
ona_exe.linkSystemLibrary("SDL2");
|
ona_exe.linkSystemLibrary("SDL2");
|
||||||
ona_exe.linkLibC();
|
ona_exe.linkLibC();
|
||||||
|
builder.installArtifact(ona_exe);
|
||||||
const run_cmd = ona_exe.run();
|
|
||||||
|
|
||||||
run_cmd.step.dependOn(builder.getInstallStep());
|
|
||||||
|
|
||||||
if (builder.args) |args| run_cmd.addArgs(args);
|
|
||||||
|
|
||||||
builder.step("run", "Run Ona application").dependOn(&run_cmd.step);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue