1070 lines
65 KiB
XML
Executable File
1070 lines
65 KiB
XML
Executable File
<Project DefaultTargets="ArchiveTestDeploy" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<!-- PropertyGroup -->
|
|
<PropertyGroup>
|
|
<!-- Compiler values -->
|
|
<devenv>C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.com</devenv>
|
|
<incredibuild>C:\Program Files\Xoreax\IncrediBuild\BuildConsole.exe</incredibuild>
|
|
<vsibuild>C:\Program Files\SN Systems\Common\VSI\bin\vsibuild.exe</vsibuild>
|
|
|
|
<!-- In case we run this MSBuild project outside of CruiseControl -->
|
|
<CCNetLabel Condition="'$(CCNetLabel)'==''">test</CCNetLabel>
|
|
<CCNetWorkingDirectory Condition="'$(CCNetWorkingDirectory)'==''">.</CCNetWorkingDirectory>
|
|
<CCNetIntegrationStatus Condition="'$(CCNetIntegrationStatus)' == ''">Success</CCNetIntegrationStatus>
|
|
|
|
<baseDir Condition="'$(rageDir)'==''">$(RAGE_ROOT_FOLDER)</baseDir>
|
|
<assetRootDir Condition="'$(assetRootDir)'==''">T:</assetRootDir>
|
|
|
|
<toolsDir Condition="'$(toolsDir)'==''">$(RS_TOOLSBIN)</toolsDir>
|
|
|
|
<webUrlPostfix Condition="'$(webUrlPostfix)'==''">ViewBuildReport.aspx</webUrlPostfix>
|
|
|
|
<commonRunParams>-nopopups -usevsoutput</commonRunParams>
|
|
<commonTestParams>-noBlockOnLostFocus -quiet $(commonRunParams)</commonTestParams>
|
|
|
|
<smokeTestDuration Condition="'$(smokeTestDuration)' == ''">3.0</smokeTestDuration>
|
|
<smokeTestTimeOut Condition="'$(smokeTestTimeOut)' == ''">60.0</smokeTestTimeOut>
|
|
|
|
<useLightShaders>-shaderlib=$\prt\ManyLights\lib -shaderdb=$(assetRootDir)\rageland\executers\SampleExes\Shaders\db</useLightShaders>
|
|
|
|
<targetXbox Condition="'$(xbox)' != ''">/x $(xbox)</targetXbox>
|
|
|
|
<resourceLocation Condition="'$(resourceLocation)' == ''">auto</resourceLocation>
|
|
<resourcePlatform Condition="'$(resourcePlatform)' == ''">all</resourcePlatform>
|
|
|
|
<!-- Default codeLine value -->
|
|
<codeLine Condition="'$(codeLine)'==''">Dev</codeLine>
|
|
|
|
<!-- Controls the status of the MS Build project -->
|
|
<buildSuccess>true</buildSuccess>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Zips Include="$(assetRootDir)\rageland\assets\resource\*.zip" />
|
|
|
|
<ShaderLocations Include="$(assetRootDir)/rage/assets/sample_wilderness/wildshaders/**/*.*" >
|
|
<OutputFolder>wildshaders/</OutputFolder>
|
|
</ShaderLocations>
|
|
<ShaderLocations Include="$(assetRootDir)/rage/assets/prt/ManyLights/lib/**/*.*" >
|
|
<OutputFolder>lightshaders/</OutputFolder>
|
|
</ShaderLocations>
|
|
<ShaderLocations Include="$(assetRootDir)/rage/assets/prt/ManyLights/templates/**/*.*" >
|
|
<OutputFolder>lightshaders/templates</OutputFolder>
|
|
</ShaderLocations>
|
|
<ShaderLocations Include="$(assetRootDir)/rage/assets/prt/ManyLights/types/**/*.*" >
|
|
<OutputFolder>lightshaders/types</OutputFolder>
|
|
</ShaderLocations>
|
|
</ItemGroup>
|
|
|
|
<!-- To help setup debug and default properties -->
|
|
<Choose>
|
|
<When Condition="'$(USERNAME)'=='ragemonkey'">
|
|
<PropertyGroup>
|
|
<!-- Default deployDir value -->
|
|
<deployDir Condition="'$(deployDir)'==''">C:\RAGESamples\SampleReleases</deployDir>
|
|
|
|
<!-- Default logDirectory value -->
|
|
<logDirectory Condition="'$(logDirectory)'==''">T:\rageLogs\$(CCNetLabel)</logDirectory>
|
|
|
|
<!-- Default .targets file. Make sure we always look for this in $(rageDir) as the CruiseControl
|
|
server will run this MSBuild project from its dev location. -->
|
|
<importProjectFile Condition="'$(importProjectFile)'==''">$(importProjectFile)</importProjectFile>
|
|
|
|
<rollingReportFilesDeployDir Condition="'$(rollingReportFilesDeployDir)' == ''">$(deployDir)\rollingReportFiles</rollingReportFilesDeployDir>
|
|
<sampleExesDeployDir Condition="'$(sampleExesDeployDir)' == ''">$(deployDir)\SampleExes</sampleExesDeployDir>
|
|
<processorsDeployDir Condition="'$(processorsDeployDir)' == ''">$(deployDir)\SampleExes\Processors</processorsDeployDir>
|
|
<shadersDeployDir Condition="'$(shadersDeployDir)' == ''">$(deployDir)\SampleExes\Shaders</shadersDeployDir>
|
|
<startersDeployDir Condition="'$(startersDeployDir)' == ''">$(deployDir)\SampleExes\starters</startersDeployDir>
|
|
<zipsDeployDir Condition="'$(zipsDeployDir)' == ''">$(deployDir)\SampleExes\zips</zipsDeployDir>
|
|
|
|
<!-- Default screenshot location -->
|
|
<screenshotSubFolder Condition="'$(CCNetLabel)' == ''">local</screenshotSubFolder>
|
|
<screenshotSubFolder Condition="'$(CCNetLabel)' != ''">$(CCNetLabel)</screenshotSubFolder>
|
|
<screenshotFolder Condition="'$(screenshotFolder)' == ''">$(deployDir)\ScreenShots\$(screenshotSubFolder)</screenshotFolder>
|
|
|
|
<!-- Default path to PS3SDK -->
|
|
<ps3sdk>$(SCE_PS3_ROOT)</ps3sdk>
|
|
|
|
</PropertyGroup>
|
|
</When>
|
|
<Otherwise>
|
|
<PropertyGroup>
|
|
<!-- Default deployDir value -->
|
|
<deployDir Condition="'$(deployDir)'==''">$(assetRootDir)\SampleReleases</deployDir>
|
|
|
|
<!-- Default logDirectory value. If it was specified, add the CCNetLabel subfolder, otherwise put it in a default location with
|
|
a CCNetLabel subfolder. -->
|
|
<logDirectory Condition="'$(logDirectory)'!=''">$(logDirectory)\$(CCNetLabel)</logDirectory>
|
|
<logDirectory Condition="'$(logDirectory)'==''">T:\rageLogs\$(CCNetLabel)</logDirectory>
|
|
|
|
<!-- Default emailAddress value. If it was specified, force is to be the current user's email. -->
|
|
<emailAddress Condition="'$(emailAddress)'!=''">$(USERNAME)@rockstarsandiego.com</emailAddress>
|
|
|
|
<!-- Default .targets file. Set this for your own debugging purposes. -->
|
|
<importProjectFile Condition="'$(importProjectFile)'==''">$(importProjectFile)</importProjectFile>
|
|
|
|
<rollingReportFilesDeployDir Condition="'$(rollingReportFilesDeployDir)' == ''">$(deployDir)\rollingReportFiles</rollingReportFilesDeployDir>
|
|
<sampleExesDeployDir Condition="'$(sampleExesDeployDir)' == ''">$(deployDir)\SampleExes</sampleExesDeployDir>
|
|
<processorsDeployDir Condition="'$(processorsDeployDir)' == ''">$(deployDir)\SampleExes\Processors</processorsDeployDir>
|
|
<shadersDeployDir Condition="'$(shadersDeployDir)' == ''">$(deployDir)\SampleExes\Shaders</shadersDeployDir>
|
|
<startersDeployDir Condition="'$(startersDeployDir)' == ''">$(deployDir)\SampleExes\starters</startersDeployDir>
|
|
<zipsDeployDir Condition="'$(zipsDeployDir)' == ''">$(deployDir)\SampleExes\zips</zipsDeployDir>
|
|
|
|
<!-- Default screenshot location -->
|
|
<screenshotSubFolder>local</screenshotSubFolder>
|
|
<screenshotFolder Condition="'$(screenshotFolder)' == ''">$(deployDir)\ScreenShots\$(screenshotSubFolder)</screenshotFolder>
|
|
|
|
<!-- Default path to PS3SDK -->
|
|
<ps3sdk>$(SCE_PS3_ROOT)</ps3sdk>
|
|
</PropertyGroup>
|
|
</Otherwise>
|
|
</Choose>
|
|
|
|
<ItemGroup>
|
|
<SimpleReportFiles Include="$(screenshotFolder)\*.jpg" />
|
|
</ItemGroup>
|
|
|
|
<!-- Import -->
|
|
<Import Project="$(importProjectFile)"/>
|
|
|
|
<!-- PrepareDeployDir -->
|
|
<Target Name="PrepareDeployDir">
|
|
<MakeDir Condition="!Exists( '$(deployDir)' )"
|
|
Directories="$(deployDir)"/>
|
|
|
|
<MakeDir Condition="!Exists( '$(rollingReportFilesDeployDir)' )"
|
|
Directories="$(rollingReportFilesDeployDir)"/>
|
|
|
|
<MakeDir Condition="!Exists( '$(sampleExesDeployDir)' )"
|
|
Directories="$(sampleExesDeployDir)"/>
|
|
<MakeDir Condition="!Exists( '$(processorsDeployDir)' )"
|
|
Directories="$(processorsDeployDir)"/>
|
|
<MakeDir Condition="!Exists( '$(shadersDeployDir)' )"
|
|
Directories="$(shadersDeployDir)"/>
|
|
<MakeDir Condition="!Exists( '$(startersDeployDir)' )"
|
|
Directories="$(startersDeployDir)"/>
|
|
<MakeDir Condition="!Exists( '$(zipsDeployDir)' )"
|
|
Directories="$(zipsDeployDir)"/>
|
|
|
|
<MakeDir Condition="!Exists( '$(deployDir)\ScreenShots' )"
|
|
Directories="$(deployDir)\ScreenShots"/>
|
|
</Target>
|
|
|
|
<!-- Archive -->
|
|
<UsingTask TaskName="RageBuildTasks.DeleteOldFolders" AssemblyFile="$(rageTasksDLL)" />
|
|
<UsingTask TaskName="RageBuildTasks.ArchiveLogs" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="Archive" DependsOnTargets="PrepareDeployDir">
|
|
<DeleteOldFolders SourceDirectory="$(deployDir)\ScreenShots"
|
|
SearchPattern="Rage-1.*"
|
|
NumberOfFoldersToKeep="50"/>
|
|
<DeleteOldFolders SourceDirectory="$(deployDir)\ScreenShots"
|
|
SearchPattern="Rage-Release-1.*"
|
|
NumberOfFoldersToKeep="50"/>
|
|
<DeleteOldFolders SourceDirectory="$(deployDir)\ScreenShots"
|
|
SearchPattern="Rage-PSN-1.*"
|
|
NumberOfFoldersToKeep="50"/>
|
|
<DeleteOldFolders SourceDirectory="$(deployDir)\ScreenShots"
|
|
SearchPattern="Rage-PSN-Release-1.*"
|
|
NumberOfFoldersToKeep="50"/>
|
|
<ArchiveLogs Condition="'$(logDirectory)'!=''"
|
|
ZipFilename="$(logDirectory)\$(CCNetLabel).zip"
|
|
SourceDirectory="$(logDirectory)"
|
|
ExcludeFileExtensions="*.zip"/>
|
|
</Target>
|
|
|
|
<!-- SetPotentialBuildLabel -->
|
|
<UsingTask TaskName="RageBuildTasks.ExecuteCommand" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="SetPotentialBuildLabel" Condition="'$(USERNAME)'=='ragemonkey'">
|
|
<ExecuteCommand Command="p4"
|
|
Arguments="-p $(perforcePort) -c $(perforceClient) -u $(perforceUser) tag -l PotentialGoodBuild $(perforceRagePrefix)/...#head"/>
|
|
</Target>
|
|
|
|
<!-- SetGoodBuildLabel -->
|
|
<UsingTask TaskName="RageBuildTasks.ExecuteCommand" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="SetGoodBuildLabel" Condition="'$(USERNAME)'=='ragemonkey' AND '$(CCNetIntegrationStatus)' == 'Success'">
|
|
<ExecuteCommand Command="p4"
|
|
Arguments="-p $(perforcePort) -c $(perforceClient) -u $(perforceUser) tag -l RageGoodBuild $(perforceRagePrefix)/...@PotentialGoodBuild"
|
|
IgnoreExitCode="true"/>
|
|
</Target>
|
|
|
|
<!-- SetEnvironmentVariables -->
|
|
<UsingTask TaskName="RageBuildTasks.SetupEnvironment" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="SetEnvironmentVariables">
|
|
<SetupEnvironment Port="$(perforcePort)"
|
|
Client="$(perforceClient)"
|
|
User="$(perforceUser)"
|
|
EnvironmentVariables=""/>
|
|
</Target>
|
|
|
|
<!-- AllPreShaderSolutions -->
|
|
<Target Name="AllPreShaderSolutions">
|
|
<CreateItem Include="@(PreShaderSolution)">
|
|
<Output TaskParameter="Include" ItemName="NewPreShaderSolution" />
|
|
</CreateItem>
|
|
</Target>
|
|
|
|
<!-- BuildPreShaders -->
|
|
<UsingTask TaskName="RageBuildTasks.BuildSolution" AssemblyFile="$(rageTasksDLL)" />
|
|
<UsingTask TaskName="RageBuildTasks.CopySolutionBinaries" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="BuildPreShaders" DependsOnTargets="SetEnvironmentVariables;AllPreShaderSolutions">
|
|
<!-- Compile anything that the shaders need -->
|
|
<BuildSolution Condition="'%(NewPreShaderSolution.config)'!='' AND '%(NewPreShaderSolution.copyOnly)'!='true'"
|
|
Solution="$(rageDir)\%(NewPreShaderSolution.Identity)"
|
|
Project="%(NewPreShaderSolution.project)"
|
|
Configuration="%(NewPreShaderSolution.config)"
|
|
CompileWithDevenv="%(NewPreShaderSolution.compileWithDevenv)"
|
|
Disabled="%(NewPreShaderSolution.Disabled)"
|
|
NoVSI="%(NewPreShaderSolution.compileWithoutVSI)">
|
|
<Output TaskParameter="BuildSuccess" PropertyName="buildSuccess"/>
|
|
</BuildSolution>
|
|
|
|
<!-- Copy them to their expected locations -->
|
|
<!--
|
|
<CopySolutionBinaries Condition="'%(NewPreShaderSolution.config)'!=''"
|
|
Solution="$(rageDir)\%(NewPreShaderSolution.Identity)"
|
|
Project="%(NewPreShaderSolution.project)"
|
|
Configuration="%(NewPreShaderSolution.config)"
|
|
BuildContinuedOnError="%(NewPreShaderSolution.continueOnError)"
|
|
RenameDestFile="%(NewPreShaderSolution.renameDestFile)"
|
|
CopyDestFolder="$(rageDir)\%(NewPreShaderSolution.copyDestDir)"
|
|
CopyDebugFiles="%(NewPreShaderSolution.copyDebugFiles)"/>
|
|
-->
|
|
</Target>
|
|
|
|
<!-- CleanPreShaders -->
|
|
<UsingTask TaskName="RageBuildTasks.BuildSolution" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="CleanPreShaders" DependsOnTargets="SetEnvironmentVariables;AllPreShaderSolutions">
|
|
<!-- Clean everything that the shaders need -->
|
|
<BuildSolution Condition="'%(NewPreShaderSolution.config)'!='' AND '%(NewPreShaderSolution.copyOnly)'!='true'"
|
|
Solution="$(rageDir)\%(NewPreShaderSolution.Identity)"
|
|
Project="%(NewPreShaderSolution.project)"
|
|
Configuration="%(NewPreShaderSolution.config)"
|
|
CompileWithDevenv="%(NewPreShaderSolution.compileWithDevenv)"
|
|
Disabled="%(NewPreShaderSolution.Disabled)"
|
|
NoVSI="%(NewPreShaderSolution.compileWithoutVSI)"
|
|
Clean="true">
|
|
<Output TaskParameter="BuildSuccess" PropertyName="buildSuccess"/>
|
|
</BuildSolution>
|
|
</Target>
|
|
|
|
<!-- AllShaderSolutions -->
|
|
<Target Name="AllShaderSolutions">
|
|
<CreateItem Include="@(ShaderSolution)">
|
|
<Output TaskParameter="Include" ItemName="NewShaderSolution" />
|
|
</CreateItem>
|
|
</Target>
|
|
|
|
<!-- BuildShaders -->
|
|
<UsingTask TaskName="RageBuildTasks.BuildSolution" AssemblyFile="$(rageTasksDLL)" />
|
|
<UsingTask TaskName="RageBuildTasks.CopySolutionBinaries" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="BuildShaders" DependsOnTargets="BuildPreShaders;SetEnvironmentVariables;AllShaderSolutions">
|
|
<!-- Make sure the template folder exists -->
|
|
<MakeDir Directories="$(assetRootDir)\rage\assets\tune\shaders\templates"/>
|
|
|
|
<!-- Recompile the shaders -->
|
|
<BuildSolution Condition="'%(NewShaderSolution.config)'!='' AND '%(NewShaderSolution.copyOnly)'!='true'"
|
|
Solution="$(rageDir)\%(NewShaderSolution.Identity)"
|
|
Project="%(NewShaderSolution.project)"
|
|
Configuration="%(NewShaderSolution.config)"
|
|
CompileWithDevenv="%(NewShaderSolution.compileWithDevenv)"
|
|
Disabled="%(NewShaderSolution.Disabled)"
|
|
NoVSI="%(NewShaderSolution.compileWithoutVSI)">
|
|
<Output TaskParameter="BuildSuccess" PropertyName="buildSuccess"/>
|
|
</BuildSolution>
|
|
</Target>
|
|
|
|
<!-- CleanShaders -->
|
|
<UsingTask TaskName="RageBuildTasks.BuildSolution" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="CleanShaders" DependsOnTargets="CleanPreShaders;SetEnvironmentVariables;AllShaderSolutions">
|
|
<!-- Clean the shaders -->
|
|
<BuildSolution Condition="'%(NewShaderSolution.config)'!='' AND '%(NewShaderSolution.copyOnly)'!='true'"
|
|
Solution="$(rageDir)\%(NewShaderSolution.Identity)"
|
|
Project="%(NewShaderSolution.project)"
|
|
Configuration="%(NewShaderSolution.config)"
|
|
CompileWithDevenv="%(NewShaderSolution.compileWithDevenv)"
|
|
Disabled="%(NewShaderSolution.Disabled)"
|
|
NoVSI="%(NewShaderSolution.compileWithoutVSI)"
|
|
Clean="true">
|
|
<Output TaskParameter="BuildSuccess" PropertyName="buildSuccess"/>
|
|
</BuildSolution>
|
|
</Target>
|
|
|
|
<!-- DeployShaders -->
|
|
<Target Name="DeployShaders" DependsOnTargets="BuildShaders">
|
|
<Copy SourceFiles="@(ShaderLocations)"
|
|
DestinationFolder="$(shadersDeployDir)\%(OutputFolder)\%(RecursiveDir)"
|
|
SkipUnchangedFiles="true"/>
|
|
</Target>
|
|
|
|
<!-- AllProcessors -->
|
|
<Target Name="AllProcessors">
|
|
<CreateItem Include="@(Processor)">
|
|
<Output TaskParameter="Include" ItemName="NewProcessor" />
|
|
</CreateItem>
|
|
</Target>
|
|
|
|
<!-- BuildProcessor -->
|
|
<UsingTask TaskName="RageBuildTasks.BuildSolution" AssemblyFile="$(rageTasksDLL)" />
|
|
<UsingTask TaskName="RageBuildTasks.CopySolutionBinaries" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="BuildProcessor" DependsOnTargets="BuildShaders;SetEnvironmentVariables;AllProcessors">
|
|
<!-- Compile the processors -->
|
|
<BuildSolution Condition="'%(NewProcessor.config)'!='' AND '%(NewProcessor.copyOnly)'!='true'"
|
|
Solution="$(rageDir)\%(NewProcessor.Identity)"
|
|
Project="%(NewProcessor.project)"
|
|
Configuration="%(NewProcessor.config)"
|
|
CompileWithDevenv="%(NewProcessor.compileWithDevenv)"
|
|
Disabled="%(NewProcessor.Disabled)"
|
|
NoVSI="%(NewProcessor.compileWithoutVSI)">
|
|
<Output TaskParameter="BuildSuccess" PropertyName="buildSuccess"/>
|
|
</BuildSolution>
|
|
|
|
<!-- Copy them to their expected locations -->
|
|
<!--
|
|
<CopySolutionBinaries Condition="'%(NewProcessor.config)'!=''"
|
|
Solution="$(rageDir)\%(NewProcessor.Identity)"
|
|
Project="%(NewProcessor.project)"
|
|
Configuration="%(NewProcessor.config)"
|
|
BuildContinuedOnError="%(NewProcessor.continueOnError)"
|
|
RenameDestFile="%(NewProcessor.renameDestFile)"
|
|
CopyDestFolder="$(rageDir)\%(NewProcessor.copyDestDir)"
|
|
CopyDebugFiles="%(NewProcessor.copyDebugFiles)"/>
|
|
-->
|
|
</Target>
|
|
|
|
<!-- CleanProcessor -->
|
|
<UsingTask TaskName="RageBuildTasks.BuildSolution" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="CleanProcessor" DependsOnTargets="CleanShaders;SetEnvironmentVariables;AllProcessors">
|
|
<!-- Clean the processors -->
|
|
<BuildSolution Condition="'%(NewProcessor.config)'!='' AND '%(NewProcessor.copyOnly)'!='true'"
|
|
Solution="$(rageDir)\%(NewProcessor.Identity)"
|
|
Project="%(NewProcessor.project)"
|
|
Configuration="%(NewProcessor.config)"
|
|
CompileWithDevenv="%(NewProcessor.compileWithDevenv)"
|
|
Disabled="%(NewProcessor.Disabled)"
|
|
NoVSI="%(NewProcessor.compileWithoutVSI)"
|
|
Clean="true">
|
|
<Output TaskParameter="BuildSuccess" PropertyName="buildSuccess"/>
|
|
</BuildSolution>
|
|
</Target>
|
|
|
|
<!-- RunProcessor -->
|
|
<UsingTask TaskName="RageBuildTasks.ExecuteCommand" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="RunProcessor" DependsOnTargets="BuildProcessor;SetEnvironmentVariables;AllProcessors"
|
|
Inputs="$(rageDir)\%(NewProcessor.copyDestDir)\%(NewProcessor.renameDestFile).exe"
|
|
Outputs="$(rageDir)\%(NewProcessor.RelativeDir)%(NewProcessor.resultDir)\%(NewProcessor.Filename)_%(NewProcessor.resultDir).timestamp">
|
|
<!-- Execute the pre-test command -->
|
|
<Exec Condition="'%(NewProcessor.preTestCommand)' != ''"
|
|
Command="%(NewProcessor.preTestCommand) %(NewProcessor.preTestParams)"/>
|
|
|
|
<Message Condition="'%(NewProcessor.Test1)' != ''"
|
|
Importance="high"
|
|
Text="%3CSample>" />
|
|
<Message Condition="'%(NewProcessor.Test1)' != ''"
|
|
Importance="high"
|
|
Text="%3CName>%(NewProcessor.Filename)%3C/Name>"/>
|
|
<Message Condition="'%(NewProcessor.Test1)' != ''"
|
|
Importance="high"
|
|
Text="%3CDescription>%(NewProcessor.description)%3C/Description>"/>
|
|
<Message Condition="'%(NewProcessor.Test1)' != ''"
|
|
Importance="high"
|
|
Text="--------------- Running Processor %(NewProcessor.Filename) -----------------"/>
|
|
|
|
<!-- Execute the Processor -->
|
|
<ExecuteCommand Condition="'%(NewProcessor.Test1)' != ''"
|
|
Command="$(rageDir)\%(NewProcessor.copyDestDir)\%(NewProcessor.renameDestFile).exe"
|
|
Arguments="%(NewProcessor.Test1)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewProcessor.Test2)' != ''"
|
|
Command="$(rageDir)\%(NewProcessor.copyDestDir)\%(NewProcessor.renameDestFile).exe"
|
|
Arguments="%(NewProcessor.Test2)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewProcessor.Test3)' != ''"
|
|
Command="$(rageDir)\%(NewProcessor.copyDestDir)\%(NewProcessor.renameDestFile).exe"
|
|
Arguments="%(NewProcessor.Test3)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewProcessor.Test4)' != ''"
|
|
Command="$(rageDir)\%(NewProcessor.copyDestDir)\%(NewProcessor.renameDestFile).exe"
|
|
Arguments="%(NewProcessor.Test4)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewProcessor.Test5)' != ''"
|
|
Command="$(rageDir)\%(NewProcessor.copyDestDir)\%(NewProcessor.renameDestFile).exe"
|
|
Arguments="%(NewProcessor.Test5)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewProcessor.Test6)' != ''"
|
|
Command="$(rageDir)\%(NewProcessor.copyDestDir)\%(NewProcessor.renameDestFile).exe"
|
|
Arguments="%(NewProcessor.Test6)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewProcessor.Test7)' != ''"
|
|
Command="$(rageDir)\%(NewProcessor.copyDestDir)\%(NewProcessor.renameDestFile).exe"
|
|
Arguments="%(NewProcessor.Test7)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewProcessor.Test8)' != ''"
|
|
Command="$(rageDir)\%(NewProcessor.copyDestDir)\%(NewProcessor.renameDestFile).exe"
|
|
Arguments="%(NewProcessor.Test8)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
|
|
<Message Condition="'%(NewProcessor.Test1)' != ''"
|
|
Importance="high"
|
|
Text="----------------------------------------------------------"/>
|
|
<Message Condition="'%(NewProcessor.Test1)' != ''"
|
|
Importance="high"
|
|
Text="%3C/Sample>"/>
|
|
<Touch Condition="'%(NewProcessor.Test1)' != ''"
|
|
Files="$(rageDir)\%(NewProcessor.RelativeDir)%(NewProcessor.resultDir)\%(NewProcessor.Filename)_%(NewProcessor.resultDir).timestamp"
|
|
AlwaysCreate="true"/>
|
|
</Target>
|
|
|
|
<!-- CleanRunProcessor -->
|
|
<Target Name="CleanRunProcessor" DependsOnTargets="AllProcessors">
|
|
<Delete Condition="Exists( '$(rageDir)\%(NewProcessor.RelativeDir)%(NewProcessor.resultDir)\%(NewProcessor.Filename)_%(NewProcessor.resultDir).timestamp' )"
|
|
Files="$(rageDir)\%(NewProcessor.RelativeDir)%(NewProcessor.resultDir)\%(NewProcessor.Filename)_%(NewProcessor.resultDir).timestamp"/>
|
|
</Target>
|
|
|
|
<!-- DeployProcessor -->
|
|
<UsingTask TaskName="RageBuildTasks.CopySolutionBinaries" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="DeployProcessor" DependsOnTargets="BuildProcessor;AllProcessors">
|
|
<!-- Copy them to their expected locations -->
|
|
<!--
|
|
<CopySolutionBinaries Condition="'%(NewProcessor.config)'!=''"
|
|
Solution="$(rageDir)\%(NewProcessor.Identity)"
|
|
Project="%(NewProcessor.project)"
|
|
Configuration="%(NewProcessor.config)"
|
|
BuildContinuedOnError="%(NewProcessor.continueOnError)"
|
|
RenameDestFile="%(NewProcessor.renameDestFile)"
|
|
CopyDestFolder="$(processorsDeployDir)"
|
|
CopyDebugFiles="%(NewProcessor.copyDebugFiles)"/>
|
|
-->
|
|
</Target>
|
|
|
|
<!-- AllPreSolutions -->
|
|
<Target Name="AllPreSolutions">
|
|
<CreateItem Include="@(PreSolution)">
|
|
<Output TaskParameter="Include" ItemName="NewPreSolution" />
|
|
</CreateItem>
|
|
</Target>
|
|
|
|
<!-- BuildPreSolution -->
|
|
<UsingTask TaskName="RageBuildTasks.BuildSolution" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="BuildPreSolution" DependsOnTargets="BuildShaders;SetEnvironmentVariables;AllPreSolutions">
|
|
<!-- Compile the pre-solutions -->
|
|
<BuildSolution Condition="'%(NewPreSolution.config)'!='' AND '%(NewPreSolution.copyOnly)'!='true'"
|
|
Solution="$(rageDir)\%(NewPreSolution.Identity)"
|
|
Project="%(NewPreSolution.project)"
|
|
Configuration="%(NewPreSolution.config)"
|
|
CompileWithDevenv="%(NewPreSolution.compileWithDevenv)"
|
|
Disabled="%(NewPreSolution.Disabled)"
|
|
NoVSI="%(NewPreSolution.compileWithoutVSI)">
|
|
<Output TaskParameter="BuildSuccess" PropertyName="buildSuccess"/>
|
|
</BuildSolution>
|
|
</Target>
|
|
|
|
<!-- CleanPreSolution -->
|
|
<UsingTask TaskName="RageBuildTasks.BuildSolution" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="CleanPreSolution" DependsOnTargets="SetEnvironmentVariables;AllPreSolutions">
|
|
<!-- Clean the pre-solutions -->
|
|
<BuildSolution Condition="'%(NewPreSolution.config)'!='' AND '%(NewPreSolution.copyOnly)'!='true'"
|
|
Solution="$(rageDir)\%(NewPreSolution.Identity)"
|
|
Project="%(NewPreSolution.project)"
|
|
Configuration="%(NewPreSolution.config)"
|
|
CompileWithDevenv="%(NewPreSolution.compileWithDevenv)"
|
|
Disabled="%(NewPreSolution.Disabled)"
|
|
NoVSI="%(NewPreSolution.compileWithoutVSI)"
|
|
Clean="true">
|
|
<Output TaskParameter="BuildSuccess" PropertyName="buildSuccess"/>
|
|
</BuildSolution>
|
|
</Target>
|
|
|
|
<!-- TestPreSolution -->
|
|
<UsingTask TaskName="RageBuildTasks.ExecuteCommand" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="TestPreSolution" DependsOnTargets="BuildPreSolution;SetEnvironmentVariables;AllPreSolutions"
|
|
Inputs="$(rageDir)\%(NewPreSolution.RelativeDir)%(NewPreSolution.resultDir)\%(NewPreSolution.Filename)_%(NewPreSolution.resultDir).exe"
|
|
Outputs="$(rageDir)\%(NewPreSolution.RelativeDir)%(NewPreSolution.resultDir)\%(NewPreSolution.Filename)_%(NewPreSolution.resultDir).timestamp">
|
|
<!-- Execute the pre-solution Tests -->
|
|
|
|
<!-- DISABLED: AT the moment, the output folder is not guaranteed by the current composition of data in the .targets file. Commands will fail.
|
|
|
|
<ExecuteCommand Condition="'%(NewPreSolution.Test1)' != ''"
|
|
Command="$(rageDir)\%(NewPreSolution.RelativeDir)%(NewPreSolution.resultDir)\%(NewPreSolution.Filename)_%(NewPreSolution.resultDir).exe"
|
|
Arguments="%(NewPreSolution.Test1)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewPreSolution.Test2)' != ''"
|
|
Command="$(rageDir)\%(NewPreSolution.RelativeDir)%(NewPreSolution.resultDir)\%(NewPreSolution.Filename)_%(NewPreSolution.resultDir).exe"
|
|
Arguments="%(NewPreSolution.Test2)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewPreSolution.Test3)' != ''"
|
|
Command="$(rageDir)\%(NewPreSolution.RelativeDir)%(NewPreSolution.resultDir)\%(NewPreSolution.Filename)_%(NewPreSolution.resultDir).exe"
|
|
Arguments="%(NewPreSolution.Test3)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewPreSolution.Test4)' != ''"
|
|
Command="$(rageDir)\%(NewPreSolution.RelativeDir)%(NewPreSolution.resultDir)\%(NewPreSolution.Filename)_%(NewPreSolution.resultDir).exe"
|
|
Arguments="%(NewPreSolution.Test4)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewPreSolution.Test5)' != ''"
|
|
Command="$(rageDir)\%(NewPreSolution.RelativeDir)%(NewPreSolution.resultDir)\%(NewPreSolution.Filename)_%(NewPreSolution.resultDir).exe"
|
|
Arguments="%(NewPreSolution.Test5)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewPreSolution.Test6)' != ''"
|
|
Command="$(rageDir)\%(NewPreSolution.RelativeDir)%(NewPreSolution.resultDir)\%(NewPreSolution.Filename)_%(NewPreSolution.resultDir).exe"
|
|
Arguments="%(NewPreSolution.Test6)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewPreSolution.Test7)' != ''"
|
|
Command="$(rageDir)\%(NewPreSolution.RelativeDir)%(NewPreSolution.resultDir)\%(NewPreSolution.Filename)_%(NewPreSolution.resultDir).exe"
|
|
Arguments="%(NewPreSolution.Test7)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewPreSolution.Test8)' != ''"
|
|
Command="$(rageDir)\%(NewPreSolution.RelativeDir)%(NewPreSolution.resultDir)\%(NewPreSolution.Filename)_%(NewPreSolution.resultDir).exe"
|
|
Arguments="%(NewPreSolution.Test8)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
|
|
-->
|
|
</Target>
|
|
|
|
<!-- CleanTestPreSolution -->
|
|
<Target Name="CleanTestPreSolution" DependsOnTargets="AllPreSolutions">
|
|
<Delete Condition="Exists( '$(rageDir)\%(NewPreSolution.RelativeDir)%(NewPreSolution.resultDir)\%(NewPreSolution.Filename)_%(NewPreSolution.resultDir).timestamp' )"
|
|
Files="$(rageDir)\%(NewPreSolution.RelativeDir)%(NewPreSolution.resultDir)\%(NewPreSolution.Filename)_%(NewPreSolution.resultDir).timestamp"/>
|
|
</Target>
|
|
|
|
<!-- AllSolutions -->
|
|
<Target Name="AllSolutions">
|
|
<CreateItem Include="@(Solution)">
|
|
<Output TaskParameter="Include" ItemName="NewSolution" />
|
|
</CreateItem>
|
|
</Target>
|
|
|
|
<!-- BuildSolution -->
|
|
<UsingTask TaskName="RageBuildTasks.BuildSolution" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="BuildSolution" DependsOnTargets="BuildPreSolution;SetEnvironmentVariables;AllSolutions">
|
|
<!-- Compile the solutions -->
|
|
<BuildSolution Condition="'%(NewSolution.config)'!='' AND '%(NewSolution.copyOnly)'!='true'"
|
|
Solution="$(rageDir)\%(NewSolution.Identity)"
|
|
Project="%(NewSolution.project)"
|
|
Configuration="%(NewSolution.config)"
|
|
CompileWithDevenv="%(NewSolution.compileWithDevenv)"
|
|
Disabled="%(NewSolution.Disabled)"
|
|
NoVSI="%(NewSolution.compileWithoutVSI)">
|
|
<Output TaskParameter="BuildSuccess" PropertyName="buildSuccess"/>
|
|
</BuildSolution>
|
|
</Target>
|
|
|
|
<!-- CleanSolution -->
|
|
<UsingTask TaskName="RageBuildTasks.BuildSolution" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="CleanSolution" DependsOnTargets="CleanPreSolution;SetEnvironmentVariables;AllSolutions">
|
|
<!-- Clean the solutions -->
|
|
<BuildSolution Condition="'%(NewSolution.config)'!='' AND '%(NewSolution.copyOnly)'!='true'"
|
|
Solution="$(rageDir)\%(NewSolution.Identity)"
|
|
Project="%(NewSolution.project)"
|
|
Configuration="%(NewSolution.config)"
|
|
CompileWithDevenv="%(NewSolution.compileWithDevenv)"
|
|
Disabled="%(NewSolution.Disabled)"
|
|
NoVSI="%(NewSolution.compileWithoutVSI)"
|
|
Clean="true">
|
|
<Output TaskParameter="BuildSuccess" PropertyName="buildSuccess"/>
|
|
</BuildSolution>
|
|
</Target>
|
|
|
|
<!-- TestSolutionWin32 -->
|
|
<UsingTask TaskName="RageBuildTasks.ExecuteCommand" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="TestSolutionWin32" DependsOnTargets="SetEnvironmentVariables;AllSolutions"
|
|
Inputs="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).exe"
|
|
Outputs="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).timestamp">
|
|
|
|
<MakeDir Condition="'$(screenshotFolder)'!='' AND !Exists( '$(screenshotFolder)' )"
|
|
Directories="$(screenshotFolder)"/>
|
|
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Win32' OR '%(NewSolution.config)' == 'Beta|Win32')"
|
|
Importance="high"
|
|
Text="%3CSample>" />
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Win32' OR '%(NewSolution.config)' == 'Beta|Win32')"
|
|
Importance="high"
|
|
Text="%3CName>%(NewSolution.Filename)%3C/Name>"/>
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Win32' OR '%(NewSolution.config)' == 'Beta|Win32')"
|
|
Importance="high"
|
|
Text="%3CDescription>%(NewSolution.description)%3C/Description>"/>
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Win32' OR '%(NewSolution.config)' == 'Beta|Win32')"
|
|
Importance="high"
|
|
Text="--------------- Smoke Testing %(NewSolution.Filename) -----------------"/>
|
|
|
|
<!-- Execute the Solution Tests (exe) -->
|
|
<ExecuteCommand Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Win32' OR '%(NewSolution.config)' == 'Beta|Win32')"
|
|
Command="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).exe"
|
|
Arguments="%(NewSolution.Test1) -smoketest=$(smokeTestDuration)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewSolution.Test2)' != '' AND ('%(NewSolution.config)' == 'Debug|Win32' OR '%(NewSolution.config)' == 'Beta|Win32')"
|
|
Command="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).exe"
|
|
Arguments="%(NewSolution.Test2) -smoketest=$(smokeTestDuration)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewSolution.Test3)' != '' AND ('%(NewSolution.config)' == 'Debug|Win32' OR '%(NewSolution.config)' == 'Beta|Win32')"
|
|
Command="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).exe"
|
|
Arguments="%(NewSolution.Test3) -smoketest=$(smokeTestDuration)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewSolution.Test4)' != '' AND ('%(NewSolution.config)' == 'Debug|Win32' OR '%(NewSolution.config)' == 'Beta|Win32')"
|
|
Command="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).exe"
|
|
Arguments="%(NewSolution.Test4) -smoketest=$(smokeTestDuration)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewSolution.Test5)' != '' AND ('%(NewSolution.config)' == 'Debug|Win32' OR '%(NewSolution.config)' == 'Beta|Win32')"
|
|
Command="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).exe"
|
|
Arguments="%(NewSolution.Test5) -smoketest=$(smokeTestDuration)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewSolution.Test6)' != '' AND ('%(NewSolution.config)' == 'Debug|Win32' OR '%(NewSolution.config)' == 'Beta|Win32')"
|
|
Command="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).exe"
|
|
Arguments="%(NewSolution.Test6) -smoketest=$(smokeTestDuration)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewSolution.Test7)' != '' AND ('%(NewSolution.config)' == 'Debug|Win32' OR '%(NewSolution.config)' == 'Beta|Win32')"
|
|
Command="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).exe"
|
|
Arguments="%(NewSolution.Test7) -smoketest=$(smokeTestDuration)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
<ExecuteCommand Condition="'%(NewSolution.Test8)' != '' AND ('%(NewSolution.config)' == 'Debug|Win32' OR '%(NewSolution.config)' == 'Beta|Win32')"
|
|
Command="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).exe"
|
|
Arguments="%(NewSolution.Test8) -smoketest=$(smokeTestDuration)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Win32' OR '%(NewSolution.config)' == 'Beta|Win32')"
|
|
Importance="high"
|
|
Text="----------------------------------------------------------"/>
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Win32' OR '%(NewSolution.config)' == 'Beta|Win32')"
|
|
Importance="high"
|
|
Text="%3C/Sample>"/>
|
|
<Touch Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Win32' OR '%(NewSolution.config)' == 'Beta|Win32')"
|
|
Files="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).timestamp"
|
|
AlwaysCreate="true"/>
|
|
</Target>
|
|
|
|
<!-- TestSolutionXenon -->
|
|
<UsingTask TaskName="RageBuildTasks.ConsoleExecXenon" AssemblyFile="$(rageTasksDLL)"/>
|
|
<Target Name="TestSolutionXenon" DependsOnTargets="SetEnvironmentVariables;AllSolutions"
|
|
Inputs="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).xex"
|
|
Outputs="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).timestamp">
|
|
|
|
<Exec Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Command="%22$(XEDK)\bin\win32\xbcp.exe%22 $(targetXbox) /Y /T %22$(TEMP)\rfs.dat%22 xe:\%(NewSolution.Filename)\" />
|
|
<Exec Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Command="%22$(XEDK)\bin\win32\xbcp.exe%22 $(targetXbox) /Y /T %22$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).xex%22 xe:\%(NewSolution.Filename)\" />
|
|
<Exec Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Command="%22$(XEDK)\bin\win32\xbcp.exe%22 $(targetXbox) /Y /T %22$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).cmp%22 xe:\%(NewSolution.Filename)\" />
|
|
|
|
<MakeDir Condition="'$(screenshotFolder)'!='' AND !Exists( '$(screenshotFolder)' )"
|
|
Directories="$(screenshotFolder)"/>
|
|
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Importance="high"
|
|
Text="%3CSample>" />
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Importance="high"
|
|
Text="%3CName>%(NewSolution.Filename)%3C/Name>"/>
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Importance="high"
|
|
Text="%3CDescription>%(NewSolution.description)%3C/Description>"/>
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Importance="high"
|
|
Text="--------------- Smoke Testing %(NewSolution.Filename) -----------------"/>
|
|
|
|
<!-- Execute the Solution Tests (.xex) -->
|
|
<Exec Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecXenon Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
XbrebootCommandLine="/w %22xe:\%(NewSolution.Filename)\%(NewSolution.Filename)_%(NewSolution.resultDir).xex%22 %(NewSolution.Test1) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetXbox)"
|
|
FailOnError="%(NewSolution.failOnError)"
|
|
ContinueOnError="$(continueOnError)"/>
|
|
|
|
<Exec Condition="'%(NewSolution.Test2)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecXenon Condition="'%(NewSolution.Test2)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
XbrebootCommandLine="/w %22xe:\%(NewSolution.Filename)\%(NewSolution.Filename)_%(NewSolution.resultDir).xex%22 %(NewSolution.Test2) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetXbox)"
|
|
FailOnError="%(NewSolution.failOnError)"
|
|
ContinueOnError="$(continueOnError)"/>
|
|
|
|
<Exec Condition="'%(NewSolution.Test3)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecXenon Condition="'%(NewSolution.Test3)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
XbrebootCommandLine="/w %22xe:\%(NewSolution.Filename)\%(NewSolution.Filename)_%(NewSolution.resultDir).xex%22 %(NewSolution.Test3) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetXbox)"
|
|
FailOnError="%(NewSolution.failOnError)"
|
|
ContinueOnError="$(continueOnError)"/>
|
|
|
|
<Exec Condition="'%(NewSolution.Test4)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecXenon Condition="'%(NewSolution.Test4)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
XbrebootCommandLine="/w %22xe:\%(NewSolution.Filename)\%(NewSolution.Filename)_%(NewSolution.resultDir).xex%22 %(NewSolution.Test4) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetXbox)"
|
|
FailOnError="%(NewSolution.failOnError)"
|
|
ContinueOnError="$(continueOnError)"/>
|
|
|
|
<Exec Condition="'%(NewSolution.Test5)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecXenon Condition="'%(NewSolution.Test5)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
XbrebootCommandLine="/w %22xe:\%(NewSolution.Filename)\%(NewSolution.Filename)_%(NewSolution.resultDir).xex%22 %(NewSolution.Test5) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetXbox)"
|
|
FailOnError="%(NewSolution.failOnError)"
|
|
ContinueOnError="$(continueOnError)"/>
|
|
|
|
<Exec Condition="'%(NewSolution.Test6)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecXenon Condition="'%(NewSolution.Test6)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
XbrebootCommandLine="/w %22xe:\%(NewSolution.Filename)\%(NewSolution.Filename)_%(NewSolution.resultDir).xex%22 %(NewSolution.Test6) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetXbox)"
|
|
FailOnError="%(NewSolution.failOnError)"
|
|
ContinueOnError="$(continueOnError)"/>
|
|
|
|
<Exec Condition="'%(NewSolution.Test7)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecXenon Condition="'%(NewSolution.Test7)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
XbrebootCommandLine="/w %22xe:\%(NewSolution.Filename)\%(NewSolution.Filename)_%(NewSolution.resultDir).xex%22 %(NewSolution.Test7) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetXbox)"
|
|
FailOnError="%(NewSolution.failOnError)"
|
|
ContinueOnError="$(continueOnError)"/>
|
|
|
|
<Exec Condition="'%(NewSolution.Test8)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecXenon Condition="'%(NewSolution.Test8)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
XbrebootCommandLine="/w %22xe:\%(NewSolution.Filename)\%(NewSolution.Filename)_%(NewSolution.resultDir).xex%22 %(NewSolution.Test8) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetXbox)"
|
|
FailOnError="%(NewSolution.failOnError)"
|
|
ContinueOnError="$(continueOnError)"/>
|
|
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Importance="high"
|
|
Text="----------------------------------------------------------"/>
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Importance="high"
|
|
Text="%3C/Sample>"/>
|
|
<Touch Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|Xbox 360' OR '%(NewSolution.config)' == 'Beta|Xbox 360')"
|
|
Files="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).timestamp"
|
|
AlwaysCreate="true"/>
|
|
</Target>
|
|
|
|
<!-- TestSolutionPS3 -->
|
|
<UsingTask TaskName="RageBuildTasks.ConsoleExecPS3" AssemblyFile="$(rageTasksDLL)"/>
|
|
<Target Name="TestSolutionPS3" DependsOnTargets="SetEnvironmentVariables;AllSolutions"
|
|
Inputs="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).ppu.self"
|
|
Outputs="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).timestamp">
|
|
|
|
<MakeDir Condition="'$(screenshotFolder)'!='' AND !Exists( '$(screenshotFolder)' )"
|
|
Directories="$(screenshotFolder)"/>
|
|
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
Importance="high"
|
|
Text="%3CSample>" />
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
Importance="high"
|
|
Text="%3CName>%(NewSolution.Filename)%3C/Name>"/>
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
Importance="high"
|
|
Text="%3CDescription>%(NewSolution.description)%3C/Description>"/>
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
Importance="high"
|
|
Text="--------------- Smoke Testing %(NewSolution.Filename) -----------------"/>
|
|
|
|
<!-- Execute the Solution Tests (.self) -->
|
|
<Exec Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecPS3 Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
PS3RunCommandLine="-z 180 %22$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).ppu.self%22 %(NewSolution.Test1) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetPS3)"
|
|
FailOnError="%(NewSolution.failOnError)"/>
|
|
|
|
<Exec Condition="'%(NewSolution.Test2)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecPS3 Condition="'%(NewSolution.Test2)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
PS3RunCommandLine="-z 180 %22$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).ppu.self%22 %(NewSolution.Test2) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetPS3)"
|
|
FailOnError="%(NewSolution.failOnError)"/>
|
|
|
|
<Exec Condition="'%(NewSolution.Test3)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecPS3 Condition="'%(NewSolution.Test3)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
PS3RunCommandLine="-z 180 %22$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).ppu.self%22 %(NewSolution.Test3) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetPS3)"
|
|
FailOnError="%(NewSolution.failOnError)"/>
|
|
|
|
<Exec Condition="'%(NewSolution.Test4)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecPS3 Condition="'%(NewSolution.Test4)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
PS3RunCommandLine="-z 180 %22$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).ppu.self%22 %(NewSolution.Test4) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetPS3)"
|
|
FailOnError="%(NewSolution.failOnError)"/>
|
|
|
|
<Exec Condition="'%(NewSolution.Test5)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecPS3 Condition="'%(NewSolution.Test5)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
PS3RunCommandLine="-z 180 %22$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).ppu.self%22 %(NewSolution.Test5) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetPS3)"
|
|
FailOnError="%(NewSolution.failOnError)"/>
|
|
|
|
<Exec Condition="'%(NewSolution.Test6)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecPS3 Condition="'%(NewSolution.Test6)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
PS3RunCommandLine="-z 180 %22$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).ppu.self%22 %(NewSolution.Test6) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetPS3)"
|
|
FailOnError="%(NewSolution.failOnError)"/>
|
|
|
|
<Exec Condition="'%(NewSolution.Test7)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecPS3 Condition="'%(NewSolution.Test7)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
PS3RunCommandLine="-z 180 %22$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).ppu.self%22 %(NewSolution.Test7) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetPS3)"
|
|
FailOnError="%(NewSolution.failOnError)"/>
|
|
|
|
<Exec Condition="'%(NewSolution.Test8)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<ConsoleExecPS3 Condition="'%(NewSolution.Test8)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
PS3RunCommandLine="-z 180 %22$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).ppu.self%22 %(NewSolution.Test8) -smoketest=$(smokeTestDuration)"
|
|
Target="$(targetPS3)"
|
|
FailOnError="%(NewSolution.failOnError)"/>
|
|
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
Importance="high"
|
|
Text="----------------------------------------------------------"/>
|
|
<Message Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
Importance="high"
|
|
Text="%3C/Sample>"/>
|
|
<Touch Condition="'%(NewSolution.Test1)' != '' AND ('%(NewSolution.config)' == 'Debug|PS3' OR '%(NewSolution.config)' == 'Beta|PS3')"
|
|
Files="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).timestamp"
|
|
AlwaysCreate="true"/>
|
|
</Target>
|
|
|
|
<!-- StartSysTrayRfs -->
|
|
<Target Name="StartSysTrayRfs" DependsOnTargets="SetEnvironmentVariables">
|
|
<Exec Command="$(RS_TOOLSBIN)\systrayrfs.exe -trusted"
|
|
ContinueOnError="true"
|
|
Timeout="1000"/>
|
|
</Target>
|
|
|
|
<!-- KillSysTrayRfs -->
|
|
<Target Name="KillSysTrayRfs" DependsOnTargets="SetEnvironmentVariables">
|
|
<Exec Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
ContinueOnError="true"
|
|
Timeout="5000"/>
|
|
<Exec Command="$(RS_TOOLSBIN)\systrayrfs.exe -exit"
|
|
ContinueOnError="true"
|
|
Timeout="5000"/>
|
|
</Target>
|
|
|
|
<!-- TestSolution -->
|
|
<Target Name="TestSolution" DependsOnTargets="TestPreSolution;BuildSolution;BuildResource;AllSolutions;TestSolutionWin32;TestSolutionXenon;TestSolutionPS3"/>
|
|
|
|
<!-- TestSolutionQuick -->
|
|
<Target Name="TestSolutionQuick" DependsOnTargets="TestSolutionWin32;TestSolutionXenon;TestSolutionPS3"/>
|
|
|
|
<!-- CleanTestSolution -->
|
|
<Target Name="CleanTestSolution" DependsOnTargets="CleanTestPreSolution;CleanRunProcessor;AllSolutions">
|
|
<Delete Condition="Exists( '$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).timestamp' )"
|
|
Files="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).timestamp"/>
|
|
</Target>
|
|
|
|
<!-- CleanTestSolutionQuick -->
|
|
<Target Name="CleanTestSolutionQuick" DependsOnTargets="AllSolutions">
|
|
<Delete Condition="Exists( '$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).timestamp' )"
|
|
Files="$(rageDir)\%(NewSolution.RelativeDir)%(NewSolution.resultDir)\%(NewSolution.Filename)_%(NewSolution.resultDir).timestamp"/>
|
|
</Target>
|
|
|
|
<!-- DeploySampleExes -->
|
|
<UsingTask TaskName="RageBuildTasks.CopySolutionBinaries" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="DeploySampleExes" DependsOnTargets="BuildSolution;AllSolutions">
|
|
<!-- Copy them to their expected locations -->
|
|
<!--
|
|
<CopySolutionBinaries Condition="'%(NewSolution.config)'!='' AND ('%(NewSolution.compileOnly)'!='true' OR '%(NewSolution.copyOnly)'=='true')"
|
|
Solution="$(rageDir)\%(NewSolution.Identity)"
|
|
Project="%(NewSolution.project)"
|
|
Configuration="%(NewSolution.config)"
|
|
BuildContinuedOnError="%(NewSolution.continueOnError)"
|
|
RenameDestFile="%(NewSolution.renameDestFile)"
|
|
CopyDestFolder="$(sampleExesDeployDir)"
|
|
CopyDebugFiles="%(NewSolution.copyDebugFiles)"/>
|
|
-->
|
|
</Target>
|
|
|
|
<!-- DumpVersionNumbers -->
|
|
<Target Name="DumpVersionNumbers" DependsOnTargets="BuildProcessor;AllProcessors"
|
|
Inputs="$(rageDir)\%(NewProcessor.copyDestDir)\%(NewProcessor.renameDestFile).exe"
|
|
Outputs="$(processorsDeployDir)\%(NewProcessor.Filename).xml">
|
|
<ExecuteCommand
|
|
Condition="'%(NewProcessor.renameDestFile)'!=''"
|
|
Command="$(rageDir)\%(NewProcessor.copyDestDir)\%(NewProcessor.renameDestFile).exe"
|
|
Arguments="-dumpVersionNumbers=$(rageDir)\%(NewProcessor.copyDestDir)\%(NewProcessor.renameDestFile) $(commonRunParams)"
|
|
TimeOutInSeconds="$(smokeTestTimeOut)"/>
|
|
</Target>
|
|
|
|
<!-- CreateVersionProject -->
|
|
<Target Name="CreateVersionProject" DependsOnTargets="DumpVersionNumbers;AllProcessors">
|
|
<Exec Command="type $(buildDir)\ResourceVersionsHeader.txt > $(toolsDir)\ResourceVersion.proj"/>
|
|
|
|
<Exec Condition="Exists( '$(toolsDir)\%(NewProcessor.renameDestFile).xml' )"
|
|
Command="type %22$(toolsDir)\%(NewProcessor.renameDestFile).xml%22 >> $(toolsDir)\ResourceVersion.proj"/>
|
|
|
|
<Exec Command="type $(buildDir)\ResourceVersionsFooter.txt >> $(toolsDir)\ResourceVersion.proj"/>
|
|
</Target>
|
|
|
|
<!-- DeployVersionProject -->
|
|
<Target Name="DeployVersionProject" DependsOnTargets="CreateVersionProject">
|
|
<Copy Condition="Exists( '$(toolsDir)\ResourceVersion.proj' )"
|
|
SourceFiles="$(toolsDir)\ResourceVersion.proj"
|
|
DestinationFolder="$(processorsDeployDir)"/>
|
|
</Target>
|
|
|
|
<!-- BuildResourceWin32 -->
|
|
<Target Name="BuildResourceWin32" DependsOnTargets="SetEnvironmentVariables"
|
|
Condition="'$(resourcePlatform)' == 'win32' OR '$(resourcePlatform)' == 'all'">
|
|
<MSBuild Projects="$(assetRootDir)\rageland\assets\rageland\ResourceBuilder.proj"
|
|
Targets="Complete"
|
|
Properties="resourceLocation=$(resourceLocation);Platform=PC;baseCodeDir=$(rageDir);assetRoot=$(assetRootDir)"/>
|
|
</Target>
|
|
|
|
<!-- CleanResourceWin32 -->
|
|
<Target Name="CleanResourceWin32" DependsOnTargets="SetEnvironmentVariables"
|
|
Condition="'$(resourcePlatform)' == 'win32' OR '$(resourcePlatform)' == 'all'">
|
|
<MSBuild Projects="$(assetRootDir)\rageland\assets\rageland\ResourceBuilder.proj"
|
|
Targets="Clean"
|
|
Properties="resourceLocation=$(resourceLocation);Platform=PC;baseCodeDir=$(rageDir);assetRoot=$(assetRootDir)"/>
|
|
</Target>
|
|
|
|
<!-- BuildResourceXenon -->
|
|
<Target Name="BuildResourceXenon" DependsOnTargets="SetEnvironmentVariables"
|
|
Condition="'$(resourcePlatform)' == 'xenon' OR '$(resourcePlatform)' == 'all'">
|
|
<Exec Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<MSBuild Projects="$(assetRootDir)\rageland\assets\rageland\ResourceBuilder.proj"
|
|
Targets="Complete"
|
|
Properties="resourceLocation=$(resourceLocation);Platform=xenon;baseCodeDir=$(rageDir);assetRoot=$(assetRootDir)"/>
|
|
</Target>
|
|
|
|
<!-- CleanResourceXenon -->
|
|
<Target Name="CleanResourceXenon" DependsOnTargets="SetEnvironmentVariables"
|
|
Condition="'$(resourcePlatform)' == 'xenon' OR '$(resourcePlatform)' == 'all'">
|
|
<Exec Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<MSBuild Projects="$(assetRootDir)\rageland\assets\rageland\ResourceBuilder.proj"
|
|
Targets="Clean"
|
|
Properties="resourceLocation=$(resourceLocation);Platform=xenon;baseCodeDir=$(rageDir);assetRoot=$(assetRootDir)"/>
|
|
</Target>
|
|
|
|
<!-- BuildResourcePS3 -->
|
|
<Target Name="BuildResourcePS3" DependsOnTargets="SetEnvironmentVariables"
|
|
Condition="'$(resourcePlatform)' == 'ps3' OR '$(resourcePlatform)' == 'all'">
|
|
<Exec Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<MSBuild Projects="$(assetRootDir)\rageland\assets\rageland\ResourceBuilder.proj"
|
|
Targets="Complete"
|
|
Properties="resourceLocation=$(resourceLocation);Platform=psn;baseCodeDir=$(rageDir);assetRoot=$(assetRootDir)"/>
|
|
</Target>
|
|
|
|
<!-- CleanResourcePS3 -->
|
|
<Target Name="CleanResourcePS3" DependsOnTargets="SetEnvironmentVariables"
|
|
Condition="'$(resourcePlatform)' == 'ps3' OR '$(resourcePlatform)' == 'all'">
|
|
<Exec Command="$(RS_TOOLSBIN)\systrayrfs.exe -reset"
|
|
Timeout="20000"/>
|
|
<MSBuild Projects="$(assetRootDir)\rageland\assets\rageland\ResourceBuilder.proj"
|
|
Targets="Clean"
|
|
Properties="resourceLocation=$(resourceLocation);Platform=psn;baseCodeDir=$(rageDir);assetRoot=$(assetRootDir)"/>
|
|
</Target>
|
|
|
|
<!-- BuildResource -->
|
|
<Target Name="BuildResource" DependsOnTargets="RunProcessor;CreateVersionProject;BuildResourceWin32;BuildResourceXenon;BuildResourcePS3"/>
|
|
|
|
<!-- BuildResource -->
|
|
<Target Name="BuildResourceQuick" DependsOnTargets="BuildResourceWin32;BuildResourceXenon;BuildResourcePS3"/>
|
|
|
|
<!-- CleanResource -->
|
|
<Target Name="CleanResource" DependsOnTargets="CleanProcessor;CleanResourceWin32;CleanResourceXenon;CleanResourcePS3"/>
|
|
|
|
<!-- DumpSampleDetails -->
|
|
<Target Name="DumpSampleDetails">
|
|
<CreateItem Include="$(screenshotFolder)\*jpg.xml" >
|
|
<Output TaskParameter="Include"
|
|
ItemName="ScreenShotInfo"/>
|
|
</CreateItem>
|
|
<ReadLinesFromFile Condition="Exists( '%(ScreenShotInfo.Identity)' )"
|
|
File="%(ScreenShotInfo.Identity)"
|
|
ContinueOnError="true">
|
|
<Output TaskParameter="Lines"
|
|
ItemName="lines"/>
|
|
</ReadLinesFromFile>
|
|
<Delete Condition="Exists( '$(assetRootDir)\rage\sampleDetails.xml' )"
|
|
Files="$(assetRootDir)\rage\sampleDetails.xml"
|
|
ContinueOnError="true"/>
|
|
<WriteLinesToFile Condition="!Exists( '$(assetRootDir)\rage\sampleDetails.xml' )"
|
|
File="$(assetRootDir)\rage\sampleDetails.xml"
|
|
Lines="@(Lines)"
|
|
Overwrite="false"
|
|
ContinueOnError="true"/>
|
|
</Target>
|
|
|
|
<!-- DeployZips -->
|
|
<Target Name="DeployZips" DependsOnTargets="Resource">
|
|
<Copy SourceFiles="@(Zips)"
|
|
DestinationFolder="$(zipsDeployDir)\%(RecursiveDir)"
|
|
SkipUnchangedFiles="true"/>
|
|
</Target>
|
|
|
|
<!-- CreateStartupScripts -->
|
|
<Target Name="CreateStartupScripts" DependsOnTargets="AllSolutions">
|
|
<WriteLinesToFile Condition="'%(Solution.runParams)' != '' AND '%(Solution.renameDestFile)' != ''"
|
|
File="$(startersDeployDir)\%(Solution.renameDestFile).bat"
|
|
Lines="%(Solution.buildCommand);startSample.bat %(Solution.renameDestFile) %22%(Solution.runParams)%22"
|
|
Overwrite="true"/>
|
|
</Target>
|
|
|
|
<UsingTask TaskName="RageBuildTasks.ReturnTask" AssemblyFile="$(rageTasksDLL)" />
|
|
<Target Name="CheckResult">
|
|
<Error
|
|
Code="-1"
|
|
Text="This build has failed due to errors!"
|
|
Condition="'$(buildSuccess)' == 'false'"/>
|
|
</Target>
|
|
|
|
<!-- Build -->
|
|
<Target Name="Build" DependsOnTargets="BuildSolution;CheckResult"/>
|
|
|
|
<!-- Clean -->
|
|
<Target Name="Clean" DependsOnTargets="CleanSolution;CheckResult"/>
|
|
|
|
<!-- Rebuild -->
|
|
<Target Name="Rebuild" DependsOnTargets="Clean;Build;CheckResult"/>
|
|
|
|
<!-- Resource -->
|
|
<Target Name="Resource" DependsOnTargets="BuildResource;CheckResult"/>
|
|
|
|
<!-- CleanResource -->
|
|
<Target Name="DeleteResource" DependsOnTargets="CleanResource;CheckResult"/>
|
|
|
|
<!-- ReResource -->
|
|
<Target Name="ReResource" DependsOnTargets="DeleteResource;Resource;CheckResult"/>
|
|
|
|
<!-- Test -->
|
|
<Target Name="Test" DependsOnTargets="TestSolution;CheckResult"/>
|
|
|
|
<!-- CleanTest -->
|
|
<Target Name="CleanTest" DependsOnTargets="CleanTestSolution;CheckResult"/>
|
|
|
|
<!-- Retest -->
|
|
<Target Name="Retest" DependsOnTargets="CleanTest;Test;CheckResult"/>
|
|
|
|
<!-- Deploy -->
|
|
<Target Name="Deploy" DependsOnTargets="DumpSampleDetails;DeployProcessor;DeployVersionProject;DeployShaders;DeployZips;DeploySampleExes;CreateStartupScripts;CheckResult"/>
|
|
|
|
<!-- ArchiveTestDeploy -->
|
|
<Target Name="ArchiveTestDeploy" DependsOnTargets="Archive;Test;Deploy;CheckResult"/>
|
|
|
|
<!-- ArchiveRetestDeploy -->
|
|
<Target Name="ArchiveRetestDeploy" DependsOnTargets="Archive;Retest;Deploy;CheckResult"/>
|
|
|
|
<!-- CleanAll -->
|
|
<Target Name="CleanAll" DependsOnTargets="DeleteResource;Clean;CleanTest;CheckResult"/>
|
|
</Project> |