Files
UnrealEngineUWP/Engine/Source/ThirdParty/OpenSSL/OpenSSL.Build.cs
Mark Satterthwaite 09fd73221f Mac OpenSSL built from 1.0.1g source - prerequisite for SSL support in p4 integration.
#codereview michael.trepka, thomas.sarkanen

[CL 2175768 by Mark Satterthwaite in Main branch]
2014-07-08 10:08:43 -04:00

58 lines
1.6 KiB
C#

// 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." : ".";
string OpenSSLPath = UEBuildConfiguration.UEThirdPartySourceDirectory + "OpenSSL/1.0.1g/";
if (Target.Platform == UnrealTargetPlatform.Mac)
{
LibPostfixAndExt = ".a";
LibFolder += "Mac/";
LibPrefix = OpenSSLPath + LibFolder;
PublicIncludePaths.Add(OpenSSLPath + "include");
PublicLibraryPaths.Add(OpenSSLPath + LibFolder);
PublicAdditionalLibraries.Add(LibPrefix + "libssl" + LibPostfixAndExt);
PublicAdditionalLibraries.Add(LibPrefix + "libcrypto" + LibPostfixAndExt);
}
else
{
if (Target.Platform == UnrealTargetPlatform.Win64)
{
PublicIncludePaths.Add(OpenSSLPath + "include");
LibFolder += "Win64/";
if(WindowsPlatform.Compiler == WindowsCompiler.VisualStudio2013)
{
LibFolder += "VS2013/";
}
else
{
LibFolder += "VS2012/";
}
LibPostfixAndExt += "lib";
PublicLibraryPaths.Add(OpenSSLPath + LibFolder);
}
PublicAdditionalLibraries.Add(LibPrefix + "libeay32" + LibPostfixAndExt);
PublicAdditionalLibraries.Add(LibPrefix + "ssleay32" + LibPostfixAndExt);
PublicDelayLoadDLLs.AddRange(
new string[] {
"libeay32.dll",
"ssleay32.dll"
}
);
}
}
}