glfw: add glfw.getInstanceProcAddress
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
1eeb049b5c
commit
ad7d6b405d
3 changed files with 64 additions and 44 deletions
|
|
@ -178,6 +178,10 @@ fn linkGLFW(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void
|
|||
defer b.allocator.free(include_dir);
|
||||
step.addIncludeDir(include_dir);
|
||||
|
||||
var vulkan_include_dir = std.fs.path.join(b.allocator, &.{ thisDir(), "upstream/vulkan_headers/include" }) catch unreachable;
|
||||
defer b.allocator.free(vulkan_include_dir);
|
||||
step.addIncludeDir(vulkan_include_dir);
|
||||
|
||||
step.linkLibC();
|
||||
const target = (std.zig.system.NativeTargetInfo.detect(b.allocator, step.target) catch unreachable).target;
|
||||
switch (target.os.tag) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue