2014-12-07 19:09:38 -05:00
|
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-07-01 10:58:33 -04:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using AutomationTool;
|
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
|
|
|
|
|
|
|
[Help("UAT command to call into the integrated IPhonePackager code")]
|
|
|
|
|
|
class IPhonePackager : BuildCommand
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void ExecuteBuild()
|
|
|
|
|
|
{
|
2015-08-20 09:37:11 -04:00
|
|
|
|
Log("************************* Calling IPP");
|
2014-07-01 10:58:33 -04:00
|
|
|
|
|
|
|
|
|
|
Platform IOS = Platform.Platforms[UnrealTargetPlatform.IOS];
|
|
|
|
|
|
string Command = ParseParamValue("cmd", "");
|
|
|
|
|
|
|
|
|
|
|
|
// check the return value
|
|
|
|
|
|
int ReturnValue = IOS.RunCommand("IPP:" + Command);
|
|
|
|
|
|
if (ReturnValue != 0)
|
|
|
|
|
|
{
|
|
|
|
|
|
throw new AutomationException("Internal IPP returned {0}", ReturnValue);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|