coder.make.BuildItem class
Package: coder.make
Represent build item
Description
Create a coder.make.BuildItem
object that can
have macro name and value. Then, use the BuildItem
object
as an argument for one of the following coder.make.BuildTool
methods:
coder.make.BuildTool.getCommand
coder.make.BuildTool.setCommand
coder.make.BuildTool.setPath
coder.make.BuildTool.addFileExtension
Note
What is a macro? The term has a different meaning depending on the context:
In this context, a macro is a variable that the makefile can use to refer to a given value, such as a build tool’s command, path, or file extension.
In topics for the
coder.make.ToolchainInfo.Macros
and related methods, a macro is a variable that the makefile can use to refer to arbitrary or predefined value.
Construction
creates
a h
= coder.make.BuildItem(blditm_macrovalue
)coder.make.BuildItem
object that has a value.
creates
a h
= coder.make.BuildItem(blditm_macroname
,blditm_value
)coder.make.BuildItem
object that has a macro name
and value.
Input Arguments
Output Arguments
Methods
getMacro | Get macro name of build item |
getValue | Get value of build item |
setMacro | Set macro name of build item |
setValue | Set value of build item |
Copy Semantics
Handle. To learn how handle classes affect copy operations, see Copying Objects.
Example
bi1 = coder.make.BuildItem('BuildItemMacroValue')
bi1 = Macro : (empty) Value : BuildItemMacroValue
bi2 = coder.make.BuildItem('BIMV','BuildItemMacroValue')
bi2 = Macro : BIMV Value : BuildItemMacroValue