diff --git a/build.zig b/build.zig index 9db02ac..48bac1e 100644 --- a/build.zig +++ b/build.zig @@ -1,34 +1,8 @@ -const std = @import("std"); - -pub fn build(b: *std.Build) void { - const target = b.standardTargetOptions(.{}); - const optimize = .ReleaseSafe; - - const exe_mod = b.createModule(.{ - .root_source_file = b.path("src/main.zig"), - .target = target, - .optimize = optimize, - }); - - const exe = b.addExecutable(.{ +pub fn build(b: *@import("std").Build) void { + _ = b.addStaticLibrary(.{ .name = "aether", - .root_module = exe_mod, + .root_source_file = b.path("root.zig"), + .target = b.standardTargetOptions(.{}), + .optimize = b.standardOptimizeOption(.{}), }); - - b.installArtifact(exe); - - const run_cmd = b.addRunArtifact(exe); - run_cmd.step.dependOn(b.getInstallStep()); - - const run_step = b.step("run", "Run the app"); - run_step.dependOn(&run_cmd.step); - - const exe_unit_tests = b.addTest(.{ - .root_module = exe_mod, - }); - - const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests); - - const test_step = b.step("test", "Run unit tests"); - test_step.dependOn(&run_exe_unit_tests.step); } diff --git a/build.zig.zon b/build.zig.zon index 83974c8..7a42f2c 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,13 +1,12 @@ .{ .name = .aether, - .version = "0.0.0", + .version = "1.0.0", .fingerprint = 0x255cfdbd72bde30d, .minimum_zig_version = "0.15.0-dev.552+bc2f7c754", - .dependencies = .{ - }, + .dependencies = .{}, .paths = .{ "build.zig", "build.zig.zon",