code: private String getAdditionalDependencies(final TargetInfo linkTarget, final List<DependencyDef> projectDependencies,
        final Map<String, TargetInfo> targets, final String basePath) {
      String dependencies = null;
      final File[] linkSources = linkTarget.getAllSources();
      final StringBuffer buf = new StringBuffer();
      for (final File linkSource : linkSources) {
        //
        // if file was not compiled or otherwise generated
        //
        if (targets.get(linkSource.getName()) == null) {
          //
          // if source appears to be a system library or object file
          // just output the name of the file (advapi.lib for example)
          // otherwise construct a relative path.
          //
          String relPath = linkSource.getName();
          //
          // check if file comes from a project dependency
          // if it does it should not be explicitly linked
          boolean fromDependency = false;
          if (relPath.indexOf(".") > 0) {
            final String baseName = relPath.substring(0, relPath.indexOf("."));
            for (DependencyDef depend : projectDependencies) {
              if (baseName.compareToIgnoreCase(depend.getName()) == 0) {
                fromDependency = true;
              }
            }
          }
  
          if (!fromDependency) {
            if (!CUtil.isSystemPath(linkSource)) {
              relPath = CUtil.getRelativePath(basePath, linkSource);
            }
            //
            // if path has an embedded space then
            // must quote
            if (relPath.indexOf(' ') > 0) {
              buf.append('\"');
              buf.append(CUtil.toWindowsPath(relPath));
              buf.append('\"');
            } else {
              buf.append(relPath);
            }
            buf.append(' ');
          }
        }
      }
      if (buf.length() > 0) {
        buf.setLength(buf.length() - 1);
        dependencies = buf.toString();
      }
      return dependencies;
  
    }
docs: Get value of AdditionalDependencies property.
  
  @param linkTarget
  link target.
  @param projectDependencies
  dependencies declared in project.
  @param targets
  all targets.
  @param basePath
  path to directory containing project file.
  @return value of AdditionalDependencies property.