C / C++Edit

  • Scan #includes
    • What to do with same names?

Mono Edit

  • Scan the project files (MonoDevelop, ...) if any (it should include what packages to 'link')

C# Edit

  • Scan "using PackageName"

Python Edit

  • scanning python files and looking for "import" statements may help determine the python dependencies required

Look at build tool Edit

Each buildtool (scons, autotools, waf, ...) has its own dependecy checking, we could run that and scan the output to see what is missing. This should be in my opinion the first method that is being tried (before scanning the sourcefiles)