Main Content

target.BuildDependencies Class

Namespace: target

Describe C and C++ build dependencies to associate with target hardware

Since R2020b

Description

Use the target.BuildDependencies object to:

  • Describe C and C++ build dependencies, for example, source files and include paths.

  • Associate the dependencies with your target hardware.

For example, you can use a target.BuildDependencies object to describe the build dependencies for a target.APIImplementation object.

Properties

expand all

Specify path to source files.

Attributes:

GetAccess
public
SetAccess
public

Include file dependencies.

Attributes:

GetAccess
public
SetAccess
public

Header file include path dependencies.

Attributes:

GetAccess
public
SetAccess
public

Macro definition dependencies.

Attributes:

GetAccess
public
SetAccess
public

Static library dependencies.

Attributes:

GetAccess
public
SetAccess
public

Shared library dependencies.

Attributes:

GetAccess
public
SetAccess
public

Examples

collapse all

This example shows how you can describe the implementation build dependencies for the rtiostream C API.

apiImp = target.create('APIImplementation', 'Name', ...
                       'x86 rtiostream Implementation');
apiImp .API = target.create('API', 'Name', 'rtiostream');
apiImp .BuildDependencies = target.create('BuildDependencies');
apiImp .BuildDependencies.SourceFiles = ...
           {fullfile('$(MATLAB_ROOT)', 'toolbox', ...
                     'coder', 'rtiostream','src', ...
                     'rtiostreamtcpip', 'rtiostream_tcpip.c')};
apiImp.MainFunction = target.create('MainFunction', ...
                      'Name', 'TCP RtIOStream Main');
apiImp.MainFunction.Arguments = {'-blocking', '1', '-port', '0'};

Version History

Introduced in R2020b