Skip to content

Commit

Permalink
ANDROID: Add Sonivox package
Browse files Browse the repository at this point in the history
Sonivox is not available anymore on Android and must be provided
separately
  • Loading branch information
lephilousophe committed Aug 13, 2023
1 parent 47290c8 commit c9030c7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions check-versions/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,12 @@
'repository': 'https://github.com/libsdl-org/SDL_net.git',
'branch': 'SDL-1.2',
},
('./toolchains/common/packages/sonivox/build.sh', 'SONIVOX'): {
'check': 'git tag',
'repository': 'https://github.com/pedrolcl/sonivox.git',
'prefix': 'v',
'exclude pattern': r'.*\.(beta|rc)\d+$'
},

('./toolchains/devkit3ds/packages/Project_CTR/build.sh', 'PROJECT_CTR'): {
'check': 'git tag',
Expand Down
20 changes: 20 additions & 0 deletions toolchains/common/packages/sonivox/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#! /bin/sh

SONIVOX_VERSION=3.6.12

PACKAGE_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
HELPERS_DIR=$PACKAGE_DIR/../..
. $HELPERS_DIR/functions.sh

do_make_bdir

do_http_fetch sonivox \
"https://github.com/pedrolcl/sonivox/archive/refs/tags/v${SONIVOX_VERSION}.tar.gz" 'tar xzf'

# -DCMAKE_SYSTEM_NAME=Windows for Windows

do_cmake -DBUILD_SONIVOX_SHARED=OFF -DBUILD_TESTING=OFF "$@"
do_make
do_make install

do_clean_bdir
2 changes: 2 additions & 0 deletions toolchains/m4/android/packages_list.m4
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ COPY --from=android-helpers /lib-helpers/packages/libsdl2-net lib-helpers/packag
helpers_package(libsdl2-net)

helpers_package(fluidlite, -DBIN_INSTALL_DIR=bin/\$TARGET/\$API -DLIB_INSTALL_DIR=lib/\$TARGET/\$API)

helpers_package(sonivox)

0 comments on commit c9030c7

Please sign in to comment.