install vk.zig to prefix/src/ by default

This commit is contained in:
Robin Voetter
2023-04-17 22:12:48 +02:00
parent 303d06b3d8
commit 55e7dcf270

View File

@@ -50,6 +50,9 @@ pub fn build(b: *std.Build) void {
const gen = VkGenerateStep.create(b, example_registry); const gen = VkGenerateStep.create(b, example_registry);
triangle_exe.addModule("vulkan", gen.getModule()); 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( const shaders = ShaderCompileStep.create(
b, b,
&[_][]const u8{ "glslc", "--target-env=vulkan1.2" }, &[_][]const u8{ "glslc", "--target-env=vulkan1.2" },