Files
UnrealEngineUWP/Engine/Source/Runtime/Online/SSL/SSL.Build.cs
Josh Adams b0e4357576 - UBT Code changes to remove 32-bit Windows support (C++ code for 32-bit still exists)
#rb marc.audy (concept, not each file)

[CL 15265424 by Josh Adams in ue5-main branch]
2021-01-31 15:09:58 -04:00

65 lines
1.4 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 ||
Target.Platform == UnrealTargetPlatform.Lumin;
}
}
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"));
PrivateIncludePaths.AddRange(
new string[] {
"Runtime/Online/SSL/Private",
}
);
AddEngineThirdPartyPrivateStaticDependencies(Target, "OpenSSL");
if (Target.Platform == UnrealTargetPlatform.Win64)
{
PublicSystemLibraries.Add("crypt32.lib");
}
}
else
{
PublicDefinitions.Add("WITH_SSL=0");
}
}
}