Make it dependency-able?

This commit is contained in:
Lyssieth 2024-11-24 22:25:13 +02:00
parent 7abebd7aa1
commit 48719f8807
Signed by untrusted user who does not match committer: lyssieth
GPG key ID: 200268854934CFAB

View file

@ -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);