mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-14 06:33:47 +01:00
24 lines
699 B
Zig
24 lines
699 B
Zig
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;
|
|
lib.unwind_tables = true;
|
|
|
|
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);
|
|
}
|