mirror of
https://git.robbyzambito.me/zaprus
synced 2026-02-04 00:14:52 +00:00
start porting to 0.16.0
This commit is contained in:
11
build.zig
11
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`).
|
||||
|
||||
Reference in New Issue
Block a user