Remove static lib

This commit is contained in:
Carson Katri
2025-09-16 13:26:30 -04:00
committed by Pierre Tachoire
parent 8568c821fa
commit 901294a180

View File

@@ -62,36 +62,28 @@ pub fn build(b: *Build) !void {
try addDependencies(b, lightpanda_module, opts); try addDependencies(b, lightpanda_module, opts);
{ {
// static lib // browser
// ---------- // -------
const lib = b.addLibrary(.{ .name = "lightpanda", .root_module = lightpanda_module, .use_llvm = true, .linkage = .static }); // compile and install
b.installArtifact(lib); const exe = b.addExecutable(.{
.name = "lightpanda",
.use_llvm = true,
.root_module = lightpanda_module,
});
b.installArtifact(exe);
// run
const run_cmd = b.addRunArtifact(exe);
if (b.args) |args| {
run_cmd.addArgs(args);
}
// step
const run_step = b.step("run", "Run the app");
run_step.dependOn(&run_cmd.step);
} }
// {
// // browser
// // -------
// // compile and install
// const exe = b.addExecutable(.{
// .name = "lightpanda",
// .use_llvm = true,
// .root_module = lightpanda_module,
// });
// b.installArtifact(exe);
// // run
// const run_cmd = b.addRunArtifact(exe);
// if (b.args) |args| {
// run_cmd.addArgs(args);
// }
// // step
// const run_step = b.step("run", "Run the app");
// run_step.dependOn(&run_cmd.step);
// }
{ {
// tests // tests
// ---- // ----