Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop   

addIncludePaths - Add include paths to model's build information

Syntax

addIncludePaths(buildinfo, paths, groups)

groups is optional.

Arguments

buildinfo

Build information returned by RTW.BuildInfo.

paths

A character array or cell array of character arrays that specifies include file paths to be added to the build information. The function adds the paths to the end of a vector in the order that you specify them.

The function removes duplicate include file entries that

  • You specify as input

  • Already exist in the include path vector

  • Have a path that matches the path of a matching filename

A duplicate entry consists of an exact match of a path string and corresponding filename.

groups (optional)

A character array or cell array of character arrays that groups specified include paths. You can use groups to

  • Document the use of specific include paths

  • Retrieve or apply groups of include paths

You can apply

  • A single group name to an include path

  • A single group name to multiple include paths

  • Multiple group names to collections of multiple include paths

To...Specify groups as a...
Apply one group name to all include pathsCharacter array.
Apply different group names to include pathsCell array of character arrays such that the number of group names that you specify matches the number of elements you specify for paths.

Description

The addIncludePaths function adds specified include paths to the model's build information. The Real-Time Workshop software stores the include paths in a vector. The function adds the paths to the end of the vector in the order that you specify them.

In addition to the required buildinfo and paths arguments, you can specify an optional groups argument. You can specify groups as a character array or a cell array of character arrays.

If You Specify an Optional Argument as a... The Function...
Character arrayApplies the character array to all include paths it adds to the build information.
Cell array of character arraysPairs each character array with a specified include path. Thus, the length of the cell array must match the length of the cell array you specify for paths.

Examples

See Also

addIncludeFiles, addSourceFiles, addSourcePaths, getIncludePaths, updateFilePathsAndExtensions, updateFileSeparator
Customizing Post Code Generation Build Processing

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS