2014-04-24 04:33:15 -04:00
|
|
|
|
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
|
|
|
|
|
|
|
public class OpenSSL : ModuleRules
|
|
|
|
|
|
{
|
|
|
|
|
|
public OpenSSL(TargetInfo Target)
|
|
|
|
|
|
{
|
|
|
|
|
|
Type = ModuleType.External;
|
|
|
|
|
|
|
|
|
|
|
|
string LibFolder = "lib/";
|
|
|
|
|
|
string LibPrefix = "";
|
|
|
|
|
|
string LibPostfixAndExt = (Target.Configuration == UnrealTargetConfiguration.Debug && BuildConfiguration.bDebugBuildsActuallyUseDebugCRT) ? "d." : ".";
|
2014-06-13 16:31:00 -04:00
|
|
|
|
string OpenSSLPath = UEBuildConfiguration.UEThirdPartySourceDirectory + "OpenSSL/1.0.1g/";
|
2014-04-24 04:33:15 -04:00
|
|
|
|
|
2014-07-08 10:08:43 -04:00
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Mac)
|
2014-04-24 04:33:15 -04:00
|
|
|
|
{
|
2014-07-08 10:08:43 -04:00
|
|
|
|
LibPostfixAndExt = ".a";
|
|
|
|
|
|
LibFolder += "Mac/";
|
|
|
|
|
|
LibPrefix = OpenSSLPath + LibFolder;
|
2014-04-24 04:33:15 -04:00
|
|
|
|
PublicIncludePaths.Add(OpenSSLPath + "include");
|
|
|
|
|
|
PublicLibraryPaths.Add(OpenSSLPath + LibFolder);
|
2014-07-08 10:08:43 -04:00
|
|
|
|
PublicAdditionalLibraries.Add(LibPrefix + "libssl" + LibPostfixAndExt);
|
|
|
|
|
|
PublicAdditionalLibraries.Add(LibPrefix + "libcrypto" + LibPostfixAndExt);
|
2014-04-24 04:33:15 -04:00
|
|
|
|
}
|
2014-07-08 10:08:43 -04:00
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
|
|
|
|
{
|
|
|
|
|
|
PublicIncludePaths.Add(OpenSSLPath + "include");
|
2014-04-24 04:33:15 -04:00
|
|
|
|
|
2014-07-08 10:08:43 -04:00
|
|
|
|
LibFolder += "Win64/";
|
|
|
|
|
|
|
|
|
|
|
|
if(WindowsPlatform.Compiler == WindowsCompiler.VisualStudio2013)
|
|
|
|
|
|
{
|
|
|
|
|
|
LibFolder += "VS2013/";
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LibFolder += "VS2012/";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
LibPostfixAndExt += "lib";
|
|
|
|
|
|
PublicLibraryPaths.Add(OpenSSLPath + LibFolder);
|
|
|
|
|
|
}
|
2014-04-24 04:33:15 -04:00
|
|
|
|
|
2014-07-08 10:08:43 -04:00
|
|
|
|
PublicAdditionalLibraries.Add(LibPrefix + "libeay32" + LibPostfixAndExt);
|
|
|
|
|
|
PublicAdditionalLibraries.Add(LibPrefix + "ssleay32" + LibPostfixAndExt);
|
|
|
|
|
|
|
|
|
|
|
|
PublicDelayLoadDLLs.AddRange(
|
|
|
|
|
|
new string[] {
|
|
|
|
|
|
"libeay32.dll",
|
|
|
|
|
|
"ssleay32.dll"
|
|
|
|
|
|
}
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
2014-04-24 04:33:15 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|