const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .ReleaseSmall });
const lib = b.addStaticLibrary(.{
.name = "hydrogen",
.target = target,
.optimize = optimize,
.strip = true,
.link_libc = true,
});
_ = b.addModule("libhydrogen", .{
.root_source_file = b.path("hydrogen.c"),
.link_libc = true,
});
lib.addCSourceFile(.{
.file = b.path("hydrogen.c"),
});
b.installArtifact(lib);
}