fix sdl compile in debug mode

This commit is contained in:
Stéphane Planquart 2011-12-04 01:05:42 +01:00
parent eaf2549e53
commit bfdd6f0d04
2 changed files with 6 additions and 2 deletions

View file

@ -1,9 +1,9 @@
#!/bin/bash
. ./environment.sh
pushd sdl/sdl1.3/Xcode-iPhoneOS/SDL
xcodebuild -project SDLiPhoneOS.xcodeproj -target libSDL
xcodebuild -project SDLiPhoneOS.xcodeproj -target libSDL -configuration Debug -sdk iphoneos5.0
popd
#the binarie is under sdl/sdl1.3/Xcode-iPhoneOS/SDL/build/Release-Universal/
cp sdl/sdl1.3/Xcode-iPhoneOS/SDL/build/Release-iPhoneOS/libSDL.a $BUILDROOT/lib
cp sdl/sdl1.3/Xcode-iPhoneOS/SDL/build/Debug-iPhoneOS/libSDL.a $BUILDROOT/lib
cp -a sdl/sdl1.3/include $BUILDROOT/include/SDL

View file

@ -20,6 +20,10 @@ export KIVYIOSROOT="$ROOT"
set -x
if [ ! -d $BUILDROOT ]; then
try mkdir $BUILDROOT
fi
if [ ! -d $BUILDROOT/include ]; then
try mkdir $BUILDROOT/include
fi
if [ ! -d $BUILDROOT/lib ]; then
try mkdir $BUILDROOT/lib
fi