Hack around @cImport() not handling flexible arrays

This commit is contained in:
Isaac Freund
2020-03-21 16:55:42 +01:00
parent e1d1683c3f
commit 57ab110f43
5 changed files with 342 additions and 25 deletions

View File

@ -17,6 +17,8 @@ pub fn build(b: *Builder) void {
exe.addIncludeDir("protocol");
exe.linkLibC();
exe.addIncludeDir("/usr/include/pixman-1");
exe.addCSourceFile("include/render.c", &[_][]const u8{"-std=c99"});
exe.addIncludeDir(".");
//exe.linkSystemLibrary("pixman");
exe.linkSystemLibrary("wayland-server");
exe.linkSystemLibrary("wlroots");