Main Content

addPostExecuteTool

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

Add post-execute tool to PostbuildTools

Syntax

h.addPostExecuteTool(name,bldtl_handle)

Description

h.addPostExecuteTool(name,bldtl_handle) adds a named build tool to PostbuildTools after the Execute tool.

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.

Name of post execute tool, specified as a character vector or string scalar.

coder.make.BuildTool object handle.

Examples

Refer to the coder.make.BuildTool Example for an example of to create a BuildTool.

To use addPostExecuteTool, enter the following commands:

h = coder.make.ToolchainInfo;
bt = coder.make.BuildTool('toolname');
h.addPostExecuteTool('ExampleName',bt)
ans = 

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

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

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

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

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