Files
UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Perforce.Native/DotNetPerforceLib.Target.cs
2025-05-18 13:04:45 +08:00

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";
}
}
}