在IAR中的help中输入argument variables时会找到这样的一个列表:
On many of the pages in the
Options dialog box, you can use
argument variables for paths and arguments:
|
|
|
The name of the current build configuration, for example Debug or Release.
|
|
|
|
|
|
|
|
Top directory of IAR Embedded Workbench, for example c:\program files\iar systems\embedded workbench 6.n //EW的安装目录
|
|
Directory for executable output //可执行文件的输出目录
|
|
Filename without extension //无扩展名文件
|
|
Full path without extension //无扩展名全部路径
|
|
Directory of active file, no filename //当前活动文件目录,不包含文件名
|
|
Filename of active file without path //当前活动文件,不包含路径
|
|
Full path of active file (in Editor, Project, or Message window) //当前活动文件的完整路径
|
|
Directory for list output //列表文件的输出路径
|
|
Directory for object output //目标文件输出路径
|
|
|
|
Project filename without path //工程名称 不包含路径
|
|
Full path of project file //工程文件的完整路径
|
|
Directory of primary output file //主输出文件路径
|
|
Filename without path of primary output file and without extension //无主输出文件目录,无扩展名的文件名
|
|
Full path of primary output file without extension //无扩展名的主输出文件的完整路径
|
|
Filename without path of primary output file //无路径的主输出文件名
|
|
Full path of primary output file //主输出文件的完整路径
|
|
Directory of the active product, for example c:\program files\iar systems\embedded workbench 6.n\arm //已激活的开发环境的目录
|
|
|
|
The environment variable ENVVAR. Any name within $_ and _$ will be expanded to that system environment variable.
|
Argument variables can also be used on some pages in the
IDE Options dialog box, see
Tools menu
当对项目进行配置时,要利用上面的一些参数变量进行相应的设置。 从而可以避免当工程移到其他的电脑上的时候出现路径的错误而采用相对路径