function [syslibs, libpaths] = getSysLibInfo(this)
% GETSYSLIBINFO returns the list of system libraries and the lib paths for them.

% Copyright 2017-2023 The MathWorks, Inc.

syslibs = this.getFiles('syslib',false,false);
libpaths = this.getPaths('syslib',false);

% Child buildInfos must be loaded
loadChildBuildInfos(this);

% Propagate system libraries from child models
% Acquire link flags from each child buildInfo
childBuildInfos = [this.LinkablesInternal.BuildInfoHandle];

for i=1:length(childBuildInfos)
childBuildInfo = childBuildInfos(i);
if isempty(childBuildInfo)
continue;
end

excludeGroup = {coder.make.internal.BuildInfoGroup.BiStandardGroup};
childLibs = childBuildInfo.getFiles('syslib',false,false, {}, excludeGroup);
childPaths = childBuildInfo.getPaths('syslib',false);

syslibs = [syslibs childLibs]; %#ok
libpaths = [libpaths childPaths]; %#ok
end

syslibs = unique(syslibs, 'stable');
libpaths = unique(libpaths, 'stable');
end