diff options
| author | Isaac Freund <mail@isaacfreund.com> | 2023-03-12 15:40:42 +0100 |
|---|---|---|
| committer | Isaac Freund <mail@isaacfreund.com> | 2023-03-12 16:44:19 +0100 |
| commit | b2b2c9ed1397d345004fc2369217307b44bdbd88 (patch) | |
| tree | 8021cdfbedb90a33a001da2ac90693eca89387dc /build.zig | |
| parent | 05eac54b076f2069469aa48377cae54f0cd311aa (diff) | |
| download | river-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.zig | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 { |
