Initial import
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
const std = @import("std");
|
||||
|
||||
pub fn build(b: *std.Build) void {
|
||||
const target = b.standardTargetOptions(.{});
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
const exe = b.addExecutable(.{
|
||||
.name = "files",
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("files.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
}),
|
||||
});
|
||||
b.installArtifact(exe);
|
||||
|
||||
const run_cmd = b.addRunArtifact(exe);
|
||||
run_cmd.step.dependOn(b.getInstallStep());
|
||||
if (b.args) |args| run_cmd.addArgs(args);
|
||||
b.step("run", "Run files").dependOn(&run_cmd.step);
|
||||
|
||||
const smoke = b.addSystemCommand(&.{ "sh", "tests/files-smoke.sh" });
|
||||
smoke.setCwd(b.path("."));
|
||||
smoke.step.dependOn(b.getInstallStep());
|
||||
b.step("test", "Run POSIX smoke tests").dependOn(&smoke.step);
|
||||
}
|
||||
Reference in New Issue
Block a user