Files
UnrealEngineUWP/Engine/Source/ThirdParty/Perforce/Perforce.Build.cs
ben marsh 2b46ba7b94 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 4662404 in //UE4/Main/...
#ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking)

[CL 4662413 by ben marsh in Dev-Networking branch]
2018-12-14 13:44:01 -05:00

61 lines
2.0 KiB
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class Perforce : ModuleRules
{
public Perforce(ReadOnlyTargetRules Target) : base(Target)
{
Type = ModuleType.External;
string LibFolder = "lib/";
string LibPrefix = "";
string LibPostfixAndExt = ".";
string P4APIPath = Target.UEThirdPartySourceDirectory + "Perforce/p4api-2015.2/";
if (Target.Platform == UnrealTargetPlatform.Win64)
{
LibFolder += "win64";
}
else if (Target.Platform == UnrealTargetPlatform.Win32)
{
LibFolder += "win32";
}
else if (Target.Platform == UnrealTargetPlatform.Mac)
{
P4APIPath = Target.UEThirdPartySourceDirectory + "Perforce/p4api-2014.1/";
LibFolder += "mac";
}
else if (Target.Platform == UnrealTargetPlatform.Linux)
{
P4APIPath = Target.UEThirdPartySourceDirectory + "Perforce/p4api-2014.1/" ;
LibFolder += "linux/" + Target.Architecture;
}
if (Target.Platform == UnrealTargetPlatform.Win64 || Target.Platform == UnrealTargetPlatform.Win32)
{
if (Target.Configuration == UnrealTargetConfiguration.Debug && Target.bDebugBuildsActuallyUseDebugCRT)
LibPostfixAndExt = "d.";
LibPostfixAndExt += "lib";
PublicLibraryPaths.Add(P4APIPath + LibFolder);
}
else
{
LibPrefix = P4APIPath + LibFolder + "/";
LibPostfixAndExt = ".a";
}
PublicSystemIncludePaths.Add(P4APIPath + "include");
PublicAdditionalLibraries.Add(LibPrefix + "libclient" + LibPostfixAndExt);
if (Target.Platform != UnrealTargetPlatform.Win64 && Target.Platform != UnrealTargetPlatform.Mac)
{
PublicAdditionalLibraries.Add(LibPrefix + "libp4sslstub" + LibPostfixAndExt);
}
PublicAdditionalLibraries.Add(LibPrefix + "librpc" + LibPostfixAndExt);
PublicAdditionalLibraries.Add(LibPrefix + "libsupp" + LibPostfixAndExt);
}
}