mirror of
https://github.com/2234839/web-font.git
synced 2026-11-20 15:38:39 +08:00
18 lines
587 B
Zig
18 lines
587 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .ReleaseFast });
|
|
const exe = b.addExecutable(.{
|
|
.name = "webfont-zig",
|
|
.root_module = b.createModule(.{
|
|
.root_source_file = b.path("src/main.zig"),
|
|
.target = b.standardTargetOptions(.{}),
|
|
.optimize = optimize,
|
|
}),
|
|
});
|
|
b.installArtifact(exe);
|
|
const run_cmd = b.addRunArtifact(exe);
|
|
const run_step = b.step("run", "Run server");
|
|
run_step.dependOn(&run_cmd.step);
|
|
}
|