taka-no-me / android-cmake

CMake toolchain file and other scripts for the Android NDK
1.22k stars 438 forks source link

Forced response files for build commands #76

Open iboB opened 8 years ago

iboB commented 8 years ago

The maximum command line length in Windows is 32kb. The windows generators in CMake support this by setting a hard limit on a command line of 30 k, and splitting however appropriate.

However when generating (and building) Unix makefiles in Windows there is no command line limit.

This pull request forces the generation of response files for includes, archiving libs, and linking executables and dyn libs, thus greatly reducing the command line in windows builds and making hitting the limit very, very unlikely.