You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
|
|
public class libcurl : ModuleRules
|
|
{
|
|
public libcurl(TargetInfo Target)
|
|
{
|
|
Type = ModuleType.External;
|
|
|
|
Definitions.Add("WITH_LIBCURL=1");
|
|
string LibCurlPath = UEBuildConfiguration.UEThirdPartySourceDirectory + "libcurl/";
|
|
if (Target.Platform == UnrealTargetPlatform.Linux)
|
|
{
|
|
PublicIncludePaths.Add(LibCurlPath + "include");
|
|
PublicLibraryPaths.Add(LibCurlPath + "lib/Linux/" + Target.Architecture);
|
|
PublicAdditionalLibraries.Add("curl");
|
|
PublicAdditionalLibraries.Add("crypto");
|
|
PublicAdditionalLibraries.Add("ssl");
|
|
PublicAdditionalLibraries.Add("dl");
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Win32 ||
|
|
Target.Platform == UnrealTargetPlatform.Win64 || (Target.Platform == UnrealTargetPlatform.HTML5 && Target.Architecture == "-win32"))
|
|
{
|
|
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");
|
|
}
|
|
}
|
|
}
|