aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-05-19 13:25:16 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-05-19 13:25:16 +0200
commit0904dc53467d9e94cdce050c493e9377da8ebfcc (patch)
tree393073533252d7c3ef92332ecb87aa6d9835ff41 /build.zig
parent82d74d938c0e54bd62dd4d525b312a0cd048608a (diff)
downloadriver-0904dc53467d9e94cdce050c493e9377da8ebfcc.tar.gz
river-0904dc53467d9e94cdce050c493e9377da8ebfcc.tar.xz
Create WindowManagement struct
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 54597d3..d57a142 100644
--- a/build.zig
+++ b/build.zig
@@ -45,6 +45,7 @@ pub fn build(b: *std.build.Builder) !void {
fn addDeps(exe: *std.build.LibExeObjStep, protocol_step: *std.build.Step) void {
exe.step.dependOn(protocol_step);
exe.addIncludeDir("protocol");
+ exe.addCSourceFile("protocol/river-window-management-unstable-v1-protocol.c", &[_][]const u8{"-std=c99"});
exe.addCSourceFile("include/bindings.c", &[_][]const u8{"-std=c99"});
exe.addIncludeDir(".");
@@ -83,6 +84,7 @@ const ScanProtocolsStep = struct {
const protocol_dir_paths = [_][]const []const u8{
&[_][]const u8{ protocol_dir, "stable/xdg-shell/xdg-shell.xml" },
&[_][]const u8{ "protocol", "wlr-layer-shell-unstable-v1.xml" },
+ &[_][]const u8{ "protocol", "river-window-management-unstable-v1.xml" },
};
for (protocol_dir_paths) |dir_path| {