|
Templates |
Top Previous Next |
Templates are 'shell' projects. They contain the various operational parts which your project is likely to need. They are meant to be used as a starting point for creating complete projects.
Templates may contain header files, source files, and any other thing you may expect to find in a project. When you create a new project based on an existing template, all files from the template folder are copied to your project folder, and the name of the project filename (the .tpr file) is changed according to your own project name.
Creating New Templates
It is also possible to create new templates for any platform. This is done by creating a template folder and populating it with files. You would then have to modify the platform file (.p file -- for example, em202.p) so that it would point to this template. This file lists the available template files for this platform, along with their paths (relative to the platform file).
For example:
[template1] name=Simple Project description=Simple project template icon=em202\simple.ico path=em202\simple\simple.tpr
|
The definition above would specify a template project called Simple Project, whose path would be em202\simple\simple.tpr. Remember -- the folder and files for this project would not be automatically created.