# Candera Device Packages

#### <a class="anchor" id="bkmrk--0"></a>Supported Device Packages

Candera provides device implementations for following device types:

<div class="contents" id="bkmrk-name-description-pos"><div class="contents"><div class="textblock"><table border="1" cellpadding="5" cellspacing="0" width="800"><tbody><tr bgcolor="#d4d4d4"><th>Name</th><th>Description</th><th>Possible values</th></tr><tr><td>Freescale iMX6</td><td>  
</td><td>ON/OFF</td></tr><tr><td>Other proprietary devices</td><td>Can be provided upon special request</td><td>ON/OFF</td></tr></tbody></table>

</div></div></div><div class="contents" id="bkmrk-"><div class="contents"><div class="textblock">  
</div></div></div>#### <a class="anchor" id="bkmrk--1"></a>Device-Specific CMake Settings

<div class="contents" id="bkmrk-name-description-pos-0"><div class="contents"><div class="textblock"><table border="1" cellpadding="5" cellspacing="0" width="800"><tbody><tr bgcolor="#d4d4d4"><th>Name</th><th>Description</th><th>Possible values</th></tr><tr><td>CGIDEVICE\_NAME</td><td>The name of the device package</td><td>Each device package following the Candera device CMake rules provided in the folder &lt;CANDERA\_SRC&gt;/CanderaPlatform/Device</td></tr><tr><td>CGIDEVICE\_TARGET\_BUILD</td><td>Enable or disable building for target</td><td>ON/OFF</td></tr><tr><td>CGISTUDIO\_PATH\_3RD\_PARTY</td><td>Path to the 3rd party repository location</td><td>A string value containing the system file location of 3rd party software, auto-detected by finding possible locations of the name "\[ic01\_\]cgi\_studio\_3psw"</td></tr><tr><td>CGIDEVICE\_TARGET\_  
&lt;CGIDEVICE\_NAME&gt;  
\_DRIVER\_PATH\_INCLUDE</td><td>If you don't use the default driver path, the path to the driver include directory can be changed with this setting.</td><td>Path to driver include directory (by default set to include directory in 3rd party repository)</td></tr><tr><td>CGIDEVICE\_TARGET\_  
&lt;CGIDEVICE\_NAME&gt;  
\_DRIVER\_PATH\_LIB</td><td>If you don't use the default driver path, the path to the driver library directory can be changed with this setting.</td><td>Path to driver library directory (by default set to library directory in 3rd party repository)</td></tr></tbody></table>

</div></div></div>  
To build a certain device package selected it from the drop-down list of the CMake property **"CGIDEVICE\_NAME"**:

For each device package, either building OpenGL based host simulation or target binaries can be selected via the Boolean CMake property ***"CGIDEVICE\_TARGET\_BUILD"***.

The following table illustrates configurations available for the supported device package:

<div class="contents" id="bkmrk-cgidevice_name-cgide"><div class="contents"><div class="textblock"><table border="1" cellpadding="5" cellspacing="0" width="800"><tbody><tr bgcolor="#d4d4d4"><th>CGIDEVICE\_NAME</th><th>CGIDEVICE\_TARGET\_BUILD</th><th>PUB\_CGI\_CPU</th><th>PUB\_CGI\_OS</th><th>Default driver path following  
&lt;CGISTUDIO\_PATH\_3RD\_PARTY&gt;  
/\[src/lib\]/</th></tr><tr><td>iMX6</td><td>Off</td><td>X86</td><td>Win32</td><td>OpenGLES/Win32/OpenGLAdapter</td></tr><tr><td>iMX6</td><td>On</td><td>ARM</td><td>Linux</td><td>OpenGLES/Linux/iMX6</td></tr></tbody></table>

</div></div></div>The CMake properties "PUB\_CGI\_CPU", "PUB\_CGI\_OS" usually cannot be configured via the CMake user interface, but are autonomously detected by  
the build system. The same applies for the variable "PUB\_CGI\_COMPILER".

If you don't use the CGI Studio 3rd party software folder structure, the driver paths can be specified in the variables

<div class="contents" id="bkmrk-cgidevice_target_%3Ccg"><div class="contents"><div class="textblock">- CGIDEVICE\_TARGET\_&lt;CGIDEVICE\_NAME&gt;\_DRIVER\_PATH\_INCLUDE and
- CGIDEVICE\_TARGET\_&lt;CGIDEVICE\_NAME &gt;\_DRIVER\_PATH\_LIB

</div></div></div>Depending on these properties, either MS Visual Studio solutions or Unix makefiles will be generated into the specified build  
directory.