kivy-ios/tools/build-sdl.sh

28 lines
1.1 KiB
Bash
Raw Normal View History

#!/bin/bash
. $(dirname $0)/environment.sh
2012-05-25 01:23:21 +02:00
pushd $KIVYIOSROOT/src/SDL/Xcode-iOS/SDL
xcodebuild -project SDL.xcodeproj -target libSDL -configuration Release -sdk iphoneos$SDKVER
popd
cp $KIVYIOSROOT/src/SDL/Xcode-iOS/SDL/build/Release-iphoneos/libSDL2.a $BUILDROOT/lib
cp -a $KIVYIOSROOT/src/SDL/include $BUILDROOT/include/SDL
cat>$BUILDROOT/pkgconfig/sdl.pc<<EOF
# sdl pkg-config source file
prefix=$BUILDROOT
exec_prefix=\${prefix}
libdir=\${exec_prefix}/lib
includedir=\${prefix}/include
Name: sdl
Description: Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
Version: 1.2.15
Requires:
Conflicts:
Libs: -L\${libdir} -lSDLmain -lSDL -Wl,-framework,Cocoa
Libs.private: \${libdir}/libSDLmain.a \${libdir}/libSDL.a -Wl,-framework,OpenGL -Wl,-framework,Cocoa -Wl,-framework,ApplicationServices -Wl,-framework,Carbon -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,IOKit
Cflags: -I\${includedir}/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE
EOF