Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions android/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ download_and_extract $ICUDATA_URL
rm -rf $SDL2_DIR
download_and_extract $SDL2_URL

# SDL3
rm -rf $SDL3_DIR
download_and_extract $SDL3_URL

# liblcf
rm -rf liblcf
download_liblcf
1 change: 1 addition & 0 deletions android/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ if [ ! -f .patches-applied ]; then
fi

# Install SDL2
# FIXME: Remove this when SDL3 migration is done
function install_lib_sdl {
# $1: platform (armeabi-v7a aarch64 x86 x86_x64)

Expand Down
8 changes: 6 additions & 2 deletions emscripten/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ else
touch .emscripten

# Download and install the latest SDK tools and set up the compiler configuration to point to it.
./emsdk install 3.1.74
./emsdk activate 3.1.74
./emsdk install 5.0.5
./emsdk activate 5.0.5

# Set the current Emscripten path
source ./emsdk_env.sh
Expand Down Expand Up @@ -146,6 +146,10 @@ download_and_extract $ICUDATA_URL
rm -rf $SDL2_DIR
download_and_extract $SDL2_URL

# SDL3
rm -rf $SDL3_DIR
download_and_extract $SDL3_URL

# liblcf
rm -rf liblcf
download_liblcf
2 changes: 2 additions & 0 deletions emscripten/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ install_lib $SDL2_DIR $SDL2_ARGS --disable-assembly --disable-threads --disable-
rm -f config.cache
unset TARGET_HOST

install_lib_cmake $SDL3_DIR $SDL3_ARGS

install_lib_icu_cross
icu_force_data_install

Expand Down
4 changes: 4 additions & 0 deletions ios/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ msg " [3] Downloading platform libraries"
rm -rf $SDL2_DIR
download_and_extract $SDL2_URL

# SDL3
rm -rf $SDL3_DIR
download_and_extract $SDL3_URL

# liblcf
rm -rf liblcf
download_liblcf
1 change: 1 addition & 0 deletions ios/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ function build() {
icu_force_data_install
install_lib_liblcf
install_lib_cmake $SDL2_DIR $SDL2_ARGS
install_lib_cmake $SDL3_DIR $SDL3_ARGS
}

export MAKEFLAGS="-j${nproc:-2}"
Expand Down
4 changes: 4 additions & 0 deletions linux-static/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ download_and_extract $ICUDATA_URL
rm -rf $SDL2_DIR
download_and_extract $SDL2_URL

# SDL3
rm -rf $SDL3_DIR
download_and_extract $SDL3_URL

# freeimage (only needed for lmu2png tool!)
rm -rf $FREEIMAGE_DIR
download_and_extract $FREEIMAGE_URL
Expand Down
1 change: 1 addition & 0 deletions linux-static/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@ install_lib_cmake $FMT_DIR $FMT_ARGS
install_lib $ICU_DIR/source $ICU_ARGS
install_lib_liblcf
install_lib $SDL2_DIR $SDL2_ARGS PULSEAUDIO_CFLAGS=-Ixxxdir PULSEAUDIO_LIBS=-lxxxlib
install_lib_cmake $SDL3_DIR $SDL3_ARGS
install_lib_cmake $FREEIMAGE_DIR $FREEIMAGE_ARGS
4 changes: 4 additions & 0 deletions macos/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ msg " [3] Downloading platform libraries"
rm -rf $SDL2_DIR
download_and_extract $SDL2_URL

# SDL3
rm -rf $SDL3_DIR
download_and_extract $SDL3_URL

# freeimage (only needed for lmu2png tool!)
rm -rf $FREEIMAGE_DIR
download_and_extract $FREEIMAGE_URL
Expand Down
1 change: 1 addition & 0 deletions macos/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ function build() {
install_lib_icu_cross
icu_force_data_install
install_lib $SDL2_DIR $SDL2_ARGS --disable-assembly
install_lib_cmake $SDL3_DIR $SDL3_ARGS
install_lib_cmake $FREEIMAGE_DIR $FREEIMAGE_ARGS
install_lib_liblcf
}
Expand Down
2 changes: 1 addition & 1 deletion shared/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ function cleanup {
rm -rf zlib-*/ libpng-*/ freetype-*/ harfbuzz-*/ pixman-*/ expat-*/ libogg-*/ \
libvorbis-*/ tremor-*/ mpg123-*/ libsndfile-*/ libxmp-lite-*/ speexdsp-*/ \
libsamplerate-*/ wildmidi-*/ opus-*/ opusfile-*/ icu/ icu-native/ icu-cross/ \
SDL2-*/ SDL2_image-*/ fmt-*/ FluidLite-*/ fluidsynth-*/ json-*/ inih-*/ \
SDL2-*/ SDL3-*/ fmt-*/ FluidLite-*/ fluidsynth-*/ json-*/ inih-*/ \
lhasa-*/ freeimage-* liblcf/
rm -f *.zip *.bz2 *.gz *.xz *.tgz icudt* .patches-applied config.cache meson-cross.txt
rm -rf sbin/ share/
Expand Down
10 changes: 8 additions & 2 deletions shared/packages.ini
Original file line number Diff line number Diff line change
Expand Up @@ -160,19 +160,25 @@ version_major = 78
version_minor = 2
version = ${version_major}.${version_minor}
_ini_comment = empty on purpose, otherwise polluted by default section
directory =
directory =
url = https://ci.easyrpg.org/job/icudata/lastSuccessfulBuild/artifact/icudata${version_major}_all.tar.gz
files = "icudt*.dat"
anitya_id = 379847

[SDL2]
comment = Remove when SDL3 migration is done
version = 2.32.10
url = "https://libsdl.org/release/SDL2-${version}.tar.gz"
anitya_id = 4779

[SDL3]
version = 3.4.4
url = "https://libsdl.org/release/SDL3-${version}.tar.gz"
arguments = "-DSDL_TEST_LIBRARY=OFF -DSDL_EXAMPLES=OFF"
anitya_id = 375746

[freeimage]
comment = 3.18.0, only needed for lmu2png tool
version = d82954e4adcb6c1b223bd3cb2e953b6bbf54dfcd
url = "https://github.com/carstene1ns/freeimage-easyrpg/archive/${version}.zip"
directory = "freeimage-easyrpg-${version}"

5 changes: 5 additions & 0 deletions shared/packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,14 @@ ICU_ARGS="--enable-strict=no --disable-tests --disable-samples \
ICUDATA_URL=https://ci.easyrpg.org/job/icudata/lastSuccessfulBuild/artifact/icudata78_all.tar.gz
ICUDATA_FILES="icudt*.dat"

# Remove when SDL3 migration is done
SDL2_URL="https://libsdl.org/release/SDL2-2.32.10.tar.gz"
SDL2_DIR="SDL2-2.32.10"

SDL3_URL="https://libsdl.org/release/SDL3-3.4.4.tar.gz"
SDL3_ARGS="-DSDL_TEST_LIBRARY=OFF -DSDL_EXAMPLES=OFF"
SDL3_DIR="SDL3-3.4.4"

# 3.18.0, only needed for lmu2png tool
FREEIMAGE_URL="https://github.com/carstene1ns/freeimage-easyrpg/archive/d82954e4adcb6c1b223bd3cb2e953b6bbf54dfcd.zip"
FREEIMAGE_DIR="freeimage-easyrpg-d82954e4adcb6c1b223bd3cb2e953b6bbf54dfcd"
Expand Down
4 changes: 4 additions & 0 deletions tvos/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ msg " [3] Downloading platform libraries"
rm -rf $SDL2_DIR
download_and_extract $SDL2_URL

# SDL3
rm -rf $SDL3_DIR
download_and_extract $SDL3_URL

# liblcf
rm -rf liblcf
download_liblcf
1 change: 1 addition & 0 deletions tvos/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ function build() {
icu_force_data_install
install_lib_liblcf
install_lib_cmake $SDL2_DIR $SDL2_ARGS
install_lib_cmake $SDL3_DIR $SDL3_ARGS
}

export MAKEFLAGS="-j${nproc:-2}"
Expand Down
4 changes: 2 additions & 2 deletions windows/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ vcpkg install --triplet x86-windows-static --recurse^
libvorbis[core] libsndfile[core] wildmidi[core] libxmp[core]^
speexdsp[core] mpg123[core] opusfile[core] fluidsynth-easyrpg[core]^
inih[cpp] lhasa-easyrpg[core]^
sdl2[core] icu-easyrpg[core] nlohmann-json[core] fmt[core]
sdl2[core] sdl3[core] icu-easyrpg[core] nlohmann-json[core] fmt[core]

:: Build 64-bit libraries
vcpkg install --triplet x64-windows-static --recurse^
libpng[core] expat[core] pixman[core] freetype[core,zlib] harfbuzz[freetype]^
libvorbis[core] libsndfile[core] wildmidi[core] libxmp[core]^
speexdsp[core] mpg123[core] opusfile[core] fluidsynth-easyrpg[core]^
inih[cpp] lhasa-easyrpg[core]^
sdl2[core] icu-easyrpg[core] nlohmann-json[core] fmt[core]
sdl2[core] sdl3[core] icu-easyrpg[core] nlohmann-json[core] fmt[core]
Loading