For the most part, just run the scripts in this directory from this directory.
- visionOS
- Requires CMake 3.28 or newer
- Web
- Install emsdk somewhere.
- On Windows hosts, run
config-web-win.bat
via theemcmdprompt.bat
cmd in the emsdk root directory - On Unix hosts, first run
source emsdk_env.sh
(found in the emsdk root directory), then runconfig-web-unix.sh
- After the build completes, use
python3 -m http.server
in the build directory to make the page accessible.
- Android
- There is no easy CMake config for this platform. Instead, follow the steps as outlined below. See the android GitHub action for more details.
- Install Android Studio + NDK from https://developer.android.com/studio
- Copy
build.gradle
toSDL/android-project/app/
. If you look insidebuild.gradle
, you'll see"../../../CMakeLists.txt"
as the path to the CMakeLists file. This points to the CMakeLists in this repo's root directory after it is copied. cd SDL/android-project/
./gradlew assembleDebug
. You'll get an apk which you can then install onto a device.