You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
78 lines
5.0 KiB
XML
78 lines
5.0 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="CompareDir" Value="$(FullPathProjectDir)/Intermediate/IterativeCompare/$(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)"/>
|
|
|
|
<!-- Write the files from incremental cook's zenstore out into the Saved/Cooked/Platform dir. -->
|
|
<Log Message="$(NewLine)========== IterativeCompare.xml: ZenMirror Incremental Cook =========="/>
|
|
<Log Message="ZenMirror Project=$(ProjectFile) Platform=$(TargetPlatform)"/>
|
|
<ZenMirror Project="$(ProjectFile)" Platform="$(TargetPlatform)"/>
|
|
|
|
<!-- Move all cook artifacts to the compare dir. -->
|
|
<Log Message="$(NewLine)========== IterativeCompare.xml: Move =========="/>
|
|
<Log Message="Delete Directories=$(CompareDir)"/>
|
|
<Delete Directories="$(CompareDir)"/>
|
|
<Log Message="Move From=$(PlatformCookedDir)/*.* To=$(CompareDir)"/>
|
|
<Move From="$(PlatformCookedDir)/*.*" To="$(CompareDir)" ErrorIfNotFound="true"/>
|
|
<Log Message="Delete Directories=$(PlatformCookedDir)"/>
|
|
<Delete Directories="$(PlatformCookedDir)"/>
|
|
|
|
<!-- Execute the forcerecook cook. -->
|
|
<Log Message="$(NewLine)========== IterativeCompare.xml: Non-Incremental Cook =========="/>
|
|
<Commandlet Name="Cook" Project="$(ProjectFile)" Arguments="$(CommonCookArgs) -forcerecook"/>
|
|
|
|
<!-- Write the files from forcerecook's zenstore out into the Saved/Cooked/Platform dir. -->
|
|
<Log Message="$(NewLine)========== IterativeCompare.xml: ZenMirror ForceRecook Cook =========="/>
|
|
<Log Message="ZenMirror Project=$(ProjectFile) Platform=$(TargetPlatform)"/>
|
|
<ZenMirror Project="$(ProjectFile)" Platform="$(TargetPlatform)"/>
|
|
|
|
<!-- Compare the incremental cook with the non-incremental cook. -->
|
|
<Log Message="$(NewLine)========== IterativeCompare.xml: DiffCook =========="/>
|
|
<Commandlet Name="DiffCook" Project="$(ProjectFile)" Arguments="-base=$(PlatformCookedDir) -comp=$(CompareDir) -targetplatform=$(TargetPlatform) -addedverbosity=error -removedverbosity=error -modifiedverbosity=warning"/>
|
|
</Node>
|
|
</Agent>
|
|
|
|
<Aggregate Name="IterativeCompare" Requires="$(IterativeCompareDescriptiveName)"/>
|
|
|
|
</BuildGraph> |