diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-05-04 11:10:23 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-05-04 11:10:23 +0200 |
| commit | 71d580b81173c6e6f93354c6e783972a6aa37b27 (patch) | |
| tree | 411853334df32d418a0def5148f74fa66fe053b3 /build.zig | |
| parent | e199bcba43174403a578f7a1e92e0a95076495c8 (diff) | |
| download | river-71d580b81173c6e6f93354c6e783972a6aa37b27.tar.gz river-71d580b81173c6e6f93354c6e783972a6aa37b27.tar.xz | |
Add xwayland build option
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -11,11 +11,18 @@ pub fn build(b: *std.build.Builder) !void { // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. const mode = b.standardReleaseOptions(); + const xwayland = b.option( + bool, + "xwayland", + "Set to true to enable xwayland support", + ) orelse false; + const scan_protocols = ScanProtocolsStep.create(b); const exe = b.addExecutable("river", "src/main.zig"); exe.setTarget(target); exe.setBuildMode(mode); + exe.addBuildOption(bool, "xwayland", xwayland); addDeps(exe, &scan_protocols.step); exe.install(); @@ -28,6 +35,7 @@ pub fn build(b: *std.build.Builder) !void { const test_exe = b.addTest("src/test_main.zig"); test_exe.setTarget(target); test_exe.setBuildMode(mode); + test_exe.addBuildOption(bool, "xwayland", xwayland); addDeps(test_exe, &scan_protocols.step); const test_step = b.step("test", "Run the tests"); |
