Skip to content

Commit

Permalink
Add FluidLite
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed Aug 20, 2020
1 parent 86067f2 commit 11eaeb2
Show file tree
Hide file tree
Showing 21 changed files with 56 additions and 4 deletions.
4 changes: 4 additions & 0 deletions 3ds/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ download_and_extract $OPUS_URL
rm -rf $OPUSFILE_DIR
download_and_extract $OPUSFILE_URL

# FluidLite
rm -rf $FLUIDLITE_DIR
download_and_extract $FLUIDLITE_URL

# fmt
rm -rf $FMT_DIR
download_and_extract $FMT_URL
Expand Down
1 change: 1 addition & 0 deletions 3ds/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,6 @@ install_lib $SPEEXDSP_DIR $SPEEXDSP_ARGS
install_lib_cmake $WILDMIDI_DIR $WILDMIDI_ARGS
install_lib $OPUS_DIR $OPUS_ARGS
install_lib $OPUSFILE_DIR $OPUSFILE_ARGS
install_lib_cmake $FLUIDLITE_DIR $FLUIDLITE_ARGS
install_lib_cmake $FMT_DIR $FMT_ARGS
install_lib_icu_cross
4 changes: 4 additions & 0 deletions android/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ download_and_extract $OPUS_URL
rm -rf $OPUSFILE_DIR
download_and_extract $OPUSFILE_URL

# FluidLite
rm -rf $FLUIDLITE_DIR
download_and_extract $FLUIDLITE_URL

