mirror of
https://github.com/webui-dev/webui
synced 2025-03-28 21:13:17 +00:00
22 lines
511 B
Zig
22 lines
511 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const target = b.standardTargetOptions(.{});
|
|
const optimize = b.standardOptimizeOption(.{});
|
|
|
|
const lib = b.addStaticLibrary(.{
|
|
.name = "webui",
|
|
.target = target,
|
|
.optimize = optimize,
|
|
});
|
|
|
|
lib.addCSourceFiles(&.{
|
|
"src/webui.c",
|
|
"src/mongoose.c",
|
|
}, &.{""});
|
|
lib.linkLibC();
|
|
lib.addIncludePath("include");
|
|
lib.installHeadersDirectory("include", "");
|
|
lib.install();
|
|
}
|