| Real-Time Workshop® | ![]() |
Find and add include (header) files to build information object
findIncludeFiles(buildinfo, extPatterns)
extPatterns is optional.
Build information returned by RTW.BuildInfo.
A cell array of character arrays that specify patterns of file name extensions for which the function is to search. Each pattern
Must start with *.
Can include any combination of alphanumeric and underscore (_) characters
The default pattern is *.h.
Examples of valid patterns include
| *.h |
| *.hpp |
| *.x* |
The findIncludeFiles function
Searches for include files, based on specified file name extension patterns, in all source and include paths recorded in a model's build information object
Adds the files found, along with their full paths, to the build information object
Deletes duplicate entries
Find all include files with filename extension .h that are in build information object myModelBuildInfo, and add the full paths for any files found to the object.
myModelBuildInfo = RTW.BuildInfo;
addSourcePaths(myModelBuildInfo, {fullfile(pwd,...
'mycustomheaders')}, 'myheaders');
findIncludeFiles(myModelBuildInfo);
headerfiles = getIncludeFiles(myModelBuildInfo, true, false);
headerfiles
headerfiles =
'W:\work\mycustomheaders\myheader.h'Programming a Post Code Generation Command
![]() | emlc | RTW.getBuildDir | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |