glfw: pass system sdk options through

This commit is contained in:
Ali Chraghi 2022-09-19 15:19:36 +04:30 committed by Stephen Gutekanst
parent 0ea0aae968
commit 8733bddeec

View file

@ -87,8 +87,7 @@ pub fn link(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void
addGLFWIncludes(step); addGLFWIncludes(step);
if (options.shared) { if (options.shared) {
step.defineCMacro("GLFW_DLL", null); step.defineCMacro("GLFW_DLL", null);
// TODO(build-system): pass system SDK options through system_sdk.include(b, step, options.system_sdk);
system_sdk.include(b, step, .{});
} else { } else {
linkGLFWDependencies(b, step, options); linkGLFWDependencies(b, step, options);
} }
@ -182,8 +181,7 @@ inline fn thisDir() []const u8 {
fn linkGLFWDependencies(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void { fn linkGLFWDependencies(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void {
step.linkLibC(); step.linkLibC();
// TODO(build-system): pass system SDK options through system_sdk.include(b, step, options.system_sdk);
system_sdk.include(b, step, .{});
switch (step.target_info.target.os.tag) { switch (step.target_info.target.os.tag) {
.windows => { .windows => {
step.linkSystemLibraryName("gdi32"); step.linkSystemLibraryName("gdi32");