forked from mirror/vulkan-zig
XML unescape iterator
This commit is contained in:
16
build.zig
16
build.zig
@@ -1,14 +1,18 @@
|
||||
const Builder = @import("std").build.Builder;
|
||||
const std = @import("std");
|
||||
const Builder = std.build.Builder;
|
||||
|
||||
pub fn build(b: *Builder) void {
|
||||
const exe = b.addExecutable("vulkan-zig-gen", "generator/main.zig");
|
||||
exe.setBuildMode(b.standardReleaseOptions());
|
||||
const generator = b.addExecutable("vulkan-zig-gen", "generator/main.zig");
|
||||
generator.setBuildMode(b.standardReleaseOptions());
|
||||
|
||||
const run_cmd = exe.run();
|
||||
var test_step = b.step("test", "Run all the tests");
|
||||
test_step.dependOn(&b.addTest("generator/xml.zig").step);
|
||||
|
||||
const run_cmd = generator.run();
|
||||
|
||||
const run_step = b.step("run", "");
|
||||
run_step.dependOn(&run_cmd.step);
|
||||
|
||||
b.default_step.dependOn(&exe.step);
|
||||
b.installArtifact(exe);
|
||||
b.default_step.dependOn(&generator.step);
|
||||
b.installArtifact(generator);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user