blob: ba3558b3d3d3be853d865d63ab9c27fbab25380c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Build recipe
// SPDX-FileCopyrightText: 2024-2025 Nguyễn Gia Phong
// SPDX-License-Identifier: GPL-3.0-or-later
const Build = @import("std").Build;
pub fn build(b: *Build) void {
const mod = b.addModule("zsanett", .{
.root_source_file = b.path("src/root.zig"),
.target = b.standardTargetOptions(.{}),
.optimize = b.standardOptimizeOption(.{}),
});
mod.linkSystemLibrary("c", .{});
mod.linkSystemLibrary("janet", .{});
const tests = b.addTest(.{ .root_module = mod });
const test_step = b.step("test", "Run library tests");
test_step.dependOn(&b.addRunArtifact(tests).step);
}
|