Update build script
This commit is contained in:
parent
5a913ef0f8
commit
14397b05e3
11
build.zig
11
build.zig
|
@ -12,7 +12,6 @@ pub fn build(builder: *std.build.Builder) void {
|
||||||
{
|
{
|
||||||
const exe = builder.addExecutable("ona", "./src/ona/main.zig");
|
const exe = builder.addExecutable("ona", "./src/ona/main.zig");
|
||||||
|
|
||||||
exe.addPackage(projectPkg("oar", &.{core_pkg}));
|
|
||||||
exe.addPackage(core_pkg);
|
exe.addPackage(core_pkg);
|
||||||
exe.setTarget(target);
|
exe.setTarget(target);
|
||||||
exe.setBuildMode(mode);
|
exe.setBuildMode(mode);
|
||||||
|
@ -22,16 +21,6 @@ pub fn build(builder: *std.build.Builder) void {
|
||||||
exe.linkLibC();
|
exe.linkLibC();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Oar executable.
|
|
||||||
{
|
|
||||||
const exe = builder.addExecutable("oar", "./src/oar/main.zig");
|
|
||||||
|
|
||||||
exe.addPackage(core_pkg);
|
|
||||||
exe.setTarget(target);
|
|
||||||
exe.setBuildMode(mode);
|
|
||||||
exe.install();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Tests executable.
|
// Tests executable.
|
||||||
{
|
{
|
||||||
const tests = builder.addTestExe("test", "./src/tests.zig");
|
const tests = builder.addTestExe("test", "./src/tests.zig");
|
||||||
|
|
Loading…
Reference in New Issue