28 lines
673 B
Zig
28 lines
673 B
Zig
const std = @import("std");
|
|
const bh = @import("bh");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const opts = bh.declareOptions(b);
|
|
|
|
const exe = b.addExecutable(.{
|
|
.name = "spvReflect2",
|
|
.root_module = b.createModule(.{
|
|
.root_source_file = b.path("spvReflect2.zig"),
|
|
.target = opts.target,
|
|
.optimize = opts.optimize,
|
|
}),
|
|
});
|
|
|
|
b.installArtifact(exe);
|
|
|
|
const run_cmd = b.addRunArtifact(exe);
|
|
run_cmd.step.dependOn(b.getInstallStep());
|
|
|
|
if (b.args) |args| {
|
|
run_cmd.addArgs(args);
|
|
}
|
|
|
|
const run_step = b.step("run", "Run the JSON parser");
|
|
run_step.dependOn(&run_cmd.step);
|
|
}
|