Main Content

coder.make.BuildItem class

Package: coder.make

Represent build item


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


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.


h = coder.make.BuildItem(blditm_macrovalue) creates a coder.make.BuildItem object that has a value.

h = coder.make.BuildItem(blditm_macroname,blditm_value) creates a coder.make.BuildItem object that has a macro name and value.

Input Arguments

expand all

Macro name of build item, specified as a character vector.

Data Types: char

Value of build item

Data Types: char

Output Arguments

expand all

BuildItem handle, specified as a coder.make.BuildItem object that contains an option value.

Example: bi


getMacroGet macro name of build item
getValueGet value of build item
setMacroSet macro name of build item
setValueSet value of build item

Copy Semantics

Handle. To learn how handle classes affect copy operations, see Copying Objects.


bi1 = coder.make.BuildItem('BuildItemMacroValue')
bi1 = 

	Macro  : (empty)
	Value : BuildItemMacroValue
bi2 = coder.make.BuildItem('BIMV','BuildItemMacroValue')
bi2 = 

	Macro  : BIMV
	Value : BuildItemMacroValue