chore: make use of package manager

This commit is contained in:
Rekai Nyangadzayi Musuka 2023-06-19 12:16:17 -05:00
parent 77d11c9903
commit e616cf09e5
1 changed files with 3 additions and 12 deletions

View File

@ -15,20 +15,11 @@ pub fn build(b: *std.Build) void {
// set a preferred release mode, allowing the user to decide how to optimize.
const optimize = b.standardOptimizeOption(.{});
const lib = b.addStaticLibrary(.{
.name = "zba-util",
// In this case the main source file is merely a path, however, in more
// complicated build scripts, this could be a generated file.
.root_source_file = .{ .path = "src/lib.zig" },
.target = target,
.optimize = optimize,
_ = b.addModule("zba-util", .{
.source_file = .{ .path = "src/lib.zig" },
.dependencies = &.{},
});
// This declares intent for the library to be installed into the standard
// location when the user invokes the "install" step (the default step when
// running `zig build`).
b.installArtifact(lib);
// Creates a step for unit testing. This only builds the test executable
// but does not run it.
const main_tests = b.addTest(.{