Files
UnrealEngineUWP/Engine/Source/Programs/AutomationTool/Scripts/BenchmarkBuild/BenchmarkNopCompileTask.cs
Andrew Grant d199343f3e Added nofastbuild support to benchmark script.
Improved some reporting

#jira #rb na

[CL 11567261 by Andrew Grant in 4.25 branch]
2020-02-20 13:01:08 -05:00

39 lines
864 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using AutomationTool;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tools.DotNETCommon;
using UnrealBuildTool;
namespace AutomationTool.Benchmark
{
class BenchmarkNopCompileTask : BenchmarkBuildTask
{
BenchmarkBuildTask PreTask;
public BenchmarkNopCompileTask(string InProject, string InTarget, UnrealTargetPlatform InPlatform, BuildOptions InOptions)
: base(InProject, InTarget, InPlatform, InOptions)
{
PreTask = new BenchmarkBuildTask(InProject, InTarget, InPlatform, InOptions);
TaskModifiers.Add("nopcompile");
}
protected override bool PerformPrequisites()
{
if (!base.PerformPrequisites())
{
return false;
}
PreTask.Run();
return !PreTask.Failed;
}
}
}