Operations on various interfaces in tornado can be implemented through their built-in TCL library functions. This article introduces these TCL functions, which are helpful for implementing automated compilation of projects.
The help of these Tcl scripts in the tornado toolbar's help à manuals index. In the project scripting library in tornado api reference, you can create various library functions of the project.
Some examples are provided in C:/tornado2.2/host/resource/Tcl/APP-config/project/migration.
Prjmigrate. TCL:
► Source statement at the beginning of the file:
Source [wtxpath] host/resource/Tcl/APP-config/project/cmpscriptlib. TCL
This statement is a reference Statement, which is equivalent to include in C. [wtxpath] is determined by the environment variable of wind_base.
► Create a project
: Prj_vxworks_hidden: vxprojcreate $ prjtemporarydir/prjtemp. wpj $ bspdir
Specify the generated project name and BSP path to automatically generate the compilation project from BSP.
Prj_vxworks_hidden is a famous space. This statement is used to name namespace eval prjmigrate {}
► Add a file to the Project
Use cmpfileadd. For more information, see help.
► Modify macros and compilation options in the project
Cmpbuildmarcoset. For more information, see help.
► Add components to the Project
Cmpadd. For more information, see help.
► Save Project
Cmpsave. For more information, see help.
Basically, these functions are used in prjmigrate. TCL. You can understand this file carefully. The syntax of TCL is relatively simple. It is easy to get started by referring to the manual. In this way, you can use scripts to control tornado operations and automate the project.