Files
UnrealEngineUWP/Engine/Source/ThirdParty/libcurl/libcurl.Build.cs
Michael Kirzinger 5f4e2b4396 Copying //UE4/Dev-Online to Dev-Main (//UE4/Dev-Main)
Source: //UE4/Dev-Online 4860295

#rb none

[CL 4860323 by Michael Kirzinger in Main branch]
2019-01-31 15:08:35 -05:00

63 lines
2.4 KiB
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class libcurl : ModuleRules
{
public libcurl(ReadOnlyTargetRules Target) : base(Target)
{
Type = ModuleType.External;
PublicDefinitions.Add("WITH_LIBCURL=1");
string LinuxLibCurlPath = Target.UEThirdPartySourceDirectory + "libcurl/7_48_0/";
string WinLibCurlPath = Target.UEThirdPartySourceDirectory + "libcurl/curl-7.55.1/";
string AndroidLibCurlPath = Target.UEThirdPartySourceDirectory + "libcurl/";
if (Target.IsInPlatformGroup(UnrealPlatformGroup.Unix))
{
string platform = "/Linux/" + Target.Architecture;
string IncludePath = LinuxLibCurlPath + "include" + platform;
string LibraryPath = LinuxLibCurlPath + "lib" + platform;
PublicIncludePaths.Add(IncludePath);
PublicLibraryPaths.Add(LibraryPath);
PublicAdditionalLibraries.Add(LibraryPath + "/libcurl.a");
PrivateDependencyModuleNames.Add("SSL");
}
else if (Target.IsInPlatformGroup(UnrealPlatformGroup.Android))
{
// toolchain will filter properly
PublicIncludePaths.Add(AndroidLibCurlPath + "include/Android/ARMv7");
PublicLibraryPaths.Add(AndroidLibCurlPath + "lib/Android/ARMv7");
PublicIncludePaths.Add(AndroidLibCurlPath + "include/Android/ARM64");
PublicLibraryPaths.Add(AndroidLibCurlPath + "lib/Android/ARM64");
PublicIncludePaths.Add(AndroidLibCurlPath + "include/Android/x86");
PublicLibraryPaths.Add(AndroidLibCurlPath + "lib/Android/x86");
PublicIncludePaths.Add(AndroidLibCurlPath + "include/Android/x64");
PublicLibraryPaths.Add(AndroidLibCurlPath + "lib/Android/x64");
PublicAdditionalLibraries.Add("curl");
// PublicAdditionalLibraries.Add("crypto");
// PublicAdditionalLibraries.Add("ssl");
// PublicAdditionalLibraries.Add("dl");
}
else if (Target.Platform == UnrealTargetPlatform.Win32 || Target.Platform == UnrealTargetPlatform.Win64)
{
PublicIncludePaths.Add(WinLibCurlPath + "include/" + Target.Platform.ToString() + "/VS" + Target.WindowsPlatform.GetVisualStudioCompilerVersionName());
PublicLibraryPaths.Add(WinLibCurlPath + "lib/" + Target.Platform.ToString() + "/VS" + Target.WindowsPlatform.GetVisualStudioCompilerVersionName());
PublicAdditionalLibraries.Add("libcurl_a.lib");
PublicDefinitions.Add("CURL_STATICLIB=1");
// Our build requires OpenSSL and zlib, so ensure thye're linked in
AddEngineThirdPartyPrivateStaticDependencies(Target, new string[]
{
"OpenSSL",
"zlib"
});
}
}
}