You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
59 lines
1.6 KiB
C#
59 lines
1.6 KiB
C#
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Diagnostics;
|
|
using System.IO;
|
|
using Tools.DotNETCommon;
|
|
|
|
namespace UnrealBuildTool
|
|
{
|
|
/// <summary>
|
|
/// Base class for platform-specific project generators
|
|
/// </summary>
|
|
class WindowsProjectGenerator : PlatformProjectGenerator
|
|
{
|
|
/// <summary>
|
|
/// Constructor
|
|
/// </summary>
|
|
/// <param name="Arguments">Command line arguments passed to the project generator</param>
|
|
public WindowsProjectGenerator(CommandLineArguments Arguments)
|
|
: base(Arguments)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate all the platforms that this generator supports
|
|
/// </summary>
|
|
public override IEnumerable<UnrealTargetPlatform> GetPlatforms()
|
|
{
|
|
yield return UnrealTargetPlatform.Win32;
|
|
yield return UnrealTargetPlatform.Win64;
|
|
}
|
|
|
|
///
|
|
/// VisualStudio project generation functions
|
|
///
|
|
/// <summary>
|
|
/// Return the VisualStudio platform name for this build platform
|
|
/// </summary>
|
|
/// <param name="InPlatform"> The UnrealTargetPlatform being built</param>
|
|
/// <param name="InConfiguration"> The UnrealTargetConfiguration being built</param>
|
|
/// <returns>string The name of the platform that VisualStudio recognizes</returns>
|
|
public override string GetVisualStudioPlatformName(UnrealTargetPlatform InPlatform, UnrealTargetConfiguration InConfiguration)
|
|
{
|
|
if (InPlatform == UnrealTargetPlatform.Win64)
|
|
{
|
|
return "x64";
|
|
}
|
|
return InPlatform.ToString();
|
|
}
|
|
|
|
public override bool RequiresVSUserFileGeneration()
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|