Main Content

addBuildTool

Class: coder.make.ToolchainInfo
Namespace: coder.make

Add BuildTool object to BuildTools

Syntax

tool = h.addBuildTool(bldtl_name)
tool = h.addBuildTool(bldtl_name, bldtl_handle)

Description

tool = h.addBuildTool(bldtl_name) creates and adds a named BuildTool object to coder.make.ToolchainInfo.BuildTools.

tool = h.addBuildTool(bldtl_name, bldtl_handle) adds an existing BuildTool object to coder.make.ToolchainInfo.BuildTools. The bldtl_name argument overrides the Name property of the existing BuildTool object.

Tips

Refer to the Examples for coder.make.BuildTool for an example of how to create a BuildTool object.

Input Arguments

expand all

A coder.make.ToolchainInfo object, specified using an object handle, such as h. To create h, enter h = coder.make.ToolchainInfo in a MATLAB® Command Window.

Build tool name, specified as a character vector or string scalar.

Data Types: char | string

coder.make.BuildTool object handle.

Output Arguments

expand all

Handle of coder.make.BuildTool object.

Examples

Refer to the coder.make.BuildTool Examples for a complete example of how to create a addBuildTool.

Create a Build Tool and Specify Its Name

h.addBuildTool('ExampleBuildTool')
ans = 

##############################################
# Build Tool: Build Tool
##############################################

Language              : 'C'
OptionsRegistry       : {}
InputFileExtensions   : {}
OutputFileExtensions  : {}
DerivedFileExtensions : {}
SupportedOutputs      : {'*'}
CommandPattern        : '|>TOOL<| |>TOOL_OPTIONS<| |>OUTPUT_FLAG<| |>OUTPUT<|'

# ---------
# Command
# ---------

# ------------
# Directives
# ------------
(none)

# -----------------
# File Extensions
# -----------------
(none)

Version History

Introduced in R2013a