gamemode: use zig build
This commit is contained in:
parent
15dfb2867a
commit
2ab3516795
6 changed files with 23 additions and 1650 deletions
14
libs/gamemode/build.zig
Normal file
14
libs/gamemode/build.zig
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const std = @import("std");
|
||||
|
||||
pub const pkg = std.build.Pkg{
|
||||
.name = "gamemode",
|
||||
.source = .{ .path = thisDir() ++ "/gamemode.zig" },
|
||||
};
|
||||
|
||||
pub fn link(step: *std.build.LibExeObjStep) void {
|
||||
step.addIncludeDir(comptime thisDir() ++ "/upstream/include");
|
||||
}
|
||||
|
||||
fn thisDir() []const u8 {
|
||||
return std.fs.path.dirname(@src().file) orelse ".";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue