# Builds

When a build is started the Build-Window will be shown and the build will be automatically started.

If the build contains some Option-Values an additional dialog will be displayed before the actual Build-Window, which allows the user to configure the build. Depending on the option, the user can either select from a set of predefined values or needs to enter a custom value.

<div drawio-diagram="8309"><img src="https://doc316en.candera.eu/uploads/images/drawio/2025-04/drawing-7-1744609190.png" alt=""/></div>

A build is commonly separated into multiple steps each corresponding to a separate script file that is executed from the specified build-script folder.

<div drawio-diagram="7217"><img src="https://doc316en.candera.eu/uploads/images/drawio/2024-10/drawing-7-1730336981.png" alt=""/></div>

<span lang="EN-US">The top row shows the current build state. It indicates the progress or if the build has finished/failed. On the right side the combined information about all build steps is shown. It displays the total amount of info, warning and error messages from the output. The second row provides information about the current executed step.</span>

<span lang="EN-US" style="font-size: 10.0pt; mso-bidi-font-size: 11.0pt; line-height: 107%; font-family: 'Daytona',sans-serif; mso-fareast-font-family: 游明朝; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: JA; mso-bidi-language: AR-SA;">When enabling the details, by checking the option in the bottom right, the output of the build scripts can be seen, grouped by the step. This output is also saved into a log-file into the specified build folder.</span>

#### Build Settings

When a build is started, the builds specific options defined in the related Build Project are set (See <span style="color: rgb(230, 126, 35);">[Build Projects](https://doc316en.candera.eu/books/cgi-studio-connector/chapter/build-projects)</span> for more information). Further the following settings are applied by the Connector.

**Root-Paths:**

<table border="1" id="bkmrk-property-name-descri-22" style="width: 71.2346%;"><tbody><tr><td class="align-center" style="background-color: rgb(230, 126, 35); width: 32.789%;"><span style="color: rgb(255, 255, 255);">**Argument**</span></td><td class="align-center" style="background-color: rgb(230, 126, 35); width: 67.211%;"><span style="color: rgb(255, 255, 255);">**Description**</span></td></tr><tr><td style="width: 32.789%;">**CONNECTOR\_ROOT** </td><td style="width: 67.211%;"><span lang="EN-US">Path to the Connector binary</span></td></tr><tr><td style="width: 32.789%;">**PROJECT\_ROOT**</td><td style="width: 67.211%;"><span lang="EN-US">Path to the Connector project file</span></td></tr><tr><td style="width: 32.789%;">**CGI\_ROOT**</td><td style="width: 67.211%;"><span lang="EN-US">Path to the CGI packages</span></td></tr></tbody></table>

**Variables:**

<table border="1" id="bkmrk-argument-description" style="width: 97.1605%; height: 965.095px;"><tbody><tr style="height: 29.7969px;"><td class="align-center" style="background-color: rgb(230, 126, 35); width: 50.7643%; height: 29.7969px;"><span style="color: rgb(255, 255, 255);">**Argument**</span></td><td class="align-center" style="background-color: rgb(230, 126, 35); width: 49.2357%; height: 29.7969px;"><span style="color: rgb(255, 255, 255);">**Description**</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_EXECUTABLE\_PATH**</td><td style="width: 49.2357%; height: 29.7969px;">Path to the Connector binary</td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_PROJECT\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Connector project file</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_PROJECT\_PATH**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Path to the Connector project file</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_PROJECT\_NAME**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Connector project Name</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_PROJECT\_DESCRIPTION** </td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Connector project Description</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_PROJECT\_ICON\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Connector project icon file</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_INTERFACE\_DEFINITION\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Interface definition file</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_COMPLEXTYPE\_DEFINITION\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Complex-Type definition file</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_NATIVEFUNCTION\_DEFINITION\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Native-Function definition file</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_ENABLE\_GENERIC\_TOOL**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Indicates if ‘Generic Tool’ is enabled</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_ENABLE\_MATLAB\_TOOL**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Indicates if ‘MATLAB Tool’ is enabled</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_CGISTUDIO\_ROOT\_PATH**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Path to CGI Studio root folder</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_CGISTUDIO\_PLATFORM**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">CGI Studio Platform (e.g. Android, RCar,..)</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_CGISTUDIO\_PLATFORM\_CONFIG**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">CGI Studio Platform Configuration (x86/x64)</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_SCENECOMPOSER\_EXECUTABLE\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Scene-Composer executable file</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_SCENECOMPOSER\_EXECUTABLE\_PATH**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Scene-Composer executable path</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_SCENECOMPOSER\_SOLUTION\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Scene-Composer solution file</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_COURIER\_XCDL\_DEFINITION\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">XCDL root definition file</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_COURIER\_XCDL\_INCLUDE\_PATHS**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">XCDL include paths (separated by ‘;’)</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_COURIER\_XCDL\_RESOLVED\_INCLUDE\_PATHS**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Resolved XCDL include paths using available root paths</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_CODE\_GENERATION\_COMPILER**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Compiler used for code generation/build</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_CODE\_GENERATION\_ARCHITECTURE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Architecture used for code generation/build</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_CODE\_GENERATION\_BUILD\_PROJECT\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Default Build-Project file</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_MATLAB\_ENABLE\_LEGACY\_OPTIONS**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Indicates if MATLAB legacy options are enabled</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_MATLAB\_BUILD\_PROJECT\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">MATLAB Build-Project file</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_EDIT\_COMPLEX\_TYPES\_SCRIPT\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Script for ‘Edit Complex-Type definition’</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_EDIT\_NATIVE\_FUNTIONS\_SCRIPT\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Script for ‘Edit Native-Function definition’</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_EDIT\_SC\_SOLUTION\_SCRIPT\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Script for ‘Edit Scene Composer solution’</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_EDIT\_XCDL\_SCRIPT\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Script for ‘Edit Courier Definition’</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_EDIT\_BUILD\_PROJECT\_SCRIPT\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Script for ‘Edit Build-Project’</span></td></tr><tr style="height: 11.5938px;"><td style="width: 50.7643%; height: 11.5938px;">**CONNECTOR\_SHOW\_CONSOLE\_WINDOW**</td><td style="width: 49.2357%; height: 11.5938px;"><span lang="EN-US">Indicates if console window is shown when running scripts.</span></td></tr><tr style="height: 29.7969px;"><td style="width: 50.7643%; height: 29.7969px;">**CONNECTOR\_SHOW\_CODE\_SCRIPT\_FILE**</td><td style="width: 49.2357%; height: 29.7969px;"><span lang="EN-US">Script for triggering editor from Build details</span></td></tr></tbody></table>

The same environment variables are also set when any other script is executed (such as ‘Edit Scene-Composer solution’)

#### Close on Success

If a build contains the CONNECTOR\_BUILD\_CLOSE\_ON\_SUCCESS variable and sets a value of ‘1’ then the Build-Window will be automatically closed when the build is finished successfully.  
This can feature is very useful if Builds are used to just perform simple tasks or open other programs.

<p class="callout info">Note that some programs do ‘block’ the command script execution until closed even when started using the START command. To workaround this problem the provided ‘ProcRun’ tool found in ‘cgi\_studio\_connector\\BuildScripts\\Common\\ProcRun‘ can be used. The syntax to use it is:  
ProcRun &lt;Executable&gt; \[“&lt;Arguments&gt;”\]  
</p>

---