summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig11
1 files changed, 1 insertions, 10 deletions
diff --git a/build.zig b/build.zig
index 4b32dd9..c07def0 100644
--- a/build.zig
+++ b/build.zig
@@ -41,13 +41,10 @@ pub fn build(b: *std.Build) void {
.target = target,
});
- mod.addImport("network", b.dependency("network", .{}).module("network"));
- mod.addImport("gatorcat", b.dependency("gatorcat", .{}).module("gatorcat"));
-
// Here we define an executable. An executable needs to have a root module
// which needs to expose a `main` function. While we could add a main function
// to the module defined above, it's sometimes preferable to split business
- // business logic and the CLI into two separate modules.
+ // logic and the CLI into two separate modules.
//
// If your goal is to create a Zig library for others to use, consider if
// it might benefit from also exposing a CLI tool. A parser library for a
@@ -82,7 +79,6 @@ pub fn build(b: *std.Build) void {
// can be extremely useful in case of collisions (which can happen
// importing modules from different packages).
.{ .name = "zaprus", .module = mod },
- .{ .name = "clap", .module = b.dependency("clap", .{}).module("clap") },
},
}),
});
@@ -92,11 +88,6 @@ pub fn build(b: *std.Build) void {
// step). By default the install prefix is `zig-out/` but can be overridden
// by passing `--prefix` or `-p`.
b.installArtifact(exe);
- b.installArtifact(b.addLibrary(.{
- .linkage = .static,
- .name = "zaprus",
- .root_module = mod,
- }));
// This creates a top level step. Top level steps have a name and can be
// invoked by name when running `zig build` (e.g. `zig build run`).