You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #jira none #ROBOMERGE-OWNER: ryan.durand #ROBOMERGE-AUTHOR: ryan.durand #ROBOMERGE-SOURCE: CL 10869242 in //Fortnite/Release-12.00/... via CL 10869536 #ROBOMERGE-BOT: FORTNITE (Main -> Dev-EngineMerge) (v613-10869866) [CL 10870955 by Ryan Durand in Main branch]
68 lines
1.8 KiB
C#
68 lines
1.8 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Tools.DotNETCommon;
|
|
|
|
namespace UnrealBuildTool
|
|
{
|
|
/// <summary>
|
|
/// Builds a target
|
|
/// </summary>
|
|
[ToolMode("Execute", ToolModeOptions.XmlConfig | ToolModeOptions.BuildPlatforms | ToolModeOptions.SingleInstance | ToolModeOptions.StartPrefetchingEngine | ToolModeOptions.ShowExecutionTime)]
|
|
class ExecuteMode : ToolMode
|
|
{
|
|
/// <summary>
|
|
/// Whether we should just export the outdated actions list
|
|
/// </summary>
|
|
[CommandLine("-Actions=", Required = true)]
|
|
public FileReference ActionsFile = null;
|
|
|
|
/// <summary>
|
|
/// Main entry point
|
|
/// </summary>
|
|
/// <param name="Arguments">Command-line arguments</param>
|
|
/// <returns>One of the values of ECompilationResult</returns>
|
|
public override int Execute(CommandLineArguments Arguments)
|
|
{
|
|
Arguments.ApplyTo(this);
|
|
|
|
// Read the XML configuration files
|
|
XmlConfig.ApplyTo(this);
|
|
|
|
// Create the build configuration object, and read the settings
|
|
BuildConfiguration BuildConfiguration = new BuildConfiguration();
|
|
XmlConfig.ApplyTo(BuildConfiguration);
|
|
Arguments.ApplyTo(BuildConfiguration);
|
|
|
|
// Read the actions file
|
|
List<Action> Actions;
|
|
using(Timeline.ScopeEvent("ActionGraph.ReadActions()"))
|
|
{
|
|
Actions = ActionGraph.ImportJson(ActionsFile);
|
|
}
|
|
|
|
// Link the action graph
|
|
using(Timeline.ScopeEvent("ActionGraph.Link()"))
|
|
{
|
|
ActionGraph.Link(Actions);
|
|
}
|
|
|
|
// Execute the actions
|
|
using (Timeline.ScopeEvent("ActionGraph.ExecuteActions()"))
|
|
{
|
|
ActionGraph.ExecuteActions(BuildConfiguration, Actions);
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
}
|
|
}
|
|
|