1,316
edits
Praetorian (talk | contribs) |
Praetorian (talk | contribs) |
||
Line 113: | Line 113: | ||
<u>From the Docker container shell</u>: | <u>From the Docker container shell</u>: | ||
Clean up any remnants folders from a previous build | Clean up any remnants folders from a previous build: | ||
rm -rf android_project | |||
rm -rf debug | |||
rm -rf release | |||
'''TODO''' The following instructions build for the <code>android-arm64-v8a</code> architecture. A slightly different configure command is required for the other target architectures. | '''TODO''' The following instructions build for the <code>android-arm64-v8a</code> architecture. A slightly different configure command is required for the other target architectures. | ||
Line 128: | Line 125: | ||
* <code>android-x86</code> - ideal for emulator with 32bit images | * <code>android-x86</code> - ideal for emulator with 32bit images | ||
* <code>android-x86_64</code> - ideal for emulator with 64bit images | * <code>android-x86_64</code> - ideal for emulator with 64bit images | ||
'''For a debug build''', run the following series of commands from inside the local scummvm repository folder (you should be in there by default after running the <code>docker run</code> command): | '''For a debug build (android-arm64-v8a)''', run the following series of commands from inside the local scummvm repository folder (you should be in there by default after running the <code>docker run</code> command): | ||
CXX="ccache ${ANDROID_TOOLCHAIN}/bin/aarch64-linux-android21-clang++" PKG_CONFIG_LIBDIR="${ANDROID_TOOLCHAIN}/sysroot/usr/lib/aarch64-linux-android/21/pkgconfig" PATH=${PATH}:"${ANDROID_TOOLCHAIN}/sysroot/usr/bin/aarch64-linux-android/21" make clean; ./configure --enable-verbose-build --enable-all-engines --host=android-arm64-v8a --enable-debug | CXX="ccache ${ANDROID_TOOLCHAIN}/bin/aarch64-linux-android21-clang++" PKG_CONFIG_LIBDIR="${ANDROID_TOOLCHAIN}/sysroot/usr/lib/aarch64-linux-android/21/pkgconfig" PATH=${PATH}:"${ANDROID_TOOLCHAIN}/sysroot/usr/bin/aarch64-linux-android/21" make clean; ./configure --enable-verbose-build --enable-all-engines --host=android-arm64-v8a --enable-debug | ||
make -j$(nproc) androiddistdebug | make -j$(nproc) androiddistdebug | ||
Line 138: | Line 135: | ||
For instructions on how to create a debug signing certificate manually, if the developer wants to create it one their own for some reason, please refer to the [https://developer.android.com/studio/publish/app-signing#debugmode Android Developers instructions here]. | For instructions on how to create a debug signing certificate manually, if the developer wants to create it one their own for some reason, please refer to the [https://developer.android.com/studio/publish/app-signing#debugmode Android Developers instructions here]. | ||
'''For a release build''', run the following series of commands from inside the local scummvm repository folder (you should be in there by default after running the 'docker run' command): | '''For a release build (android-arm64-v8a)''', run the following series of commands from inside the local scummvm repository folder (you should be in there by default after running the 'docker run' command): | ||
CXX="ccache ${ANDROID_TOOLCHAIN}/bin/aarch64-linux-android21-clang++" PKG_CONFIG_LIBDIR="${ANDROID_TOOLCHAIN}/sysroot/usr/lib/aarch64-linux-android/21/pkgconfig" PATH=${PATH}:"${ANDROID_TOOLCHAIN}/sysroot/usr/bin/aarch64-linux-android/21" make clean; ./configure --enable-verbose-build --enable-all-engines --host=android-arm64-v8a --disable-debug --enable-release | CXX="ccache ${ANDROID_TOOLCHAIN}/bin/aarch64-linux-android21-clang++" PKG_CONFIG_LIBDIR="${ANDROID_TOOLCHAIN}/sysroot/usr/lib/aarch64-linux-android/21/pkgconfig" PATH=${PATH}:"${ANDROID_TOOLCHAIN}/sysroot/usr/bin/aarch64-linux-android/21" make clean; ./configure --enable-verbose-build --enable-all-engines --host=android-arm64-v8a --disable-debug --enable-release | ||
make -j$(nproc) androiddistrelease | make -j$(nproc) androiddistrelease |
edits