Files
WeirdUtils/libs/hook/build.zig
T
MarcelineVQ b7f293c8c5 Initial commit: WeirdUtils DLL for WoW 1.12.1
Lua protection bypass, embedded addon loading, async PNG screenshots
with self-contained deflate compressor (store + fixed Huffman).
15KB ReleaseSmall.
2026-02-23 16:02:55 -08:00

19 lines
571 B
Zig

const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const hwbp = b.option(bool, "hwbp", "Use hardware breakpoint hooks instead of inline patching") orelse false;
const options = b.addOptions();
options.addOption(bool, "use_hwbp", hwbp);
const hook_mod = b.addModule("hook", .{
.root_source_file = b.path("src/hook.zig"),
.target = target,
.optimize = optimize,
});
hook_mod.addOptions("config", options);
}