Main Content

setPostbuildTool

Class: coder.make.ToolchainInfo
Package: coder.make

Assign BuildTool object to PostbuildTool tool in PostbuildTools

Syntax

h.setPostbuildTool(bldtl_name, bldtl_handle)

Description

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

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.

Examples

h = coder.make.ToolchainInfo;
bt = coder.make.BuildTool('examplename')
h.addPostbuildTool('toolname')
h.setPostbuildTool('toolname',bt)