Main Content

addPostbuildTool

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

Add postbuild tool to PostbuildTools

Syntax

h.addPostbuildTool(bldtl_name)
h.addPostbuildTool(bldtl_name, bldtl_handle)

Description

h.addPostbuildTool(bldtl_name) adds a BuildTool object to PostbuildTools.

h.addPostbuildTool(bldtl_name, bldtl_handle) adds a postbuild tool to PostbuildTools and assigns a BuildTool object to it.

Tips

Refer to the Example 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.

Examples

h = coder.make.ToolchainInfo;
bt = coder.make.BuildTool('postbuildtoolname');
h.addPostbuildTool('examplename',bt)
ans = 

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

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

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

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

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