Generate dependencies while building for android
Merge pull request #1019 from mstorsjo/android-build-deps

Generate dependencies while building for android