Simulink.sfunction.analyzer.BuildInfo class
Package: Simulink.sfunction.analyzer
Superclasses:
Create an object to represent build information
Description
A Simulink.sfunction.analyzer.BuildInfo
object captures the build
information for S-functions, such as source files, header files, and linking libraries,
for use with the Simulink.sfunction.Analyzer
class.
Construction
creates a bdInfo
= Simulink.sfunction.analyzer.BuildInfo(SfcnFile
)Simulink.sfunction.analyzer.BuildInfo
object.
creates a bdInfo
= Simulink.sfunction.analyzer.BuildInfo(SfcnFile
,'SrcPath
',{srcpaths},'ExtraSrcFileList
',{srcfilelist})Simulink.sfunction.analyzer.BuildInfo
object for a C-MEX
S-function source file, a list of extra source files located in the specified
path.
creates a bdInfo
= Simulink.sfunction.analyzer.BuildInfo(SfcnFile
,'ObjFileList
',{objfilelist})Simulink.sfunction.analyzer.BuildInfo
object for C-MEX
S-function source file and list of extra objective code files.
creates a bdInfo
= Simulink.sfunction.analyzer.BuildInfo(SfcnFile
,'IncPaths
',{incpathslist})Simulink.sfunction.analyzer.BuildInfo
object for C-MEX
S-function source file and paths to the folders including header files.
creates a bdInfo
= Simulink.sfunction.analyzer.BuildInfo(SfcnFile
,'LibFileList
',{libfilelist},'LibPaths
',{libpaths})Simulink.sfunction.analyzer.BuildInfo
object for C-MEX
S-function source file and library files and library file paths used for
building.
creates a bdInfo
= Simulink.sfunction.analyzer.BuildInfo(SfcnFile
,'PreProcDefList
',{preprocdir})Simulink.sfunction.analyzer.BuildInfo
object for C-MEX
S-function source file and pre-processor
directives list.
Input Arguments
Output Arguments
Examples
Create a Simulink.sfunction.analyzer.BuildInfo
object named
bdInfo
for an S-function named mysfun
that
includes a source file named mysfun.c
.
Basic Use
bdInfo = Simulink.sfunction.analyzer.BuildInfo('mysfun.c');
The output bdInfo
has the following fields:
bdInfo = BuildInfo with properties: SfcnFile: 'mysfun.c' SfcnName: 'mysfun' SrcType: 'C' SrcPaths: {} ExtraSrcFileList: {} ObjFileList: {} IncPaths: {} LibFileList: {} LibPaths: {} PreProcDefList: {}
Advanced Use
Create a bdInfo
object for an S-function
mysfun
that includes a source file
mysfun.c
and also includes:
List of extra source files,
extra1.c
andextra2.c
Paths to source file folders,
/path1
and/path2
.List of objective files,
o1.obj
ando2.obj
.List of library files,
l1.lib
andl2.lib
.Library paths,
/libpath1
.Pre-processor running directives,
-DDEBUG
.
Simulink.sfunction.analyzer.BuildInfo('mysfun.c',... 'ExtraSrcFileList',{extra1.c,extra2.c},... 'SrcPaths',{/path1,/path2},... 'ObjFileList',{o1.obj,o2.obj},... 'LibFileList',{l1.lib,l2.lib},... 'LibPaths',{/libpath1},... 'PreProcDefList',{DEBUG});
Version History
Introduced in R2017b