title: Is there a Delphi library which returns all effective source paths for a project?
body: <p>For static code analysis tools, it is necessary to know all effective source paths for a given Delphi project, which are defined on project level and in the global IDE configuration.</p>
  
  <p>Is there a Delphi library which can collect this kind of project information? </p>
  
  <p>As far as I know, the registry settings for the Delphi IDE can be in different places, to support multiple configurations. But for a given combination of the IDE registry location and a project file, it should be possible to collect the source paths.</p>
  
  <p><strong>Edit</strong>: Another solution is to use the --depends switch. This will cause dcc32.exe to write a ".d" file with all dcu file names of the project (and all dependencies), including the path names. However, the file list includes units which are compiled already, so it is not a correct solution for the original problem.</p>