wip
This commit is contained in:
10
build.zig
10
build.zig
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user