Main Content

coder.make.BuildItem Class

Namespace: 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.

The coder.make.BuildItem class is a handle class.

Creation

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

Methods

expand all

Examples

collapse all

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

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

	Macro  : BIMV
	Value : BuildItemMacroValue

Version History

Introduced in R2013a