coder.make.BuildItem类
包:coder.make
表示构建项
描述
创建一个coder.make.BuildItem
对象,该对象可以具有宏名称和值。然后,使用BuildItem
对象作为下列参数之一的参数coder.make.BuildTool
方法:
coder.make.BuildTool.getCommand
coder.make.BuildTool.setCommand
coder.make.BuildTool.setPath
coder.make.BuildTool.addFileExtension
请注意
什么是宏?这个词根据上下文有不同的含义:
在这个上下文中,宏是一个变量,makefile可以使用它引用给定的值,比如构建工具的命令、路径或文件扩展名。
在主题中
coder.make.ToolchainInfo.Macros
宏是makefile可以用来引用任意值或预定义值的变量。
建设
创建一个h
= coder.make.BuildItem (blditm_macrovalue
)coder.make.BuildItem
对象,该对象具有值。
创建一个h
= coder.make.BuildItem (blditm_macroname
,blditm_value
)coder.make.BuildItem
对象,该对象具有宏名称和值。
输入参数
输出参数
复制语义
句柄。要了解句柄类如何影响复制操作,请参见复制对象(MATLAB)。
例子
bi1 = code .make. builditem (“BuildItemMacroValue”)
bi1 =宏:(空)值:BuildItemMacroValue
bi2 = code .make. builditem (“BIMV”,“BuildItemMacroValue”)
bi2 =宏:BIMV值:BuildItemMacroValue
这个话题有帮助吗?