river: add custom wlroots log handler

This makes river's log output more consistent and will allow
filtering by the wlroots scope in the future.
This commit is contained in:
Isaac Freund
2021-07-25 01:22:36 +02:00
parent c26d18647b
commit 734521560b
3 changed files with 54 additions and 1 deletions

View File

@ -211,6 +211,7 @@ fn addServerDeps(exe: *zbs.LibExeObjStep, scanner: *ScanProtocolsStep) void {
exe.linkSystemLibrary("wlroots");
exe.addPackagePath("flags", "common/flags.zig");
exe.addCSourceFile("river/wlroots_log_wrapper.c", &[_][]const u8{ "-std=c99", "-O2" });
// TODO: remove when zig issue #131 is implemented
scanner.addCSource(exe);