From b2b2c9ed1397d345004fc2369217307b44bdbd88 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sun, 12 Mar 2023 15:40:42 +0100 Subject: river: add rules system This is a breaking change and replaces the previous csd-filter-add/remove and float-filter-add/remove commands. See the riverctl(1) man page for documentation on the new system. --- build.zig | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index a3f1bde..1dd65eb 100644 --- a/build.zig +++ b/build.zig @@ -163,6 +163,7 @@ pub fn build(b: *zbs.Builder) !void { river.linkSystemLibrary("wlroots"); river.addPackagePath("flags", "common/flags.zig"); + river.addPackagePath("globber", "common/globber.zig"); river.addCSourceFile("river/wlroots_log_wrapper.c", &[_][]const u8{ "-std=c99", "-O2" }); // TODO: remove when zig issue #131 is implemented @@ -254,6 +255,15 @@ pub fn build(b: *zbs.Builder) !void { if (fish_completion) { b.installFile("completions/fish/riverctl.fish", "share/fish/vendor_completions.d/riverctl.fish"); } + + { + const globber_test = b.addTest("common/globber.zig"); + globber_test.setTarget(target); + globber_test.setBuildMode(mode); + + const test_step = b.step("test", "Run the tests"); + test_step.dependOn(&globber_test.step); + } } const ScdocStep = struct { -- cgit v1.2.3