mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-01-30 17:13:50 +01:00
DroidFish: Added support for mips architecture. Requires NDK r8.
This commit is contained in:
parent
99501040c2
commit
7344b26a53
|
@ -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>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
APP_ABI := armeabi armeabi-v7a x86
|
||||
APP_ABI := armeabi armeabi-v7a x86 mips
|
||||
APP_STL := stlport_static
|
||||
APP_OPTIM := release
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user