Main Content

setPrebuildTool

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

Assign BuildTool object to named PrebuildTool in PrebuildTools

Syntax

h.setPrebuildTool(bldtl_name, bldtl_handle)

Description

h.setPrebuildTool(bldtl_name, bldtl_handle) assigns a BuildTool object to the named build tool in coder.make.ToolchainInfo.PrebuildTools.

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

Examples

h = coder.make.ToolchainInfo;
bt = coder.make.BuildTool('examplename');
h.addPrebuildTool('toolname');
h.setPrebuildTool('toolname',bt)

Version History

Introduced in R2013a