You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
87 lines
5.9 KiB
XML
87 lines
5.9 KiB
XML
<?xml version='1.0' ?>
|
|
<BuildGraph xmlns="http://www.epicgames.com/BuildGraph" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.epicgames.com/BuildGraph ../Schema.xsd" >
|
|
|
|
<!-- Project Options -->
|
|
<Option Name="ProjectFile" DefaultValue="_Unknown_" Restrict=".+" Description="The projects to cook"/>
|
|
<Option Name="ProjectName" DefaultValue="_Unknown_" Restrict=".+" Description="The projects to cook"/>
|
|
<Option Name="ProjectDir" DefaultValue="_Unknown_" Restrict=".+" Description="The projects to cook"/>
|
|
<Option Name="EditorTarget" DefaultValue="$(ProjectName)Editor" Description="Compile name of the editor target"/>
|
|
|
|
<!-- Note we can not make the default='', because the default is used for some validation. -->
|
|
<Error Message="No project file specified" If="'$(ProjectFile)' == '_Unknown_'"/>
|
|
<Error Message="No project name specified" If="'$(ProjectName)' == '_Unknown_'"/>
|
|
<Error Message="No project dir specified" If="'$(ProjectDir)' == '_Unknown_'"/>
|
|
|
|
<!-- Platform Options -->
|
|
<Option Name="TargetPlatform" DefaultValue="Windows" Restrict=".+" Description="The platform to cook"/>
|
|
|
|
<!-- Agent Options -->
|
|
<Option Name="AgentType" DefaultValue="" Description="The platform to cook"/>
|
|
<Property Name="AgentType" Value="IterativeCompareAgent_$(ProjectName)_$(TargetPlatform)" If="'$(AgentType)' == ''"/>
|
|
|
|
<Option Name="WithUBA" Restrict="true|false" DefaultValue="true" Description="Whether to use UBA compile or not"/>
|
|
<Property Name="UBACompileArgs" Value=""/>
|
|
<Property Name="UBACompileArgs" Value="-UBA -ActionStallReportTime=300 -UBALinkRemote -UBAPrintSummary" If="$(WithUBA)"/>
|
|
|
|
<!-- Agent=IterativeCompareAgent variables -->
|
|
<Property Name="FullPathProjectDir" Value="$(RootDir)/$(ProjectDir)"/>
|
|
<Property Name="EditorPlatform" Value="Win64"/>
|
|
<Property Name="CommonCookArgs" Value="-targetplatform=$(TargetPlatform) -zenstore -cookincremental"/>
|
|
<Property Name="IterativeCompareDescriptiveName" Value="IterativeCompare $(EditorPlatform) $(ProjectName)"/>
|
|
<Property Name="PlatformCookedDir" Value="$(FullPathProjectDir)/Saved/Cooked/$(TargetPlatform)"/>
|
|
<Property Name="CompareDirIncremental" Value="$(FullPathProjectDir)/Intermediate/IterativeCompare/Iter/$(TargetPlatform)"/>
|
|
<Property Name="CompareDirRecook" Value="$(FullPathProjectDir)/Intermediate/IterativeCompare/Recook/$(TargetPlatform)"/>
|
|
<Property Name="NewLine" Value=" "/>
|
|
|
|
<Agent Name="IterativeCompareAgent" Type="$(AgentType)">
|
|
<Node Name="$(IterativeCompareDescriptiveName)">
|
|
<!-- Compile. -->
|
|
<Log Message="$(NewLine)========== IterativeCompare.xml: Compile =========="/>
|
|
<Compile Target="ShaderCompileWorker" Platform="$(EditorPlatform)" Project="$(ProjectFile)" Configuration="Development" Arguments="$(UBACompileArgs)"/>
|
|
<Compile Target="ZenLaunch" Platform="$(EditorPlatform)" Configuration="Development" Arguments="$(UBACompileArgs)"/>
|
|
<Compile Target="$(EditorTarget)" Platform="$(EditorPlatform)" Project="$(ProjectFile)" Configuration="Development" Arguments="$(UBACompileArgs)"/>
|
|
|
|
<!-- Execute the incremental cook (we don't pass -forcerecook). -->
|
|
<Log Message="$(NewLine)========== IterativeCompare.xml: Incremental Cook =========="/>
|
|
<Commandlet Name="Cook" Project="$(ProjectFile)" Arguments="$(CommonCookArgs)"/>
|
|
|
|
<!-- Move all cook artifacts to the compare_incremental dir. -->
|
|
<Log Message="$(NewLine)========== IterativeCompare.xml: Move =========="/>
|
|
<Log Message="Delete Directories=$(CompareDirIncremental)"/>
|
|
<Delete Directories="$(CompareDirIncremental)"/>
|
|
<Log Message="Move From=$(PlatformCookedDir)/*.* To=$(CompareDirIncremental)"/>
|
|
<Move From="$(PlatformCookedDir)/*.*" To="$(CompareDirIncremental)" ErrorIfNotFound="true"/>
|
|
<Log Message="Delete Directories=$(PlatformCookedDir)"/>
|
|
<Delete Directories="$(PlatformCookedDir)"/>
|
|
|
|
<!-- Write the files from incremental cook's zenstore out into CompareDirIncremental. -->
|
|
<Log Message="$(NewLine)========== IterativeCompare.xml: ZenMirror Incremental Cook =========="/>
|
|
<Log Message="ZenMirror Project=$(ProjectFile) Platform=$(TargetPlatform) DestinationFileDir=$(CompareDirIncremental)"/>
|
|
<ZenMirror Project="$(ProjectFile)" Platform="$(TargetPlatform)" DestinationFileDir="$(CompareDirIncremental)"/>
|
|
|
|
<!-- Execute the forcerecook cook. -->
|
|
<Log Message="$(NewLine)========== IterativeCompare.xml: Non-Incremental Cook =========="/>
|
|
<Commandlet Name="Cook" Project="$(ProjectFile)" Arguments="$(CommonCookArgs) -forcerecook"/>
|
|
|
|
<!-- Copy all cook artifacts to the compare_incremental dir. Copy rather than move so they remain
|
|
behind for the next instance of this job to use in an incremental cook. -->
|
|
<Log Message="$(NewLine)========== IterativeCompare.xml: Copy =========="/>
|
|
<Log Message="Delete Directories=$(CompareDirRecook)"/>
|
|
<Delete Directories="$(CompareDirRecook)"/>
|
|
<Log Message="Copy From=$(PlatformCookedDir)/*.* To=$(CompareDirRecook)"/>
|
|
<Copy From="$(PlatformCookedDir)/*.*" To="$(CompareDirRecook)" ErrorIfNotFound="true"/>
|
|
|
|
<!-- Write the files from forcerecook's zenstore out into CompareDirRecook. -->
|
|
<Log Message="$(NewLine)========== IterativeCompare.xml: ZenMirror ForceRecook Cook =========="/>
|
|
<Log Message="ZenMirror Project=$(ProjectFile) Platform=$(TargetPlatform) DestinationFileDir=$(CompareDirRecook)"/>
|
|
<ZenMirror Project="$(ProjectFile)" Platform="$(TargetPlatform)" DestinationFileDir="$(CompareDirRecook)"/>
|
|
|
|
<!-- Compare the incremental cook with the non-incremental cook. -->
|
|
<Log Message="$(NewLine)========== IterativeCompare.xml: DiffCook =========="/>
|
|
<Commandlet Name="DiffCook" Project="$(ProjectFile)" Arguments="-base=$(CompareDirRecook) -comp=$(CompareDirIncremental) -targetplatform=$(TargetPlatform) -addedverbosity=error -removedverbosity=error -modifiedverbosity=warning -hide=modifiedpackages"/>
|
|
</Node>
|
|
</Agent>
|
|
|
|
<Aggregate Name="IterativeCompare" Requires="$(IterativeCompareDescriptiveName)"/>
|
|
|
|
</BuildGraph> |