From bfdd6f0d04b7536d0cd241e897ad9784c90f92fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Planquart?= Date: Sun, 4 Dec 2011 01:05:42 +0100 Subject: [PATCH] fix sdl compile in debug mode --- build_sdl.sh | 4 ++-- environment.sh | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) 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