If you are building on linux, I have a hack to speed up the NDK build:
cd <ndk-bundle-path> mv ndk-build ndk-build2
Now create a shell script called "ndk-build" containing the following:
#!/bin/sh $(dirname $0)/ndk-build2 -j 8 $@
Now set the execution permissions for the new script:
chmod 775 ndk-build
Now, anyone who runs ndk-build (including gradle / android studio) will force the object files into 8 cores at the same time. 8 cores - an example. You must set this for the number of cores available to you. If you set it too high compared to the number of available cores, you usually lose performance. If the processor has hyperthreading, you can double the number of cores.
I'm sure there is an equivalent way to do this on windows with a script package or something, but I don't have an atm machine available for Windows.
bofjas
source share