// first add the user defined externals
externs.addAll(targetSettings.getExterns());
// next add all of the symbols from external libraries
IWorkspace w = project.getWorkspace();
List<File> libraries = new ArrayList<File>(
targetSettings.getExternalLibraryPath().size() +
targetSettings.getRuntimeSharedLibraryPath().size());
libraries.addAll(targetSettings.getExternalLibraryPath());
for (RSLSettings settings : targetSettings.getRuntimeSharedLibraryPath())
{
libraries.add(settings.getLibraryFile());
}
for (File library : libraries)
{
Collection<ICompilationUnit> units = null;
units = w.getCompilationUnits(library.getAbsolutePath(), project);
for (ICompilationUnit unit : units)
{
// Don't allow embed units to be extern'd. Rely on the class
// containing the embed to either pull in or extern the embed.