const std = @import("std"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); // Library module (for consumers like Rumpk) const nexfs_mod = b.addModule("nexfs", .{ .root_source_file = b.path("src/nexfs/nexfs.zig"), .target = target, .optimize = optimize, }); // Static library (for C/Nim FFI) const lib = b.addLibrary(.{ .linkage = .static, .name = "nexfs", .root_module = nexfs_mod, }); b.installArtifact(lib); // Tests const test_mod = b.createModule(.{ .root_source_file = b.path("tests/test_nexfs.zig"), .target = target, .optimize = optimize, .imports = &.{ .{ .name = "nexfs", .module = nexfs_mod }, }, }); const tests = b.addTest(.{ .root_module = test_mod, }); const run_tests = b.addRunArtifact(tests); const test_step = b.step("test", "Run NexFS tests"); test_step.dependOn(&run_tests.step); }