Files
UnrealEngineUWP/Engine/Source/Runtime/Online/HTTP/HTTP.Build.cs
Rolando Caloca 5b82f15def Copying //UE4/Dev-RenderPlat-Staging@11388153 to //UE4/Main
#rb none
#rnx

[CL 11388545 by Rolando Caloca in Main branch]
2020-02-12 13:27:19 -05:00

69 lines
1.6 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class HTTP : ModuleRules
{
public HTTP(ReadOnlyTargetRules Target) : base(Target)
{
PublicDefinitions.Add("HTTP_PACKAGE=1");
PrivateIncludePaths.AddRange(
new string[] {
"Runtime/Online/HTTP/Private",
}
);
PrivateDependencyModuleNames.AddRange(
new string[] {
"Core",
"Sockets",
"SSL",
}
);
bool bWithCurl = false;
if (Target.Platform.IsInGroup(UnrealPlatformGroup.Windows))
{
AddEngineThirdPartyPrivateStaticDependencies(Target, "WinHttp");
AddEngineThirdPartyPrivateStaticDependencies(Target, "libcurl");
AddEngineThirdPartyPrivateStaticDependencies(Target, "OpenSSL");
bWithCurl = true;
}
else if (Target.IsInPlatformGroup(UnrealPlatformGroup.Unix) ||
Target.IsInPlatformGroup(UnrealPlatformGroup.Android))
{
AddEngineThirdPartyPrivateStaticDependencies(Target, "libcurl");
AddEngineThirdPartyPrivateStaticDependencies(Target, "OpenSSL");
bWithCurl = true;
}
else if (Target.Platform == UnrealTargetPlatform.Switch)
{
AddEngineThirdPartyPrivateStaticDependencies(Target, "libcurl");
bWithCurl = true;
}
else
{
PublicDefinitions.Add("WITH_LIBCURL=0");
}
if (bWithCurl)
{
PublicDefinitions.Add("CURL_ENABLE_DEBUG_CALLBACK=1");
if (Target.Configuration != UnrealTargetConfiguration.Shipping)
{
PublicDefinitions.Add("CURL_ENABLE_NO_TIMEOUTS_OPTION=1");
}
}
if (Target.Platform == UnrealTargetPlatform.IOS || Target.Platform == UnrealTargetPlatform.TVOS || Target.Platform == UnrealTargetPlatform.Mac)
{
PublicFrameworks.Add("Security");
}
}
}