From 6cb9f6ac04e1fc7716bd69707c714ae89599cccc Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Fri, 3 Apr 2020 18:53:36 +0200 Subject: Add a data structure to manage the view stack --- build.zig | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'build.zig') 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); } -- cgit v1.2.3