C / C++Edit
- Scan #includes
- What to do with same names?
- Scan the project files (MonoDevelop, ...) if any (it should include what packages to 'link')
- Scan "using PackageName"
- 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)