From 55e7dcf270ebab10035cc968a6aeaad605e9485b Mon Sep 17 00:00:00 2001 From: Robin Voetter Date: Mon, 17 Apr 2023 22:12:48 +0200 Subject: [PATCH] install vk.zig to prefix/src/ by default --- build.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.zig b/build.zig index c2eb94e..2219595 100644 --- a/build.zig +++ b/build.zig @@ -50,6 +50,9 @@ pub fn build(b: *std.Build) void { const gen = VkGenerateStep.create(b, example_registry); triangle_exe.addModule("vulkan", gen.getModule()); + const vk_zig_install_step = b.addInstallFile(gen.getSource(), "src/vk.zig"); + b.getInstallStep().dependOn(&vk_zig_install_step.step); + const shaders = ShaderCompileStep.create( b, &[_][]const u8{ "glslc", "--target-env=vulkan1.2" },