2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 17:13:27 -04:00
|
|
|
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
|
|
|
|
|
public class libcurl : ModuleRules
|
|
|
|
|
{
|
|
|
|
|
public libcurl(TargetInfo Target)
|
|
|
|
|
{
|
|
|
|
|
Type = ModuleType.External;
|
|
|
|
|
|
2014-04-02 18:09:23 -04:00
|
|
|
Definitions.Add("WITH_LIBCURL=1");
|
2014-06-13 16:31:00 -04:00
|
|
|
string LibCurlPath = UEBuildConfiguration.UEThirdPartySourceDirectory + "libcurl/";
|
2014-04-02 18:09:23 -04:00
|
|
|
if (Target.Platform == UnrealTargetPlatform.Linux)
|
2014-03-14 17:13:27 -04:00
|
|
|
{
|
2014-10-10 18:43:35 -04:00
|
|
|
PublicIncludePaths.Add(LibCurlPath + "include/Linux/" + Target.Architecture);
|
2014-05-30 13:28:40 -04:00
|
|
|
PublicLibraryPaths.Add(LibCurlPath + "lib/Linux/" + Target.Architecture);
|
2014-03-14 17:13:27 -04:00
|
|
|
PublicAdditionalLibraries.Add("curl");
|
|
|
|
|
PublicAdditionalLibraries.Add("crypto");
|
|
|
|
|
PublicAdditionalLibraries.Add("ssl");
|
|
|
|
|
PublicAdditionalLibraries.Add("dl");
|
|
|
|
|
}
|
2014-08-21 20:35:47 -04:00
|
|
|
else if (Target.Platform == UnrealTargetPlatform.Android)
|
|
|
|
|
{
|
2014-08-26 09:56:29 -04:00
|
|
|
// toolchain will filter properly
|
|
|
|
|
PublicIncludePaths.Add(LibCurlPath + "include/Android/ARMv7");
|
|
|
|
|
PublicLibraryPaths.Add(LibCurlPath + "lib/Android/ARMv7");
|
|
|
|
|
PublicIncludePaths.Add(LibCurlPath + "include/Android/ARM64");
|
|
|
|
|
PublicLibraryPaths.Add(LibCurlPath + "lib/Android/ARM64");
|
|
|
|
|
PublicIncludePaths.Add(LibCurlPath + "include/Android/x86");
|
|
|
|
|
PublicLibraryPaths.Add(LibCurlPath + "lib/Android/x86");
|
|
|
|
|
PublicIncludePaths.Add(LibCurlPath + "include/Android/x64");
|
|
|
|
|
PublicLibraryPaths.Add(LibCurlPath + "lib/Android/x64");
|
|
|
|
|
|
|
|
|
|
PublicAdditionalLibraries.Add("curl");
|
2014-08-21 20:35:47 -04:00
|
|
|
PublicAdditionalLibraries.Add("crypto");
|
|
|
|
|
PublicAdditionalLibraries.Add("ssl");
|
|
|
|
|
PublicAdditionalLibraries.Add("dl");
|
|
|
|
|
}
|
|
|
|
|
else if (Target.Platform == UnrealTargetPlatform.Win32 ||
|
2014-06-12 17:02:52 -04:00
|
|
|
Target.Platform == UnrealTargetPlatform.Win64 || (Target.Platform == UnrealTargetPlatform.HTML5 && Target.Architecture == "-win32"))
|
2014-04-02 18:09:23 -04:00
|
|
|
{
|
|
|
|
|
PublicIncludePaths.Add(LibCurlPath + "include/Windows");
|
|
|
|
|
|
|
|
|
|
string LibCurlLibPath = LibCurlPath + "lib/";
|
|
|
|
|
LibCurlLibPath += (Target.Platform == UnrealTargetPlatform.Win64) ? "Win64/" : "Win32/";
|
|
|
|
|
LibCurlLibPath += "VS" + WindowsPlatform.GetVisualStudioCompilerVersionName();
|
|
|
|
|
PublicLibraryPaths.Add(LibCurlLibPath);
|
|
|
|
|
|
|
|
|
|
PublicAdditionalLibraries.Add("libcurl_a.lib");
|
|
|
|
|
Definitions.Add("CURL_STATICLIB=1");
|
|
|
|
|
}
|
2014-03-14 17:13:27 -04:00
|
|
|
}
|
|
|
|
|
}
|