addSourcePaths - Add source paths to model's build information

Syntax

addSourcePaths(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 source 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 source 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 source paths. You can use groups to

You can apply

To...Specify groups as a...
Apply one group name to all source pathsCharacter array.
Apply different group names to source 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 addSourcePaths function adds specified source paths to the model's build information. The Real-Time Workshop software stores the source 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 source paths it adds to the build information.
Cell array of character arraysPairs each character array with a specified source path. Thus, the length of the character array or cell array must match the length of the cell array you specify for paths.

Examples

See Also

addIncludeFiles, addIncludePaths, addSourceFiles, updateFilePathsAndExtensions, updateFileSeparator
Programming a Post Code Generation Command

  


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