function varargout = getNonBuildFiles(h,concatenatePaths,replaceMatlabroot,varargin)
% GETNONBUILDFILES The getNonBuildFiles function returns the names of non build
% related files stored in the model's build information. Use the
% concatenatePaths and replaceMatlabroot arguments to control whether the
% function sources paths and your MATLAB root definition in the output it
% returns. Using optional includeGroups and excludeGroups arguments, you can
% selectively source or exclude groups of source files the function returns.
%
% Argument description
% buildinfo Build information handle returned by RTW.Buildinfo.
%
% concatenatePaths if true concatenates and returns each filename with its
% corresponding path.
%
% replaceMatlabroot if true replaces the token $(MATLAB_ROOT) with the absolute
% path string for your MATLAB installation directory.
%
% includeGroups (optional) A character array or cell array of character
% arrays that specifies groups of source files you want
% the function to return.
%
% excludeGroups (optional) A character array or cell array of character
% array that specifies groups of source files you do not
% want the function to return.
%
% Return values
% the function returns the source files stored in the model's build
% information.
%
% example 1:
% myModelBuildInfo = RTW.BuildInfo;
% addNonBuildFiles(myModelBuildInfo, {'etc.c' 'etc_private.c' 'mytypes.c'},...
% {'/etc/proj/etclib' '/proj/etc/etcbld' '/common/lib'},...
% {'etc' 'etc' 'shared'});
% srcfiles=getNonBuildFiles(myModelBuildInfo, true, false,'etc');
%
% resulting values:
% srcfiles == {'/etc/proj/etclib/etc.c' '/proj/etc/etcbld/etc_private.c'}
%
% Please refer to the documentation for more information.
%

% Copyright 2005-2019 The MathWorks, Inc.
[varargin{:}] = convertStringsToChars(varargin{:});
[varargout{1:nargout}] = h.getFiles('other', concatenatePaths, replaceMatlabroot, varargin{:});