DroidFish: Added support for mips architecture. Requires NDK r8.

This commit is contained in:
Peter Osterlund 2012-05-19 06:42:02 +00:00
parent 99501040c2
commit 7344b26a53
3 changed files with 5 additions and 2 deletions

View File

@ -4,5 +4,6 @@
<copy file="${basedir}/libs/armeabi/stockfish" tofile="${basedir}/assets/stockfish-armeabi"/>
<copy file="${basedir}/libs/armeabi-v7a/stockfish" tofile="${basedir}/assets/stockfish-armeabi-v7a"/>
<copy file="${basedir}/libs/x86/stockfish" tofile="${basedir}/assets/stockfish-x86"/>
<copy file="${basedir}/libs/mips/stockfish" tofile="${basedir}/assets/stockfish-mips"/>
</target>
</project>

View File

@ -1,3 +1,3 @@
APP_ABI := armeabi armeabi-v7a x86
APP_ABI := armeabi armeabi-v7a x86 mips
APP_STL := stlport_static
APP_OPTIM := release

View File

@ -39,7 +39,9 @@ public class EngineUtil {
if (sdkVersion < 4)
return "stockfish15.mygz";
String abi = CpuAbi.get();
if (!abi.equals("x86") && !abi.equals("armeabi-v7a"))
if (!abi.equals("x86") &&
!abi.equals("armeabi-v7a") &&
!abi.equals("mips"))
abi = "armeabi"; // Unknown ABI, assume original ARM
return "stockfish-" + abi;
}