Files
UnrealEngineUWP/Engine/Source/ThirdParty/OpenSSL/OpenSSL.Build.cs
Matthew Griffin ccd90b10b4 Listing runtime dependencies in module rules instead of InstalledEngineFilters.ini
Added code when filtering rocket files to search through build products for target files and add their runtime dependencies to the filter rules.

#jira UEB-372

[CL 2672116 by Matthew Griffin in Main branch]
2015-08-28 06:22:07 -04:00

55 lines
2.0 KiB
C#

// Copyright 1998-2015 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/VS2013/";
LibPostfixAndExt += "lib";
PublicLibraryPaths.Add(OpenSSLPath + LibFolder);
}
PublicAdditionalLibraries.Add(LibPrefix + "libeay32" + LibPostfixAndExt);
PublicAdditionalLibraries.Add(LibPrefix + "ssleay32" + LibPostfixAndExt);
PublicDelayLoadDLLs.AddRange(
new string[] {
"libeay32.dll",
"ssleay32.dll"
}
);
if (Target.Platform == UnrealTargetPlatform.Win64 || Target.Platform == UnrealTargetPlatform.Win32)
{
RuntimeDependencies.Add(new RuntimeDependency("$(EngineDir)/Binaries/ThirdParty/OpenSSL/Win64/VS2012/libeay32.dll"));
RuntimeDependencies.Add(new RuntimeDependency("$(EngineDir)/Binaries/ThirdParty/OpenSSL/Win64/VS2012/ssleay32.dll"));
RuntimeDependencies.Add(new RuntimeDependency("$(EngineDir)/Binaries/ThirdParty/OpenSSL/Win64/VS2013/libeay32.dll"));
RuntimeDependencies.Add(new RuntimeDependency("$(EngineDir)/Binaries/ThirdParty/OpenSSL/Win64/VS2013/ssleay32.dll"));
}
}
}
}