mach: Initial commit for gamemode
This commit is contained in:
parent
25b6288efe
commit
509ebd13ab
9 changed files with 2617 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ pub const ecs = @import("ecs/build.zig");
|
|||
const freetype = @import("freetype/build.zig");
|
||||
const sysaudio = @import("sysaudio/build.zig");
|
||||
const sysjs = @import("sysjs/build.zig");
|
||||
const gamemode = @import("gamemode-zig/build.zig");
|
||||
const Pkg = std.build.Pkg;
|
||||
|
||||
pub fn build(b: *std.build.Builder) void {
|
||||
|
|
@ -226,6 +227,13 @@ pub const App = struct {
|
|||
exe.addPackage(gpu.pkg);
|
||||
exe.addPackage(glfw.pkg);
|
||||
|
||||
if (target.os.tag == .linux) {
|
||||
exe.addPackage(gamemode.pkg);
|
||||
// TODO: choose between system lib vs buildlib?
|
||||
gamemode.link(exe);
|
||||
// gamemode.buildAndLink(b, exe);
|
||||
}
|
||||
|
||||
break :blk exe;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue