Files
UnrealEngineUWP/Engine/Source/Programs/UnrealBuildTool/Platform/Mac/ApplePlatformSDK.cs
adam kinge 47d47510ab Add a static library version check for iOS/tvOS and Mac. A BuildException will be thrown if a library is not built with the minimum supported Xcode (13.4.1 or earlier for 5.1).
#jira UE-151508
#review-21059319
#preflight 62cdaa973d7ef9abccf8215b

[CL 22112491 by adam kinge in ue5-main branch]
2022-09-21 10:23:44 -04:00

50 lines
1.5 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.IO;
using EpicGames.Core;
using System.Text.RegularExpressions;
using Microsoft.Win32;
using System.Diagnostics;
using Microsoft.Extensions.Logging;
///////////////////////////////////////////////////////////////////
// If you are looking for supported version numbers, look in the
// ApplePlatformSDK.Versions.cs file next to this file, and
// als IOS/IOSPlatformSDK.Versions.cs
///////////////////////////////////////////////////////////////////
namespace UnrealBuildTool
{
internal partial class ApplePlatformSDK : UEBuildPlatformSDK
{
public ApplePlatformSDK(ILogger Logger)
: base(Logger)
{
}
public override bool TryConvertVersionToInt(string? StringValue, out UInt64 OutValue, string? Hint)
{
return UnrealBuildBase.ApplePlatformSDK.TryConvertVersionToInt(StringValue, out OutValue);
}
protected override string? GetInstalledSDKVersion()
{
return UnrealBuildBase.ApplePlatformSDK.InstalledSDKVersion;
}
protected override SDKStatus HasRequiredManualSDKInternal()
{
SDKStatus Status = base.HasRequiredManualSDKInternal();
// iTunes is technically only need to deploy to and run on connected devices.
// This code removes requirement for Windows builders to have Xcode installed.
if (Status == SDKStatus.Invalid && !RuntimePlatform.IsMac && Environment.GetEnvironmentVariable("IsBuildMachine") == "1")
{
Status = SDKStatus.Valid;
}
return Status;
}
}
}