Hi there!
I'm trying to embed the whole sqlite3 into my app so it compiles it statically and it's not required as a system dependency.
What I had was this:
const sqlite_lib = b.addStaticLibrary(.{
.name = "sqlite3",
.target = target,
.optimize = optimize,
.link_libc = true,
});
const dep_sqlite = b.dependency("sqlite", .{});
sqlite_lib.addCSourceFiles(.{
.root = dep_sqlite.path(""),
.files = &.{"sqlite3.c"},
});
sqlite_lib.installHeader(dep_sqlite.path("sqlite3.h"), "sqlite3.h");
b.installArtifact(sqlite_lib);
mod.linkLibrary(sqlite_lib);
Not that addStaticLibrary is removed, for what I've looked, I should use addLibrary, but it requires a root_module, that is not the app module, not sure what do I have to pass there
Thanks