# fmt
rm -rf $FMT_DIR
download_and_extract $FMT_URL
Expand Down
1 change: 1 addition & 0 deletions android/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ function build() {
install_lib_cmake $WILDMIDI_DIR $WILDMIDI_ARGS
install_lib $OPUS_DIR $OPUS_ARGS
install_lib $OPUSFILE_DIR $OPUSFILE_ARGS
install_lib_cmake $FLUIDLITE_DIR $FLUIDLITE_ARGS -DENABLE_SF3=ON
install_lib_cmake $FMT_DIR $FMT_ARGS
install_lib_icu_cross
install_lib_sdl "$2"
Expand Down
4 changes: 4 additions & 0 deletions emscripten/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ download_and_extract $OPUS_URL
rm -rf $OPUSFILE_DIR
download_and_extract $OPUSFILE_URL

# FluidLite
rm -rf $FLUIDLITE_DIR
download_and_extract $FLUIDLITE_URL

# fmt
rm -rf $FMT_DIR
download_and_extract $FMT_URL
Expand Down
1 change: 1 addition & 0 deletions emscripten/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ install_lib $SPEEXDSP_DIR $SPEEXDSP_ARGS
#install_lib_cmake $WILDMIDI_DIR $WILDMIDI_ARGS
install_lib $OPUS_DIR $OPUS_ARGS
install_lib $OPUSFILE_DIR $OPUSFILE_ARGS
install_lib_cmake $FLUIDLITE_DIR $FLUIDLITE_ARGS -DENABLE_SF3=ON
install_lib_cmake $FMT_DIR $FMT_ARGS

install_lib_sdl2
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 @@ -70,6 +70,10 @@ download_and_extract $OPUS_URL
rm -rf $OPUSFILE_DIR
download_and_extract $OPUSFILE_URL

# FluidLite
rm -rf $FLUIDLITE_DIR
download_and_extract $FLUIDLITE_URL

# fmt
rm -rf $FMT_DIR
download_and_extract $FMT_URL
Expand Down
1 change: 1 addition & 0 deletions ios/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ install_lib $SPEEXDSP_DIR $SPEEXDSP_ARGS
install_lib_cmake $WILDMIDI_DIR $WILDMIDI_ARGS
install_lib $OPUS_DIR $OPUS_ARGS
install_lib $OPUSFILE_DIR $OPUSFILE_ARGS
install_lib_cmake $FLUIDLITE_DIR $FLUIDLITE_ARGS -DENABLE_SF3=ON
install_lib_cmake $FMT_DIR $FMT_ARGS
install_lib_icu_cross

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 @@ -70,6 +70,10 @@ download_and_extract $OPUS_URL
rm -rf $OPUSFILE_DIR
download_and_extract $OPUSFILE_URL

# FluidLite
rm -rf $FLUIDLITE_DIR
download_and_extract $FLUIDLITE_URL

# fmt
rm -rf $FMT_DIR
download_and_extract $FMT_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 @@ -56,6 +56,7 @@ install_lib $SPEEXDSP_DIR $SPEEXDSP_ARGS
install_lib_cmake $WILDMIDI_DIR $WILDMIDI_ARGS
install_lib $OPUS_DIR $OPUS_ARGS
install_lib $OPUSFILE_DIR $OPUSFILE_ARGS
install_lib_cmake $FLUIDLITE_DIR $FLUIDLITE_ARGS -DENABLE_SF3=ON
install_lib_cmake $FMT_DIR $FMT_ARGS
install_lib $ICU_DIR/source $ICU_ARGS
install_lib $SDL2_DIR $SDL2_ARGS PULSEAUDIO_CFLAGS=-Ixxxdir PULSEAUDIO_LIBS=-lxxxlib
Expand Down
4 changes: 4 additions & 0 deletions osx/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ download_and_extract $OPUS_URL
rm -rf $OPUSFILE_DIR
download_and_extract $OPUSFILE_URL

# FluidLite
rm -rf $FLUIDLITE_DIR
download_and_extract $FLUIDLITE_URL

# fmt
rm -rf $FMT_DIR
download_and_extract $FMT_URL
Expand Down
1 change: 1 addition & 0 deletions osx/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ install_lib $SPEEXDSP_DIR $SPEEXDSP_ARGS
install_lib_cmake $WILDMIDI_DIR $WILDMIDI_ARGS
install_lib $OPUS_DIR $OPUS_ARGS
install_lib $OPUSFILE_DIR $OPUSFILE_ARGS
install_lib_cmake $FLUIDLITE_DIR $FLUIDLITE_ARGS -DENABLE_SF3=ON
install_lib_cmake $FMT_DIR $FMT_ARGS
install_lib $ICU_DIR/source $ICU_ARGS
install_lib $SDL2_DIR $SDL2_ARGS
Expand Down
2 changes: 1 addition & 1 deletion shared/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,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/ \
SDL2-*/ SDL2_mixer-*/ SDL2_image-*/ fmt-*/
SDL2-*/ SDL2_mixer-*/ SDL2_image-*/ fmt-*/ FluidLite-*/
rm -f *.zip *.bz2 *.gz *.xz *.tgz icudt* *.pl .patches-applied config.cache
rm -rf bin/ sbin/ share/
}
7 changes: 6 additions & 1 deletion shared/packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ OPUSFILE_URL="https://archive.mozilla.org/pub/opus/$lib-$ver.tar.gz"
OPUSFILE_DIR="$lib-$ver"
OPUSFILE_ARGS="--disable-http --disable-examples"

lib=FluidLite
ver=813e5481816d049344f1f6ccdc1b22e546970ee6
FLUIDLITE_URL="https://github.com/divideconcept/$lib/archive/$ver.zip"
FLUIDLITE_DIR="$lib-$ver"
FLUIDLITE_ARGS="-DFLUIDLITE_BUILD_STATIC=ON -DFLUIDLITE_BUILD_SHARED=OFF"

lib=fmt
ver=6.2.0
FMT_URL="https://github.com/fmtlib/fmt/releases/download/$ver/$lib-$ver.zip"
Expand Down Expand Up @@ -132,4 +138,3 @@ ver=2.0.5
SDL2_IMAGE_URL="https://www.libsdl.org/projects/SDL_image/release/$lib-$ver.tar.gz"
SDL2_IMAGE_DIR="$lib-$ver"
SDL2_IMAGE_ARGS="--disable-jpg --disable-png-shared --disable-tif --disable-webp"

4 changes: 4 additions & 0 deletions switch/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ download_and_extract $OPUS_URL
rm -rf $OPUSFILE_DIR
download_and_extract $OPUSFILE_URL

# FluidLite
rm -rf $FLUIDLITE_DIR
download_and_extract $FLUIDLITE_URL

