This commit is contained in:
2025-10-27 07:38:40 +02:00
parent 4eb0902908
commit f074d61403
6 changed files with 116 additions and 80 deletions

View File

@@ -15,10 +15,11 @@ pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const zomt = b.dependency("zomt", .{
const zomt_dep = b.dependency("zomt", .{
.target = target,
.optimize = optimize,
}).module("zomt");
});
const zomt_mod = zomt_dep.module("zomt");
const exe = b.addExecutable((.{
.name = "omtoy",
@@ -29,7 +30,10 @@ pub fn build(b: *std.Build) void {
}),
}));
exe.root_module.addImport("zomt", zomt);
// exe.root_module.addLibraryPath(zomt_dep.namedLazyPath("output_dir"));
exe.root_module.addIncludePath(zomt_dep.namedLazyPath("output_dir"));
// exe.root_module.linkSystemLibrary("omt", .{});
exe.root_module.addImport("zomt", zomt_mod);
b.installArtifact(exe);