build: remove example river-status client

This is out of date and currently doesn't compile. It also doesn't
really belong in the repository IMO, except maybe in the contrib
folder.
This commit is contained in:
Isaac Freund
2021-07-25 19:15:33 +02:00
parent 4cc1167863
commit b49ea34f15
2 changed files with 0 additions and 112 deletions

View File

@ -52,8 +52,6 @@ pub fn build(b: *zbs.Builder) !void {
"Set to true to install fish completion for riverctl. Defaults to true.",
) orelse true;
const examples = b.option(bool, "examples", "Set to true to build examples") orelse false;
const full_version = blk: {
if (mem.endsWith(u8, version, "-dev")) {
var ret: u8 = undefined;
@ -152,23 +150,6 @@ pub fn build(b: *zbs.Builder) !void {
);
}
if (examples) {
inline for (.{"status"}) |example_name| {
const example = b.addExecutable(example_name, "example/" ++ example_name ++ ".zig");
example.setTarget(target);
example.setBuildMode(mode);
example.step.dependOn(&scanner.step);
example.addPackage(scanner.getPkg());
example.linkLibC();
example.linkSystemLibrary("wayland-client");
scanner.addCSource(example);
example.install();
}
}
{
const river_test = b.addTest("river/test_main.zig");
river_test.setTarget(target);