aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-03 18:53:36 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-04-04 16:51:02 +0200
commit6cb9f6ac04e1fc7716bd69707c714ae89599cccc (patch)
treed2b2e846a5f191b25e1853a0d60e5776f05b57c6 /build.zig
parent9ba295f12673f201b5d70fa3918e270ef41be9f7 (diff)
downloadriver-6cb9f6ac04e1fc7716bd69707c714ae89599cccc.tar.gz
river-6cb9f6ac04e1fc7716bd69707c714ae89599cccc.tar.xz
Add a data structure to manage the view stack
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig18
1 files changed, 17 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index a5e2fd9..b4b7558 100644
--- a/build.zig
+++ b/build.zig
@@ -28,6 +28,22 @@ pub fn build(b: *Builder) void {
const run_cmd = exe.run();
run_cmd.step.dependOn(b.getInstallStep());
- const run_step = b.step("run", "Run the app");
+ const run_step = b.step("run", "Run the compositor");
run_step.dependOn(&run_cmd.step);
+
+ const test_exe = b.addTest("src/test_main.zig");
+ test_exe.setTarget(target);
+ test_exe.setBuildMode(mode);
+ test_exe.addIncludeDir("protocol");
+ test_exe.linkLibC();
+ test_exe.addIncludeDir("/usr/include/pixman-1");
+ test_exe.addCSourceFile("include/render.c", &[_][]const u8{"-std=c99"});
+ test_exe.addIncludeDir(".");
+ //test_exe.linkSystemLibrary("pixman");
+ test_exe.linkSystemLibrary("wayland-server");
+ test_exe.linkSystemLibrary("wlroots");
+ test_exe.linkSystemLibrary("xkbcommon");
+
+ const test_step = b.step("test", "Run the tests");
+ test_step.dependOn(&test_exe.step);
}