CMSIS-Pack  Version 1.4.7
Delivery Mechanism for Software Packs
 All Pages
/package/create/project/files

The files section specifies files to be included into the project build that are not managed through software components. Files can be sorted into named groups.

Example files section:

<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PACK.xsd"/>
...
<create>
<project>
<files>
<group name="Source Files">
<file category="sourceC" name="./Blinky.c"/>
<file category="sourceC" name="./Thread_LED.c"/>
</group>
<group name="Documentation">
<file category="doc" name="./Abstract.txt"/>
</group>
</files>
</project>
</create>
</package>

/files

Parents Element Chain
project /package/create/project
Attributes Description Type Use
Child Elements Description Type Occurrence
file specification of a file. ProjectFileType 0..*
group specification of a group of files GroupType 0..*

 


/package/project/create/files/.../file

/file

Parents Element Chain
files element_files
group /package/create/project/files/.../group
Attributes Description Type Use
name path and name of file relative to CPDSC location xs:string required
category type of file (e.g. whether a c or assembler file) FileCategoryType required
src folder specifying the source code location for a library xs:string optional

 


/package/create/project/files/.../group

Note
The nesting of groups is supported. It is tool dependant how grouping is represented in the tool since the grouping of files has no impact on the build by default.

Example files section:

<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PACK.xsd"/>
...
<create>
<project>
<files>
<group name="Source">
<group name="C">
<file category="sourceC" name="./Blinky.c"/>
<file category="sourceC" name="./Thread_LED.c"/>
</group>
<group name="ASM">
<file category="sourceAsm" name="./startup_add.s"/>
</group>
</group>
<group name="Documentation">
<file category="doc" name="./Abstract.txt"/>
</group>
</files>
</project>
</create>
</package>

/group

Parents Element Chain
files element_files
Attributes Description Type Use
name name of the group of files RestrictedString required
Child Elements Description Type Occurrence
file specification of a file. ProjectFileType 0..*
group specification of a group of files GroupType 0..*