You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
microzig/build.zig

33 lines
1.2 KiB
Zig

const std = @import("std");
const pkgs = struct {
const koino = std.build.Pkg{
.name = "koino",
.path = "./deps/koino/src/koino.zig",
.dependencies = &[_]std.build.Pkg{
std.build.Pkg{ .name = "libpcre", .path = "deps/koino/vendor/libpcre.zig/src/main.zig" },
std.build.Pkg{ .name = "htmlentities", .path = "deps/koino/vendor/htmlentities.zig/src/main.zig" },
std.build.Pkg{ .name = "clap", .path = "deps/koino/vendor/zig-clap/clap.zig" },
std.build.Pkg{ .name = "zunicode", .path = "deps/koino/vendor/zunicode/src/zunicode.zig" },
},
};
};
const linkPcre = @import("deps/koino/vendor/libpcre.zig/build.zig").linkPcre;
pub fn build(b: *std.build.Builder) !void {
const target = b.standardTargetOptions(.{});
const mode = b.standardReleaseOptions();
const render_website = b.addExecutable("zeg-website", "src/main.zig");
render_website.setTarget(target);
render_website.setBuildMode(mode);
try linkPcre(render_website);
render_website.addPackage(pkgs.koino);
const gen_cmd = render_website.run();
const gen_step = b.step("gen", "Generates the website");
gen_step.dependOn(&gen_cmd.step);
}