blob: 6e13e7cbc02840b578ee1d7a5f1fa77307aab6ee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const mod = b.addModule("hook", .{
.root_source_file = b.path("src/zhook.zig"),
.target = target,
.optimize = optimize,
});
if (target.result.os.tag == .windows)
mod.linkSystemLibrary("kernel32", .{});
const mod_tests = b.addTest(.{
.root_module = mod,
});
const run_mod_tests = b.addRunArtifact(mod_tests);
const test_step = b.step("test", "Run tests");
test_step.dependOn(&run_mod_tests.step);
}
|