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

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

You can apply

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, updateFilePathsAndExtensions, updateFileSeparator
Programming a Post Code Generation Command

  


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