Sample XML Interface Project and File

You are welcome to look at our sample projects under the Incredibuild installation folder in Samples\Dev Tools Interfaces Usage Samples\XML Interface. One such sample is XML Interface Sample Project, described below. 

XML Interface Sample Project

This sample is set to demonstrate a generic task distribution process activated through the Dev Tools XML Interface.

The sample demonstrates the capability to define a complex job / project execution by using a XML file and the Dev Tools XML Interface.

Notes:

  • Run the batch file: "BatchFile.bat" from the command prompt set to this folder.

  • The batch file executes the "IBconsole.exe" command, which uses the XML file in order to perform the execution instruction of the "DummyProcess.exe".

  • If Incredibuild was installed in a location other than the default location: "C:\Program Files (x86)\Xoreax\Incredibuild\", adjust the full path for this sample project within the "XmlSample.xml" file.

Sample XML File

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>-<BuildSet FormatVersion="1">-<Environments>-<Environment Name="Debug">-<Tools><ToolName="Compiler" AllowRemote="True" GroupPrefix="Compiling..." Params="/DEBUG $(SourceFileName) $(SourceDir)\bin\debug\$(SourceName).o" Path="c:\dev\bin\compile.exe" OutputFileMasks="*.o" /><ToolName="Linker" AllowRemote="False" GroupPrefix="Linking..." Params="/DEBUG c:\dev\sources\bin\debug" Path="c:\dev\bin\link.exe" OutputFileMasks="*.dll,*.lib" /></Tools></Environment>-<Environment Name="Release">-<Tools><ToolName="Compiler" AllowRemote="True" GroupPrefix="Compiling..." Params="/RELEASE $(SourceFileName) $(SourceDir)\bin\release\$(SourceName).o" Path="c:\dev\bin\compile.exe" OutputFileMasks="*.o" /><ToolName="Linker" AllowRemote="False" GroupPrefix="Linking..." Params="/RELEASE c:\dev\sources\bin\release" Path="c:\dev\bin\link.exe" OutputFileMasks="*.dll,*.lib" /></Tools></Environment></Environments>-<Project Name="My Project" WorkingDir="c:\dev\sources">-<TaskGroup Name="BuildDebug" Env="Debug">-<TaskGroup Name="DebugSourceFiles" Tool="Compiler"><TaskSourceFile="Source1.cpp" /><TaskSourceFile="Source2.cpp" /><TaskSourceFile="Source3.cpp" /></TaskGroup><TaskDependsOn="DebugSourceFiles" Tool="Linker" /></TaskGroup>-<TaskGroup Name="BuildDebug" Env="Release">-<TaskGroup Name="DebugSourceFiles" Tool="Compiler"><TaskSourceFile="Source1.cpp" /><TaskSourceFile="Source2.cpp" /><TaskSourceFile="Source3.cpp" /></TaskGroup><TaskDependsOn="DebugSourceFiles" Tool="Linker" /></TaskGroup></Project></BuildSet>