build adjustment (wip)
This commit is contained in:
@@ -15,10 +15,10 @@ pub fn build(b: *std.Build) void {
|
|||||||
const target = b.standardTargetOptions(.{});
|
const target = b.standardTargetOptions(.{});
|
||||||
const optimize = b.standardOptimizeOption(.{});
|
const optimize = b.standardOptimizeOption(.{});
|
||||||
|
|
||||||
const zomt = b.dependency("omt", .{
|
const zomt = b.dependency("zomt", .{
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
}).module("zomt");
|
||||||
|
|
||||||
const exe = b.addExecutable((.{
|
const exe = b.addExecutable((.{
|
||||||
.name = "omtoy",
|
.name = "omtoy",
|
||||||
@@ -29,8 +29,7 @@ pub fn build(b: *std.Build) void {
|
|||||||
}),
|
}),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
exe.root_module.addImport("omt", zomt.module("zomt"));
|
exe.root_module.addImport("zomt", zomt);
|
||||||
exe.addLibraryPath(b.path("omt/zig-out/lib/"));
|
|
||||||
|
|
||||||
b.installArtifact(exe);
|
b.installArtifact(exe);
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
// Once all dependencies are fetched, `zig build` no longer requires
|
// Once all dependencies are fetched, `zig build` no longer requires
|
||||||
// internet connectivity.
|
// internet connectivity.
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.omt = .{
|
.zomt = .{
|
||||||
.path = "omt/",
|
.path = "omt/",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user