aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2023-03-12 15:40:42 +0100
committerIsaac Freund <mail@isaacfreund.com>2023-03-12 16:44:19 +0100
commitb2b2c9ed1397d345004fc2369217307b44bdbd88 (patch)
tree8021cdfbedb90a33a001da2ac90693eca89387dc /build.zig
parent05eac54b076f2069469aa48377cae54f0cd311aa (diff)
downloadriver-b2b2c9ed1397d345004fc2369217307b44bdbd88.tar.gz
river-b2b2c9ed1397d345004fc2369217307b44bdbd88.tar.xz
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.
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig10
1 files changed, 10 insertions, 0 deletions
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 {