getSourceFiles
Get source files from build information
Syntax
Description
returns the names of source files from the build information.srcfiles
= getSourceFiles(buildinfo
,concatenatePaths
,replaceMatlabroot
,includeGroups
,excludeGroups
)
The function requires the buildinfo
,
concatenatePaths
, and
replaceMatlabroot
arguments. You can use optional
includeGroups
and
excludeGroups
arguments. These optional arguments let
you include or exclude groups selectively from the source files returned by the
function.
If you choose to specify excludeGroups
and omit
includeGroups
, specify a null character vector
(''
) for 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 specify true
for the
concatenatePaths
argument, the
getSourceFiles
function returns the path for each
file:
If a path was explicitly associated with the file when it was added.
If you called
updateFilePathsAndExtensions
(Simulink Coder) to resolve file paths and extensions before callinggetSourceFiles
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2006a
See Also
Topics
- Customize Post-Code-Generation Build Processing (Simulink Coder)