Files
UnrealEngineUWP/Engine/Source/Programs/AutomationTool/Scripts/WrangleContentForDebugging.Automation.cs
axel riffard f0898e1c0d Remote Prepare to Debug
#jira UE-120589
#rb josh.adams
#preflight 63db32457a39a18021af8c38

[CL 23964201 by axel riffard in ue5-main branch]
2023-02-01 23:02:14 -05:00

40 lines
1.3 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using Microsoft.Extensions.Logging;
using System.Collections.Generic;
using AutomationTool;
using UnrealBuildTool;
using System.IO;
//using System.Linq;
using EpicGames.Core;
namespace AutomationScripts
{
public class WrangleContentForDebugging : BuildCommand
{
public override void ExecuteBuild()
{
if (ParseParam("usage"))
{
LogInformation("Arguments : \n -platform=<platform> \n -ProjectFilePath=<path/ProjectName.uproject> Mandatory. Path to a path to the roject you want to Wrangle Debug Data to. \n -SourcePackage=<path/PackageName.ipa> Optional. Specify the .ipa to wrangle data for debug from. When not specified, [ProjectPath]/Build/[IOS|TVOS]/[ProjectName].ipa will be used.");
}
FileReference ProjectFile = new FileReference(ParseParamValue("ProjectFilePath=", null));
var Params = new ProjectParams
(
Command: this,
RawProjectPath: ProjectFile
);
LogInformation("======= WrangleContentForDebugging - Start =======");
var SC = Project.CreateDeploymentContext(Params, false);
//Project newProject;
SC[0].StageTargetPlatform.PrepareForDebugging(ParseParamValue("SourcePackage=", null), ParseParamValue("ProjectFilePath=", null), ParseParamValue("platform=", null));
LogInformation("======= WrangleContentForDebugging - Done ========");
}
}
}