I am trying to setup a TravisCI script to compile the Android version of my app given that a git tag is pushed.
The problem is that in its current settings it takes around 10 minutes to compile something that takes less than 2 minutes in XCode (this includes the compilation of Cocos2D-x itself).
I have tried to find any settings that changes the threading when compiling but I am clueless on how Gradle and Android Studio works.
How do I debug if there’s a flag that isn’t set properly? I could see a line that supposedly appends the flag
-jN to the compiler arguments in
app/build.gradle, and I know that flag should tell clang/gcc how many threads to run on. Or is compiling for Android just that much slower? It is the JNI/NDK parts that take forever, of course. The C++.
Thanks for reading!