target.Toolchain class
Package: target
Description
Use a target.Toolchain
object to capture high-level information about a
toolchain.
To create a target.Toolchain
object, use the target.create
function.
Properties
Id
— Object identifier
string
Unique ID of object in internal database.
Attributes:
GetAccess | public |
SetAccess | private |
Name
— Toolchain name
string
Name of the toolchain, in a form that you want workflows to display.
Example: 'CMake/Ninja for all
hosts'
Attributes:
GetAccess | public |
SetAccess | public |
SupportedHardware
— Supported target devices
target.HardwareComponentSupport
object array
Optional. Target devices for which the toolchain can build code.
Attributes:
GetAccess | public |
SetAccess | public |
HostOperatingSystemSupport
— Operating system support
target.HostOperatingSystemSupport
object
Development computer operating systems that the toolchain can run on.
Attributes:
GetAccess | public |
SetAccess | public |
Tools
— Toolchain tools
target.Tool
object array
Tools in the toolchain.
Attributes:
GetAccess | public |
SetAccess | public |
Builder
— Builder configuration
target.CMakeBuilder
object | target.MakefileBuilder
object
An object that describes the configuration of a build automation tool. For a
CMake-based toolchain, use a target.CMakeBuilder
object. For a
makefile-based toolchain, use a target.MakefileBuilder
object.
Attributes:
GetAccess | public |
SetAccess | public |
BuildRequirements
— Build dependencies
target.BuildDependencies
object
C and C++ build dependencies that you must associate with the toolchain. For example, specific preprocessor directives or libraries. When you specify this property, every build that uses the toolchain includes the dependencies.
Attributes:
GetAccess | public |
SetAccess | public |
EnvironmentConfiguration
— Environment configuration
target.EnvironmentConfiguration
object array
An array of objects that provide system environment setup commands and paths that are required for the use of the toolchain. For example, vendor-supplied setup scripts. Use only one object for each operating system of a development computer.
Attributes:
GetAccess | public |
SetAccess | public |
Examples
Use target.Toolchain
to Configure CMake Code Build
This code snippet from Create Custom CMake Toolchain Definition shows
how you can create a target.Toolchain
object and use it to configure
the way CMake builds generated code.
tc = target.create('Toolchain', 'Name', 'Example Custom CMake Toolchain'); tc.Builder = target.create('CMakeBuilder'); tc.Builder.Generator = 'Ninja'; tc.Builder.ToolchainFile = fullfile(pwd, 'ExampleCMakeToolchain.cmake');
Version History
Introduced in R2022b
MATLAB-Befehl
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)