Use of Tcl scripts in tornado

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.