Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop   

findIncludeFiles - Find and add include (header) files to build information object

Syntax

findIncludeFiles(buildinfo, extPatterns)

extPatterns is optional.

Arguments

buildinfo

Build information returned by RTW.BuildInfo.

extPatterns (optional)

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*

Description

The findIncludeFiles function

Examples

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'

See Also

Programming a Post Code Generation Command

  


Related Products & Applications

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

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