# fmt
rm -rf $FMT_DIR
download_and_extract $FMT_URL
Expand Down
1 change: 1 addition & 0 deletions switch/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,6 @@ install_lib $LIBSAMPLERATE_DIR $LIBSAMPLERATE_ARGS
install_lib_cmake $WILDMIDI_DIR $WILDMIDI_ARGS
install_lib $OPUS_DIR $OPUS_ARGS
install_lib $OPUSFILE_DIR $OPUSFILE_ARGS
install_lib_cmake $FLUIDLITE_DIR $FLUIDLITE_ARGS
install_lib_cmake $FMT_DIR $FMT_ARGS
install_lib_icu_cross
4 changes: 4 additions & 0 deletions vita/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ download_and_extract $OPUS_URL
rm -rf $OPUSFILE_DIR
download_and_extract $OPUSFILE_URL

# FluidLite
rm -rf $FLUIDLITE_DIR
download_and_extract $FLUIDLITE_URL

# fmt
rm -rf $FMT_DIR
download_and_extract $FMT_URL
Expand Down
1 change: 1 addition & 0 deletions vita/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ install_lib $LIBSNDFILE_DIR $LIBSNDFILE_ARGS
install_lib_cmake $LIBXMP_LITE_DIR $LIBXMP_LITE_ARGS
install_lib $SPEEXDSP_DIR $SPEEXDSP_ARGS
install_lib_cmake $WILDMIDI_DIR $WILDMIDI_ARGS
install_lib_cmake $FLUIDLITE_DIR $FLUIDLITE_ARGS -DENABLE_SF3=ON
install_lib $OPUS_DIR $OPUS_ARGS
install_lib $OPUSFILE_DIR $OPUSFILE_ARGS
install_lib_cmake $FMT_DIR $FMT_ARGS
Expand Down
4 changes: 4 additions & 0 deletions wii/1_download_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ download_and_extract $OPUS_URL
rm -rf $OPUSFILE_DIR
download_and_extract $OPUSFILE_URL

# FluidLite
rm -rf $FLUIDLITE_DIR
download_and_extract $FLUIDLITE_URL

# fmt
rm -rf $FMT_DIR
download_and_extract $FMT_URL
Expand Down
1 change: 1 addition & 0 deletions wii/2_build_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ install_lib $LIBSNDFILE_DIR $LIBSNDFILE_ARGS
install_lib_cmake $LIBXMP_LITE_DIR $LIBXMP_LITE_ARGS
install_lib $SPEEXDSP_DIR $SPEEXDSP_ARGS
install_lib_cmake $WILDMIDI_DIR $WILDMIDI_ARGS
install_lib_cmake $FLUIDLITE_DIR $FLUIDLITE_ARGS
install_lib $OPUS_DIR $OPUS_ARGS
install_lib $OPUSFILE_DIR $OPUSFILE_ARGS
install_lib_cmake $FMT_DIR $FMT_ARGS
Expand Down
6 changes: 4 additions & 2 deletions windows/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ xcopy /Y /I /E ..\icu-easyrpg ports\icu-easyrpg
vcpkg install --triplet x86-windows-static^
libpng[core] expat[core] pixman[core] freetype[core] harfbuzz[core]^
libvorbis[core] libsndfile[core] wildmidi[core] libxmp-lite[core]^
speexdsp[core] mpg123[core] opusfile[core] sdl2-image[core] sdl2-mixer[core,nativemidi]^
speexdsp[core] mpg123[core] opusfile[core] fluidlite[core]^
sdl2-image[core] sdl2-mixer[core,nativemidi]^
icu-easyrpg[core] fmt[core]

:: Build 64-bit libraries
vcpkg install --triplet x64-windows-static^
libpng[core] expat[core] pixman[core] freetype[core] harfbuzz[core]^
libvorbis[core] libsndfile[core] wildmidi[core] libxmp-lite[core]^
speexdsp[core] mpg123[core] opusfile[core] sdl2-image[core] sdl2-mixer[core,nativemidi]^
speexdsp[core] mpg123[core] opusfile[core] fluidlite[core]^
sdl2-image[core] sdl2-mixer[core,nativemidi]^
icu-easyrpg[core] fmt[core]

0 comments on commit 11eaeb2

Please sign in to comment.