diff --git a/Packaging/dreamcast/README.md b/Packaging/dreamcast/README.md index 6633be03a..eed2aaea9 100644 --- a/Packaging/dreamcast/README.md +++ b/Packaging/dreamcast/README.md @@ -4,9 +4,10 @@ This folder contains the Dreamcast packaging flow for DevilutionX. ## Prerequisites -- [KallistiOS](http://gamedev.allusion.net/softprj/kos/) (KOS) with kos-ports (SDL1, zlib, bzip2) +- [KallistiOS](https://kos-docs.dreamcast.wiki/) (KOS) with kos-ports (zlib, bzip2) - [`mkdcdisc`](https://gitlab.com/simulant/mkdcdisc) for CDI disc image creation +SDL (GPF SDL with DMA video) and Lua are built from source automatically by `build.sh`. No external `fmt` patch is required. The build applies a bundled SH4 `libfmt` patch automatically. ## Game Data (Required) diff --git a/Packaging/dreamcast/build.sh b/Packaging/dreamcast/build.sh index db53dc789..acf8859e4 100755 --- a/Packaging/dreamcast/build.sh +++ b/Packaging/dreamcast/build.sh @@ -32,8 +32,9 @@ fi GPF_SDL_DIR="${SCRIPT_DIR}/SDL-gpf" GPF_SDL_LIB="${KOS_BASE}/addons/lib/dreamcast/libSDL.a" +GPF_SDL_HEADER="${KOS_BASE}/addons/include/dreamcast/SDL/SDL_dreamcast.h" -if [ ! -f "${GPF_SDL_LIB}" ]; then +if [ ! -f "${GPF_SDL_HEADER}" ]; then echo "Building GPF SDL (SDL-dreamhal--GLDC) for DMA video..." if [ ! -d "${GPF_SDL_DIR}" ]; then git clone --depth 1 -b SDL-dreamhal--GLDC \ @@ -52,6 +53,7 @@ cmake_args=( -S "${ROOT_DIR}" -B "${BUILD_DIR}" -DCMAKE_TOOLCHAIN_FILE="${ROOT_DIR}/CMake/platforms/dreamcast.toolchain.cmake" + -DDEVILUTIONX_SYSTEM_LUA=OFF ) if command -v ninja >/dev/null 2>&1; then diff --git a/docs/building.md b/docs/building.md index e846eb4ca..5bc7ca8d3 100644 --- a/docs/building.md +++ b/docs/building.md @@ -415,9 +415,10 @@ cmake --build build ### Installing dependencies -- [KallistiOS](http://gamedev.allusion.net/softprj/kos/) (KOS) with kos-ports (SDL1, zlib, bzip2) +- [KallistiOS](https://kos-docs.dreamcast.wiki/) (KOS) with kos-ports (zlib, bzip2) - [`mkdcdisc`](https://gitlab.com/simulant/mkdcdisc) for CDI disc image creation +SDL (GPF SDL with DMA video) and Lua are built from source automatically. No external `fmt` patch is required. The build applies a bundled SH4 fix automatically. ### Game data