// Copyright Epic Games, Inc. All Rights Reserved.
using EpicGames.Core;
namespace UnrealBuildTool
{
/////////////////////////////////////////////////////////////////////////////////////
// If you are looking for version numbers, see Engine/Config/Apple/Apple_SDK.json
/////////////////////////////////////////////////////////////////////////////////////
// NOTE: These are currently only used for Mac targets
partial class ApplePlatformSDK : UEBuildPlatformSDK
{
///
/// Get the default deployment target version for the given target type. This will be put into the .plist file for runtime check
/// Will be in the format A.B.C
///
///
///
public string GetDeploymentTargetVersion(TargetType Type)
{
string? DeploymentTarget = null;
if (Type == TargetType.Editor || Type == TargetType.Program)
{
DeploymentTarget = GetVersionFromConfig("EditorDeploymentTarget");
}
DeploymentTarget ??= GetRequiredVersionFromConfig("DeploymentTarget");
return DeploymentTarget;
}
///
/// Get the default build target version for the given target type. This will be passed to clang when compiling/linking
/// Will be in the format AA.BB
///
///
///
public string GetBuildTargetVersion(TargetType Type)
{
string? DeploymentTarget = null;
if (Type == TargetType.Editor || Type == TargetType.Program)
{
DeploymentTarget = GetVersionFromConfig("EditorBuildTarget");
}
DeploymentTarget ??= GetRequiredVersionFromConfig("BuildTarget");
return DeploymentTarget;
}
}
}