Created
September 2, 2016 14:52
-
-
Save RCL/d00db9202af41cfa31f2095254f64b41 to your computer and use it in GitHub Desktop.
Proposed fix for drivers that need libstdc++ / STL symbols
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. | |
using UnrealBuildTool; | |
public class OpenGL : ModuleRules | |
{ | |
public OpenGL(TargetInfo Target) | |
{ | |
Type = ModuleType.External; | |
if ((Target.Platform == UnrealTargetPlatform.Win64) || | |
(Target.Platform == UnrealTargetPlatform.Win32)) | |
{ | |
PublicAdditionalLibraries.Add("opengl32.lib"); | |
} | |
else if (Target.Platform == UnrealTargetPlatform.Mac) | |
{ | |
PublicAdditionalFrameworks.Add(new UEBuildFramework("OpenGL")); | |
PublicAdditionalFrameworks.Add(new UEBuildFramework("QuartzCore")); | |
} | |
else if (Target.Platform == UnrealTargetPlatform.IOS) | |
{ | |
PublicAdditionalFrameworks.Add(new UEBuildFramework("OpenGLES")); | |
} | |
else if (Target.Platform == UnrealTargetPlatform.Linux) | |
{ | |
PublicAdditionalLibraries.Add("stdc++"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment