coder.ExternalDependency.updateBuildInfo
Class: coder.ExternalDependency
Namespace: coder
Configure compiler flags and other build options for use by the code generator
Syntax
coder.ExternalDependency.updateBuildInfo(buildInfo,bldcfg)
Description
coder.ExternalDependency.updateBuildInfo(
is a static method that you can use to pass compiler flags and other build options to
the code generator. The code generator invokes this method to determine how to build
your code after code generation. This method takes as input the build information object
buildInfo
,bldcfg
)buildInfo
and the build context object
bldcfg
and can use the methods of these objects to access the
build information and the build context, respectively.
To use coder.ExternalDependency.updateBuildInfo
, follow these steps:
Create a custom class that inherits from
coder.ExternalDependency
.Implement
coder.ExternalDependency.updateBuildInfo
in your custom class. Modify thebuildInfo
object to specify compiler flags, custom includes, custom libraries, and other build information.Use your custom class or any of its methods in a MATLAB® function for which you generate code.
During code generation, the code generator invokes the
coder.ExternalDependency.updateBuildInfo
method for your custom class.
Note
When the code generator invokes the
coder.ExternalDependency.updateBuildInfo
method for a
subclass, it also invokes the
coder.ExternalDependency.updateBuildInfo
methods for
all classes from which the subclass inherits. The
code generator invokes the
coder.ExternalDependency.updateBuildInfo
method for each
class in the class hierarchy exactly once.
Input Arguments
Limitations
The build information method
AddIncludeFiles
has no effect in acoder.ExternalDependency.updateBuildInfo
method.
More About
Extended Capabilities
Version History
Introduced in R2013bSee Also
coder.updateBuildInfo
| coder.BuildConfig
| coder.ceval
| coder.ExternalDependency
Topics
- Develop Interface for External C/C++ Code (MATLAB Coder)
- Build Process Customization (MATLAB Coder)
- Integrate External/Custom Code (MATLAB Coder)