You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira #preflight 631a5c04967ffc68fbf0dd8f [CL 21911226 by bryan sefcik in ue5-main branch]
60 lines
1.2 KiB
C#
60 lines
1.2 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
|
|
public class SSL : ModuleRules
|
|
{
|
|
protected virtual bool bPlatformSupportsSSL
|
|
{
|
|
get
|
|
{
|
|
return
|
|
Target.Platform == UnrealTargetPlatform.Mac ||
|
|
Target.Platform == UnrealTargetPlatform.Win64 ||
|
|
Target.IsInPlatformGroup(UnrealPlatformGroup.Unix) ||
|
|
Target.Platform == UnrealTargetPlatform.IOS ||
|
|
Target.Platform == UnrealTargetPlatform.Android;
|
|
}
|
|
}
|
|
|
|
protected virtual bool bUseDefaultSSLCert
|
|
{
|
|
get
|
|
{
|
|
return
|
|
Target.Platform == UnrealTargetPlatform.Mac ||
|
|
Target.Platform == UnrealTargetPlatform.IOS;
|
|
}
|
|
}
|
|
|
|
public SSL(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
PublicDefinitions.Add("SSL_PACKAGE=1");
|
|
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"Core",
|
|
}
|
|
);
|
|
|
|
if (bPlatformSupportsSSL)
|
|
{
|
|
PublicDefinitions.Add("WITH_SSL=1");
|
|
PrivateDefinitions.Add("USE_DEFAULT_SSLCERT=" + (bUseDefaultSSLCert ? "1" : "0"));
|
|
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "OpenSSL");
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
PublicSystemLibraries.Add("crypt32.lib");
|
|
}
|
|
}
|
|
else
|
|
{
|
|
PublicDefinitions.Add("WITH_SSL=0");
|
|
}
|
|
|
|
UnsafeTypeCastWarningLevel = WarningLevel.Error;
|
|
}
|
|
}
|