Files
UnrealEngineUWP/Engine/Source/ThirdParty/Perforce/Perforce.Build.cs
Dmitry Rekman 7b70307ded Linux: TPS building improvements by #UE4Linux folks.
- Patches to HACD, hlslcc,mcpp and nvtess (licenses updated where appropriate).
- Support for Linux target platform in a bunch of TPS modules.
- Automate update of dependencies to an extent.
- Misc. changes (accomodate perforce and git flows, minor code bug when dealing with TPS etc).

#codereview Mike.Fricker, Ben.Marsh

[CL 2069938 by Dmitry Rekman in Main branch]
2014-05-12 08:37:47 -04:00

66 lines
1.8 KiB
C#

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class Perforce : ModuleRules
{
public Perforce(TargetInfo Target)
{
Type = ModuleType.External;
string LibFolder = "lib/";
string LibPrefix = "";
string LibPostfixAndExt = ".";
string P4APIPath = UEBuildConfiguration.UEThirdPartyDirectory + "Perforce/p4api-2012.1/";
if (Target.Platform == UnrealTargetPlatform.Win64)
{
LibFolder += "win64";
}
else if (Target.Platform == UnrealTargetPlatform.Win32)
{
LibFolder += "win32";
}
else if (Target.Platform == UnrealTargetPlatform.Mac)
{
LibFolder += "mac";
}
else if (Target.Platform == UnrealTargetPlatform.Linux)
{
LibFolder += "linux";
}
if (Target.Platform == UnrealTargetPlatform.Win64 || Target.Platform == UnrealTargetPlatform.Win64)
{
if (Target.Configuration == UnrealTargetConfiguration.Debug && BuildConfiguration.bDebugBuildsActuallyUseDebugCRT)
LibPostfixAndExt = "d.";
if (WindowsPlatform.Compiler == WindowsCompiler.VisualStudio2013)
{
P4APIPath = UEBuildConfiguration.UEThirdPartyDirectory + "Perforce/p4api-2014.2/";
}
else
{
P4APIPath = UEBuildConfiguration.UEThirdPartyDirectory + "Perforce/p4api-2013.1-BETA/";
}
LibPostfixAndExt += "lib";
PublicLibraryPaths.Add(P4APIPath + LibFolder);
}
else
{
LibPrefix = P4APIPath + LibFolder + "/";
LibPostfixAndExt = ".a";
}
PublicIncludePaths.Add(P4APIPath + "include");
PublicAdditionalLibraries.Add(LibPrefix + "libclient" + LibPostfixAndExt);
if (Target.Platform != UnrealTargetPlatform.Win64)
{
PublicAdditionalLibraries.Add(LibPrefix + "libp4sslstub" + LibPostfixAndExt);
}
PublicAdditionalLibraries.Add(LibPrefix + "librpc" + LibPostfixAndExt);
PublicAdditionalLibraries.Add(LibPrefix + "libsupp" + LibPostfixAndExt);
}
}