<asset>
(Optional) Specifies an asset that is used in the BAR file
Parent elements:
<qnx>, <configuration>
Child elements:
| Name | Cardinality |
|---|---|
| exclude | Any number |
| include | Any number |
Description:
The <asset> element specifies an asset that is packaged in the BAR file. All assets passed on the command line override those that you specify with this tag. The text of the tag is a path relative to the bar package assets root directory. You can use the "dest" attribute instead to specify the asset. This is recommended when using nested <exclude> and <include> elements.
Content:
A PCDATA value representing the location and name of the asset(file).
Attributes:
| Name | Description | Values | Default |
|---|---|---|---|
| defaultexcludes | (Optional) Specifies whether the list of exclusion patterns are applied to the directory tree. |
|
yes |
| dest | (Optional) Specifies the destination path of an asset, which is usually the filename. Typically, the value is the last segment in the path attribute. | None | None |
| entry | (Optional) Specifies whether to use the asset to start the application. Only one asset can be specified for each configuration. |
|
false |
| path | (Required) Specifies the location of asset relative to the current working directory of the packager. | None | None |
| public | (Optional) Specifies whether the asset should be located in the public directory of the BAR file which is readable by other applications. Application icon assets should be public |
|
false |
| type | (Optional) Specifies the asset type. For example, for binaries use the value of Qnx/Elf. | None | None |
Example:
<qnx>
...
...
<-- Generic asset for your application -->
<asset path="sample-splashscreen-landscape.png">sample-splashscreen-landscape.png</asset>
...
...
<-- Asset to configure for a specific target. -->
<configuration id="com.qnx.qcc.configuration.exe.debug.130584532" name="Device-Debug">
<platformArchitecture>armle-v7</platformArchitecture>
<asset path="Device-Debug/GoodCitizen" entry="true" type="Qnx/Elf" dest="asset1"/>
</configuration>
</qnx>