Files
UnrealEngineUWP/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildPlatformFactory.cs
Ben Marsh 13d012685f Merging copyright update from 4.19 branch.
#rb none
#rnx
#jira

[CL 3818977 by Ben Marsh in Staging-4.19 branch]
2018-01-02 15:30:26 -05:00

42 lines
1.1 KiB
C#

// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UnrealBuildTool
{
/// <summary>
/// Factory class for registering platforms at startup
/// </summary>
abstract class UEBuildPlatformFactory
{
/// <summary>
/// Attempt to register a build platform, checking whether it is a valid platform in installed builds
/// </summary>
public void TryRegisterBuildPlatforms(SDKOutputLevel OutputLevel, bool bValidatingPlatforms)
{
// We need all platforms to be registered when we run -validateplatform command to check SDK status of each
if (bValidatingPlatforms || InstalledPlatformInfo.IsValidPlatform(TargetPlatform))
{
RegisterBuildPlatforms(OutputLevel);
}
}
/// <summary>
/// Gets the target platform for an individual factory
/// </summary>
protected abstract UnrealTargetPlatform TargetPlatform
{
get;
}
/// <summary>
/// Register the platform with the UEBuildPlatform class
/// </summary>
protected abstract void RegisterBuildPlatforms(SDKOutputLevel OutputLevel);
}
}