b7f293c8c5
Lua protection bypass, embedded addon loading, async PNG screenshots with self-contained deflate compressor (store + fixed Huffman). 15KB ReleaseSmall.
19 lines
571 B
Zig
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);
|
|
}
|