Skip to content
Merged
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
6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ lhasa: ISC
mpg123: LGPLv2.1+
nlohmann-json: MIT
ogg: BSD
opus: BSD
opusfile: BSD
opus: BSD
opusfile: BSD
pixman: MIT
png: zlib
samplerate: BSD
SDL2: zlib
SDL3: zlib
sndfile: LGPLv2.1+
speexdsp: BSD
vorbis: BSD
Expand Down
12 changes: 2 additions & 10 deletions android/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ else
exit 1
fi

SDK_VERSION="9477386_latest"
SDK_VERSION="14742923_latest"
SDK_URL="https://dl.google.com/android/repository/commandlinetools-${SDK_PLATFORM}-${SDK_VERSION}.zip"
curl -sSLOR "$SDK_URL"
unzip commandlinetools-${SDK_PLATFORM}-${SDK_VERSION}.zip
Expand Down Expand Up @@ -68,7 +68,7 @@ echo "y" | ./cmdline-tools/latest/bin/sdkmanager --verbose "cmake;3.22.1"

msg " [3] Installing Android NDK"

echo "y" | ./cmdline-tools/latest/bin/sdkmanager --verbose "ndk;21.4.7075529"
echo "y" | ./cmdline-tools/latest/bin/sdkmanager --verbose "ndk;28.2.13676358"

cd ..

Expand Down Expand Up @@ -162,14 +162,6 @@ download_and_extract $ICU_URL
rm -f $ICUDATA_FILES
download_and_extract $ICUDATA_URL

# SDL2
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
36 changes: 3 additions & 33 deletions android/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,9 @@ if [ ! -f .patches-applied ]; then
patch -Np1 < ../pixman-cpufeatures.patch
)

# use android config
(cd $SDL2_DIR
mv include/SDL_config_android.h include/SDL_config.h
mkdir -p jni
)

touch .patches-applied
fi

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

