Following describes how to build uoYabause Android version on Windows.
1) Obtain source code from github using git command
$ git clone https://github.com/devmiyax/yabause.git
2) Edit ANDROID_NDK PATH in "yabause/src/android/CMakeLists.txt" to indicate the directory where your ndk is installed.
3) Generate ninja build file
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=yabause/src/android/androidtoolchain.cmake
4) Edit CMake settings using cmake-gui
Cache value | |
---|---|
ANDROID_ABI | armeabi-v7a with NEON |
ANDROID_NATIVE_API_LEVEL | 21 |
YAB_PORTS | android |
YAB_WANT_ARM7 | checked |
5) "Configure" and "Generate"
6) Exec command prompt and exec "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86 for building using cl.exe. This directory is depended where and what version Visual Studio is installed.
7) Exec ninja
8) Exec AndroidStudio , select menu [File]->[Open], and select directory "yabause/src/android"
9) Select menu [Build]->[Make Project], then apk is generated.