diff --git a/build_sdl.sh b/build_sdl.sh index 8ebe2c7..bcfd7b1 100755 --- a/build_sdl.sh +++ b/build_sdl.sh @@ -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 diff --git a/environment.sh b/environment.sh index b7bf049..bd6d324 100755 --- a/environment.sh +++ b/environment.sh @@ -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