Graphics context for example

This commit is contained in:
Robin Voetter
2020-07-02 04:01:59 +02:00
parent 260a7966ee
commit 1ebed09413
5 changed files with 385 additions and 11 deletions

View File

@@ -27,9 +27,11 @@ pub fn build(b: *Builder) void {
exe.setTarget(target);
exe.setBuildMode(mode);
exe.install();
exe.linkSystemLibrary("c");
exe.linkSystemLibrary("glfw");
const vk_path = generateVk(b);
const fmt_step = b.addFmt(&[_][]const u8{vk_path});
exe.step.dependOn(&fmt_step.step);
exe.addPackagePath("vk", vk_path);
exe.addPackagePath("vulkan", vk_path);
}