function addSysLibPaths(h, varargin)
% ADDSYSYLIBPATHS - The addSysLibPaths function adds specified paths to the
% model's build information. Simulink Coder stores the system lib paths in a
% vector. The function adds the paths to the end of the vector in the order that
% you specify them.
%
% Argument description
% buildinfo Build information handle returned by RTW.Buildinfo.
%
% paths A character array or cell array of character arrays that
% specifies system lib paths to be added to the build
% information. The function adds the paths to the end of a
% vector in the order that you specify them.
% The function removes duplicate source file entries that
% - Already exist in the source path vector
% - Have a path that matches the path of a matching filename
% A duplicate entry consists of an exact match of a path string
% and corresponding filename.
%
% groups (optional) A character array or cell array of character arrays
% that groups specified system lib paths
%
% example 1:
% myModelBuildInfo = RTW.BuildInfo;
% addSourcePaths(myModelBuildInfo,...
% {'/etcproj/etclib' '/etcproj/etc/etc_build'},'etc');
% example 2:
% myModelBuildInfo = RTW.BuildInfo;
% addSourcePaths(myModelBuildInfo,...
% {'/etc/proj/etclib' '/etcproj/etc/etc_build'...
% '/common/lib'}, {'etc' 'etc' 'shared'});
%
% Please refer to the documentation for more information.
%

% Copyright 2012-2019 The MathWorks, Inc.

h.addPaths('syslib', varargin{:});