pushd $SDL2_DIR
echo "APP_ABI := $1" >> "jni/Application.mk"
ndk-build NDK_PROJECT_PATH=. NDK_DEBUG=0 APP_BUILD_SCRIPT=./Android.mk APP_PLATFORM=android-$TARGET_API
mkdir -p $PLATFORM_PREFIX/lib
mkdir -p $PLATFORM_PREFIX/include/SDL2
cp libs/$1/* $PLATFORM_PREFIX/lib/
cp include/* $PLATFORM_PREFIX/include/SDL2/
cd ..
}

function build() {
# $1: Toolchain Name
# $2: Toolchain architecture
Expand All @@ -66,15 +45,7 @@ function build() {

echo "Preparing $1 toolchain"

export TARGET_API=16
if [ "$3" = "arm64" ]; then
# Minimum API 21 on ARM64
export TARGET_API=21
fi
if [ "$3" = "x86_64" ]; then
# Minimum API 21 on x86_64
export TARGET_API=21
fi
export TARGET_API=21

export PATH=$OLD_PATH
export PLATFORM_PREFIX=$WORKSPACE/$2-toolchain
Expand All @@ -85,7 +56,7 @@ function build() {
export NM=$NDK_PATH/llvm-nm
export RANLIB=$NDK_PATH/llvm-ranlib

export CFLAGS="-no-integrated-as -g0 -O2 -fPIC $5"
export CFLAGS="-g0 -O2 -fPIC $5"
export CXXFLAGS="$CFLAGS"
export CPPFLAGS="-I$PLATFORM_PREFIX/include -I$ANDROID_NDK/sources/android/cpufeatures"
export LDFLAGS="-L$PLATFORM_PREFIX/lib"
Expand Down Expand Up @@ -122,12 +93,11 @@ function build() {
install_lib $LHASA_DIR $LHASA_ARGS
install_lib_cmake $FMT_DIR $FMT_ARGS
install_lib_icu_cross
install_lib_sdl "$2"
install_lib_liblcf
}

export SDK_ROOT=$WORKSPACE/android-sdk
export ANDROID_NDK=$SDK_ROOT/ndk/21.4.7075529
export ANDROID_NDK=$SDK_ROOT/ndk/28.2.13676358

export MAKEFLAGS="-j${nproc:-2}"

Expand Down
4 changes: 0 additions & 4 deletions emscripten/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,6 @@ download_and_extract $ICU_URL
rm -f $ICUDATA_FILES
download_and_extract $ICUDATA_URL

# SDL2
rm -rf $SDL2_DIR
download_and_extract $SDL2_URL

# SDL3
rm -rf $SDL3_DIR
download_and_extract $SDL3_URL
Expand Down
8 changes: 0 additions & 8 deletions emscripten/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,6 @@ install_lib_cmake $NLOHMANNJSON_DIR $NLOHMANNJSON_ARGS
install_lib_meson $INIH_DIR $INIH_ARGS
#install_lib $LHASA_DIR $LHASA_ARGS
install_lib_cmake $FMT_DIR $FMT_ARGS

# emscripten TARGET_HOST does not work for all libraries but SDL2 requires it
export TARGET_HOST="asmjs-unknown-emscripten"
rm -f config.cache
install_lib $SDL2_DIR $SDL2_ARGS --disable-assembly --disable-threads --disable-cpuinfo
rm -f config.cache
unset TARGET_HOST

install_lib_cmake $SDL3_DIR $SDL3_ARGS

install_lib_icu_cross
Expand Down
2 changes: 0 additions & 2 deletions emscripten/3_cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ headermsg "Cleaning up library build folders and other stuff..."

cleanup

rm -rf SDL2/

echo " -> done"
4 changes: 0 additions & 4 deletions ios/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ download_and_extract $ICUDATA_URL

msg " [3] Downloading platform libraries"

# SDL2
rm -rf $SDL2_DIR
download_and_extract $SDL2_URL

# SDL3
rm -rf $SDL3_DIR
download_and_extract $SDL3_URL
Expand Down
1 change: 0 additions & 1 deletion ios/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ function build() {
install_lib_icu_cross
icu_force_data_install
install_lib_liblcf
install_lib_cmake $SDL2_DIR $SDL2_ARGS
install_lib_cmake $SDL3_DIR $SDL3_ARGS
}

Expand Down
4 changes: 0 additions & 4 deletions linux-static/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ download_and_extract $ICU_URL
rm -f $ICUDATA_FILES
download_and_extract $ICUDATA_URL

# SDL2
rm -rf $SDL2_DIR
download_and_extract $SDL2_URL

# SDL3
rm -rf $SDL3_DIR
download_and_extract $SDL3_URL
Expand Down
1 change: 0 additions & 1 deletion linux-static/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ install_lib $LHASA_DIR $LHASA_ARGS
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 $FREEIMAGE_DIR $FREEIMAGE_ARGS

# Ensure that SDL3 finds the system libraries
Expand Down
4 changes: 0 additions & 4 deletions macos/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ download_and_extract $ICUDATA_URL

msg " [3] Downloading platform libraries"

# SDL2
rm -rf $SDL2_DIR
download_and_extract $SDL2_URL

# SDL3
rm -rf $SDL3_DIR
download_and_extract $SDL3_URL
Expand Down
1 change: 0 additions & 1 deletion macos/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ function build() {
install_lib_cmake $FMT_DIR $FMT_ARGS
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
4 changes: 2 additions & 2 deletions shared/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function download_liblcf {
# color check
HAVE_COLORS=0
if [ -t 1 ] ; then
HAVE_COLORS=1
HAVE_COLORS=1
fi

function colormsg {
Expand Down 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-*/ SDL3-*/ fmt-*/ FluidLite-*/ fluidsynth-*/ json-*/ inih-*/ \
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
6 changes: 0 additions & 6 deletions shared/packages.ini
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,6 @@ url = https://ci.easyrpg.org/job/icudata/lastSuccessfulBuild/artifact/icudata${v
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"
Expand Down
4 changes: 0 additions & 4 deletions shared/packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ 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"
Expand Down
4 changes: 0 additions & 4 deletions tvos/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ download_and_extract $ICUDATA_URL

msg " [3] Downloading platform libraries"

# SDL2
rm -rf $SDL2_DIR
download_and_extract $SDL2_URL

# SDL3
rm -rf $SDL3_DIR
download_and_extract $SDL3_URL
Expand Down
1 change: 0 additions & 1 deletion tvos/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ function build() {
install_lib_icu_cross
icu_force_data_install
install_lib_liblcf
install_lib_cmake $SDL2_DIR $SDL2_ARGS
install_lib_cmake $SDL3_DIR $SDL3_ARGS
}

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[core]^
inih[cpp] lhasa-easyrpg[core]^
sdl2[core] sdl3[core] icu-easyrpg[core] nlohmann-json[core] fmt[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[core]^
inih[cpp] lhasa-easyrpg[core]^
sdl2[core] sdl3[core] icu-easyrpg[core] nlohmann-json[core] fmt[core]
sdl3[core] icu-easyrpg[core] nlohmann-json[core] fmt[core]