Main Content

getNonBuildFiles

Get nonbuild-related files from build information

Description

example

files= getNonBuildFiles(buildinfo,concatenatePaths,replaceMatlabroot,includeGroups,excludeGroups)returns the names of non-build files from the build information, such as DLL files required for a final executable or a README file.

The function requires thebuildinfo,concatenatePaths, andreplaceMatlabrootarguments. You can use optionalincludeGroupsandexcludeGroupsarguments. These optional arguments let you include or exclude groups selectively from the non-build files returned by the function.

If you choose to specifyexcludeGroupsand omitincludeGroups, specify a null character vector ('')includeGroups.

The makefile for the build resolves file locations based on source paths and rules. The build process does not require you to resolve the path of every file in the build information. If you specifytruefor theconcatenatePathsargument, thegetNonBuildFilesfunction returns the path for each file:

  • If a path was explicitly associated with the file when it was added.

  • If you calledupdateFilePathsAndExtensionsto resolve file paths and extensions before callinggetIncludeFiles.

Examples

collapse all

Get the nonbuild file names stored in the build information,myBuildInfo.

myBuildInfo = RTW.BuildInfo; addNonBuildFiles(myBuildInfo,{'readme.txt''myutility1.dll'...'myutility2.dll'}); nonbuildfiles = getNonBuildFiles(myBuildInfo,false,false);
>> nonbuildfiles nonbuildfiles = 'readme.txt' 'myutility1.dll' 'myutility2.dll'

Input Arguments

collapse all

Specify Function Action
true Concatenates and returns each file name with its corresponding path.
false Returns only file names.

Example:true

Use thereplaceMatlabrootargument to control whether the function includes the MATLAB®root definition in the output that it returns.

Specify Function Action
true Replaces the token$(MATLAB_ROOT)with the absolute path for your MATLAB installation folder.
false Does not replace the token$(MATLAB_ROOT).

Example:true

To use theincludeGroupsargument, view available groups by usingmyGroups = getGroups(buildInfo).

Example:''

To use theexcludeGroupsargument, view available groups by usingmyGroups = getGroups(buildInfo).

Example:''

Output Arguments

collapse all

Version History

Introduced in R2008a