mirror of https://github.com/ppy/SDL3-CS.git
Introduce SDL_mixer build
This commit is contained in:
parent
cdf3dc8f51
commit
7d094dc1c0
|
|
@ -9,3 +9,7 @@
|
||||||
path = External/SDL_ttf
|
path = External/SDL_ttf
|
||||||
url = https://github.com/libsdl-org/SDL_ttf.git
|
url = https://github.com/libsdl-org/SDL_ttf.git
|
||||||
branch = main
|
branch = main
|
||||||
|
[submodule "SDL_mixer"]
|
||||||
|
path = External/SDL_mixer
|
||||||
|
url = https://github.com/libsdl-org/SDL_mixer.git
|
||||||
|
branch = main
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 30c1301055a35ee87b8679279b6fc88e10d28fa3
|
||||||
|
|
@ -111,6 +111,23 @@ elif [[ $RUNNER_OS == 'macOS' ]]; then
|
||||||
CMAKE_PREFIX_PATH="../SDL/install_output/lib/cmake/"
|
CMAKE_PREFIX_PATH="../SDL/install_output/lib/cmake/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Build SDL_mixer
|
||||||
|
pushd SDL_mixer
|
||||||
|
git reset --hard HEAD
|
||||||
|
cmake -B build $FLAGS -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSDL_SHARED_ENABLED_BY_DEFAULT=ON -DSDL_STATIC_ENABLED_BY_DEFAULT=ON -DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH -DSDLMIXER_VENDORED=ON
|
||||||
|
cmake --build build/ --config Release
|
||||||
|
$SUDO cmake --install build/ --prefix install_output --config Release
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Move build lib into correct folders
|
||||||
|
if [[ $RUNNER_OS == 'Windows' ]]; then
|
||||||
|
cp SDL_mixer/install_output/bin/SDL3_mixer.dll ../native/$NAME/SDL3_mixer.dll
|
||||||
|
elif [[ $RUNNER_OS == 'Linux' ]]; then
|
||||||
|
cp SDL_mixer/install_output/lib/libSDL3_mixer.so ../native/$NAME/libSDL3_mixer.so
|
||||||
|
elif [[ $RUNNER_OS == 'macOS' ]]; then
|
||||||
|
cp SDL_mixer/install_output/lib/libSDL3_mixer.dylib ../native/$NAME/libSDL3_mixer.dylib
|
||||||
|
fi
|
||||||
|
|
||||||
# Build SDL_image
|
# Build SDL_image
|
||||||
pushd SDL_image
|
pushd SDL_image
|
||||||
git reset --hard HEAD
|
git reset --hard HEAD
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue