Make it dependency-able?
This commit is contained in:
parent
7abebd7aa1
commit
48719f8807
1 changed files with 7 additions and 0 deletions
|
|
@ -6,12 +6,19 @@ pub fn build(b: *std.Build) void {
|
|||
|
||||
const libRoot = b.path("src/root.zig");
|
||||
|
||||
const module = b.addModule("lys", .{
|
||||
.root_source_file = libRoot,
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
||||
const lib = b.addStaticLibrary(.{
|
||||
.name = "lys",
|
||||
.root_source_file = libRoot,
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
lib.root_module.addImport("lys", module);
|
||||
|
||||
b.installArtifact(lib);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue