add sdl mixer builder

This commit is contained in:
Mathieu Virbel 2012-02-24 17:24:56 +01:00
parent 9996388184
commit df2c4ee1cd
2 changed files with 26 additions and 1 deletions

3
.gitignore vendored
View file

@ -4,5 +4,6 @@ Python-*
freetype-*
SDL_*
build/*
sdl/sdl1.3/Xcode-iPhoneOS/SDL/build/
SDL/Xcode-iPhoneOS/SDL/build/
kivy/*
libtremor/*

24
build_sdlmixer.sh Executable file
View file

@ -0,0 +1,24 @@
#!/bin/bash
. environment.sh
if [ ! -d SDL_mixer ]; then
hg clone http://hg.libsdl.org/SDL_mixer/
fi
if [ ! -d libtremor ]; then
mkdir libtremor
cd libtremor
svn co http://svn.xiph.org/trunk/Tremor tremor
cd ..
fi
if [ -f SDL_mixer/libSDL_mixer-arm7.a ]; then
exit 0;
fi
pushd SDL_mixer/Xcode-iOS
xcodebuild -project SDL_mixer.xcodeproj -configuration Debug
popd
cp SDL_mixer/Xcode-iOS/build/Debug-iphoneos/libSDL_mixer.a $BUILDROOT/lib
cp -a SDL_mixer/SDL_mixer.h $BUILDROOT/include