2020-02-18 17:19:54 -05:00
|
|
|
|
// 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;
|
2020-12-21 23:07:37 -04:00
|
|
|
|
using EpicGames.Core;
|
2020-02-18 17:19:54 -05:00
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
|
|
|
|
|
|
|
namespace AutomationTool.Benchmark
|
|
|
|
|
|
{
|
|
|
|
|
|
class BenchmarkNopCompileTask : BenchmarkBuildTask
|
|
|
|
|
|
{
|
|
|
|
|
|
BenchmarkBuildTask PreTask;
|
|
|
|
|
|
|
2020-03-09 17:03:55 -04:00
|
|
|
|
public BenchmarkNopCompileTask(FileReference InProjectFile, string InTarget, UnrealTargetPlatform InPlatform, BuildOptions InOptions)
|
|
|
|
|
|
: base(InProjectFile, InTarget, InPlatform, InOptions)
|
2020-02-18 17:19:54 -05:00
|
|
|
|
{
|
2020-03-09 17:03:55 -04:00
|
|
|
|
PreTask = new BenchmarkBuildTask(InProjectFile, InTarget, InPlatform, InOptions);
|
2020-02-21 13:09:10 -05:00
|
|
|
|
TaskModifiers.Add("nopcompile");
|
2020-02-18 17:19:54 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override bool PerformPrequisites()
|
|
|
|
|
|
{
|
|
|
|
|
|
if (!base.PerformPrequisites())
|
|
|
|
|
|
{
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PreTask.Run();
|
|
|
|
|
|
|
|
|
|
|
|
return !PreTask.Failed;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|