soc.sdk.BuildConfiguration Class
Namespace: soc.sdk
Configuration that describes how to build generated code
Description
A BuildConfiguration
object that specifies a build configuration for
soc.sdk.Toolchain
object.
Creation
Description
creates
an object that represents a build configuration for the toolchain.buildConfigurationObj
= soc.sdk.BuildConfiguration(name
)
Input Arguments
name
— Display name of hardware object
string | character vector
Set the Name
property of the new
BuildConfiguration
object.
Example: "MyBuildConfiguration"
Data Types: string
| char
Properties
AssemblerFlags
— Assembler flags
''
(default) | character vector
The assembler flags used when compiling code with this build configuration.
Example: '--statistics'
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
CompilerFlags
— C compiler flags
''
(default) | character vector
The C compiler flags used when compiling code with this build configuration.
Example: '-Wall'
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
LinkerFlags
— C linker flags
''
(default) | character vector
The C linker flags used when linking code with this build configuration.
Example: '-pipe'
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
CPPCompilerFlags
— C++ compiler defines
''
(default) | character vector
The C++ compiler flags used when compiling code with this build configuration.
Example: '-Wall'
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
CPPLinkerFlags
— C++ linker flags
''
(default) | character vector
The C++ linker flags used when linking code with this build configuration.
Example: '-pipe'
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
IncludePaths
— Additional include paths
{}
(default) | cell array of character vectors
The additional include paths used when compiling code with this build configuration.
Note
Include paths may include tokens. If a path separator is included as part of the path, it must be valid for all supported host platforms.
Example: {'-pipe'}
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: cell
IncludePathsToRemove
— Include paths to be removed from build when building model for hardware
{}
(default) | cell array of character vectors
The include paths to be excluded when compiling code with this build configuration.
Note
Include paths may include tokens. If a path separator is included as part of the path, it must be valid for all supported host platforms.
Example: {'-pipe'}
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: cell
LinkObjects
— Additional link objects
{}
(default) | cell array of character vectors
The additional link objects used when linking code with this build configuration. A link object must include a full path.
Note
The path may include tokens. If a path separator is included as part of the path, it must be valid for all supported host platforms.
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: cell
Name
— Name of build configuration
character vector
Name of the BuildConfiguration
object.
Example: 'MyBuildConfiguration'
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
SourceFiles
— Additional source files
{}
| cell array of character vectors
The additional source files used when compiling code with this build configuration.
Example: 'mysource.c'
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: cell
SourceFilesToRemove
— Source files to remove
{}
(default) | cell array of character vectors
The source files to be excluded when compiling code with this build configuration. A source file must include a full path.
Note
The path may include tokens. If a path separator is included as part of the path, it must be valid for all supported host platforms.
Example: 'mysource.c'
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: cell
Version History
Introduced in R2019b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)