2018-12-14 13:44:01 -05:00
|
|
|
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using System.IO;
|
2018-09-04 14:32:41 -04:00
|
|
|
using Tools.DotNETCommon;
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
namespace UnrealBuildTool
|
|
|
|
|
{
|
2015-09-24 13:47:13 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// Base class for platform-specific project generators
|
|
|
|
|
/// </summary>
|
2019-01-14 12:15:37 -05:00
|
|
|
class WindowsProjectGenerator : PlatformProjectGenerator
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
2015-09-24 13:47:13 -04:00
|
|
|
/// <summary>
|
2019-01-14 12:15:37 -05:00
|
|
|
/// Constructor
|
2015-09-24 13:47:13 -04:00
|
|
|
/// </summary>
|
2019-01-14 12:15:37 -05:00
|
|
|
/// <param name="Arguments">Command line arguments passed to the project generator</param>
|
|
|
|
|
public WindowsProjectGenerator(CommandLineArguments Arguments)
|
|
|
|
|
: base(Arguments)
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
2019-01-14 12:15:37 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Enumerate all the platforms that this generator supports
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override IEnumerable<UnrealTargetPlatform> GetPlatforms()
|
|
|
|
|
{
|
|
|
|
|
yield return UnrealTargetPlatform.Win32;
|
|
|
|
|
yield return UnrealTargetPlatform.Win64;
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
/// VisualStudio project generation functions
|
|
|
|
|
///
|
2015-09-24 13:47:13 -04:00
|
|
|
/// <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>
|
2014-03-14 14:13:41 -04:00
|
|
|
public override string GetVisualStudioPlatformName(UnrealTargetPlatform InPlatform, UnrealTargetConfiguration InConfiguration)
|
|
|
|
|
{
|
|
|
|
|
if (InPlatform == UnrealTargetPlatform.Win64)
|
|
|
|
|
{
|
|
|
|
|
return "x64";
|
|
|
|
|
}
|
|
|
|
|
return InPlatform.ToString();
|
|
|
|
|
}
|
2014-12-11 15:44:40 -05:00
|
|
|
|
|
|
|
|
public override bool RequiresVSUserFileGeneration()
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
}
|