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:
Robin Voetter
2024-04-28 11:33:58 +02:00
parent e1f290399e
commit c5725dfb2e
2 changed files with 4 additions and 4 deletions

View File

@@ -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,