forked from mirror/vulkan-zig
rename 'generator' binary to 'vulkan-zig-generator'
This changes the name of the generator binary from something very generic to something a little more descriptive. If using the package manager method to use the generator, this will require updating to the new name.
This commit is contained in:
@@ -10,11 +10,11 @@ pub fn build(b: *std.Build) void {
|
||||
const vk_xml_path: ?[]const u8 = b.option([]const u8, "registry", "Override the path to the Vulkan registry");
|
||||
|
||||
// using the package manager, this artifact can be obtained by the user
|
||||
// through `b.dependency(<name in build.zig.zon>, .{}).artifact("generator")`.
|
||||
// through `b.dependency(<name in build.zig.zon>, .{}).artifact("vulkan-zig-generator")`.
|
||||
// with that, the user need only `.addArg("path/to/vk.xml")`, and then obtain
|
||||
// a file source to the generated code with `.addOutputArg("vk.zig")`
|
||||
const generator_exe = b.addExecutable(.{
|
||||
.name = "generator",
|
||||
.name = "vulkan-zig-generator",
|
||||
.root_source_file = .{ .path = "src/main.zig" },
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
|
||||
Reference in New Issue
Block a user