zig-chrono/build.zig

18 lines
563 B
Zig
Raw Normal View History

2023-06-12 22:59:12 -04:00
const std = @import("std");
pub fn build(b: *std.build.Builder) void {
// Standard release options allow the person running `zig build` to select
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
const mode = b.standardReleaseOptions();
2023-06-13 01:46:34 -04:00
const lib = b.addStaticLibrary("chrono", "src/main.zig");
2023-06-12 22:59:12 -04:00
lib.setBuildMode(mode);
lib.install();
2023-06-13 20:37:17 -04:00
const main_tests = b.addTest("src/tests.zig");
2023-06-12 22:59:12 -04:00
main_tests.setBuildMode(mode);
const test_step = b.step("test", "Run library tests");
test_step.dependOn(&main_tests.step);
}