Skip to content

Instantly share code, notes, and snippets.

@RCL
Created September 2, 2016 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RCL/d00db9202af41cfa31f2095254f64b41 to your computer and use it in GitHub Desktop.
Save RCL/d00db9202af41cfa31f2095254f64b41 to your computer and use it in GitHub Desktop.
Proposed fix for drivers that need libstdc++ / STL symbols
// 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