37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1050:Declare types in namespaces", Justification = "<Pending>")]
|
|
public class DotNetPerforceLibTarget : TargetRules
|
|
{
|
|
public DotNetPerforceLibTarget(TargetInfo target) : base(target)
|
|
{
|
|
Type = TargetType.Program;
|
|
LinkType = TargetLinkType.Monolithic;
|
|
LaunchModuleName = "DotNetPerforceLib";
|
|
|
|
bShouldCompileAsDLL = true;
|
|
|
|
bBuildDeveloperTools = false;
|
|
bCompileICU = false;
|
|
bBuildWithEditorOnlyData = false;
|
|
bCompileAgainstEngine = false;
|
|
bCompileAgainstCoreUObject = false;
|
|
|
|
string configFolder = (target.Configuration == UnrealTargetConfiguration.Shipping) ? "Release" : "Debug";
|
|
if (target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
OutputFile = $"Binaries/DotNET/EpicGames.Perforce.Native/win-x64/{configFolder}/EpicGames.Perforce.Native.dll";
|
|
}
|
|
else if (target.Platform == UnrealTargetPlatform.Mac)
|
|
{
|
|
OutputFile = $"Binaries/DotNET/EpicGames.Perforce.Native/mac-x64/{configFolder}/EpicGames.Perforce.Native.dylib";
|
|
}
|
|
else if (target.Platform == UnrealTargetPlatform.Linux)
|
|
{
|
|
OutputFile = $"Binaries/DotNET/EpicGames.Perforce.Native/linux-x64/{configFolder}/EpicGames.Perforce.Native.so";
|
|
}
|
|
}
|
|
}
|