Created
August 17, 2026 16:05
-
-
Save ivan-enzhaev/6d6a77b2a485e4f7e7a5fc7db28e1fab to your computer and use it in GitHub Desktop.
Script for a tutorial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| set NDK=H:/AndroidSDK/ndk/27.0.12077973 | |
| if not exist build-android-64 mkdir build-android-64 | |
| cd build-android-64 | |
| :: Clean old cache if it exists | |
| if exist CMakeCache.txt del CMakeCache.txt | |
| cmake .. ^ | |
| -DCMAKE_TOOLCHAIN_FILE=%NDK%/build/cmake/android.toolchain.cmake ^ | |
| -DANDROID_ABI=arm64-v8a ^ | |
| -DANDROID_PLATFORM=android-21 ^ | |
| -DSDL_SHARED=ON ^ | |
| -DSDL_STATIC=OFF ^ | |
| -DSDL_EXAMPLES=OFF ^ | |
| -DSDL_TESTS=OFF ^ | |
| -DCMAKE_BUILD_TYPE=Release ^ | |
| -DCMAKE_INSTALL_PREFIX=C:/libs/sdl3-android/arm64-v8a ^ | |
| -G "MinGW Makefiles" | |
| cmake --build . --config Release --target install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment