Browse Source

Use bundled Lua for Dreamcast instead of kos-ports

Ensures the LUA_USE_C89 fix always applies regardless of whether
kos-ports Lua happens to be installed, and removes Lua as a
kos-ports prerequisite.

Signed-off-by: Panagiotis Georgiadis <pgeorgia@redhat.com>
pull/8489/head
Panagiotis Georgiadis 2 weeks ago
parent
commit
87711d4188
No known key found for this signature in database
GPG Key ID: A5B9AF563B15B24F
  1. 3
      Packaging/dreamcast/README.md
  2. 4
      Packaging/dreamcast/build.sh
  3. 3
      docs/building.md

3
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)

4
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

3
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

Loading…
Cancel
Save