dotfiles/mzte_nv/build.zig

25 lines
699 B
Zig
Raw Normal View History

2022-10-18 23:03:39 +02: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();
const lib = b.addSharedLibrary("mzte_nv", "src/main.zig", .unversioned);
lib.setBuildMode(mode);
lib.linkLibC();
lib.linkSystemLibrary("luajit");
lib.strip = mode != .Debug;
2022-10-20 12:36:23 +02:00
lib.unwind_tables = true;
2022-10-18 23:03:39 +02:00
lib.install();
const main_tests = b.addTest("src/main.zig");
main_tests.setBuildMode(mode);
const test_step = b.step("test", "Run library tests");
test_step.dependOn(&main_tests.step);
}