gamemode: update to latest Zig build API

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-02-08 01:13:55 -07:00 committed by Stephen Gutekanst
parent b6f41b3fb0
commit ddb728d74d

View file

@ -1,11 +1,12 @@
const std = @import("std");
pub const pkg = std.build.Pkg{
.name = "gamemode",
.source = .{ .path = sdkPath("/src/main.zig") },
};
pub fn module(b: *std.Build) *std.build.Module {
return b.createModule(.{
.source_file = .{ .path = sdkPath("/src/main.zig") },
});
}
pub fn link(step: *std.build.LibExeObjStep) void {
pub fn link(step: *std.build.CompileStep) void {
step.addIncludePath(sdkPath("/upstream/include"));
}