glfw: pass system sdk options through
This commit is contained in:
parent
0ea0aae968
commit
8733bddeec
1 changed files with 2 additions and 4 deletions
|
@ -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");
|
||||||
|
|
Loading…
Add table
Reference in a new issue