2011-12-01 17:42:14 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2012-03-08 20:45:55 +01:00
|
|
|
. $(dirname $0)/environment.sh
|
2011-12-01 17:42:14 +01:00
|
|
|
|
2012-03-08 20:45:55 +01:00
|
|
|
if [ ! -d $TMPROOT/kivy ] ; then
|
|
|
|
try pushd $TMPROOT
|
2011-12-16 11:08:56 +01:00
|
|
|
try git clone https://github.com/kivy/kivy
|
2011-12-01 17:42:14 +01:00
|
|
|
try cd kivy
|
|
|
|
try git checkout ios-support
|
2012-03-08 20:45:55 +01:00
|
|
|
try popd
|
2011-12-01 17:42:14 +01:00
|
|
|
fi
|
|
|
|
|
2011-12-06 16:02:21 +01:00
|
|
|
if [ "X$1" = "X-f" ] ; then
|
2012-03-08 20:45:55 +01:00
|
|
|
try pushd $TMPROOT/kivy
|
2011-12-01 17:42:14 +01:00
|
|
|
try git clean -dxf
|
|
|
|
try git fetch
|
|
|
|
try git checkout ios-support
|
2012-03-08 20:45:55 +01:00
|
|
|
try popd
|
2011-12-01 17:42:14 +01:00
|
|
|
fi
|
|
|
|
|
2012-03-08 20:45:55 +01:00
|
|
|
pushd $TMPROOT/kivy
|
|
|
|
export LDSHARED="$KIVYIOSROOT/tools/liblink"
|
2011-12-06 12:08:47 +01:00
|
|
|
export CFLAGS="$ARM_CFLAGS"
|
2012-03-09 02:46:16 +01:00
|
|
|
try make ios
|
2012-03-08 20:45:55 +01:00
|
|
|
popd
|
2011-12-01 17:42:14 +01:00
|
|
|
|
2011-12-05 10:09:35 +01:00
|
|
|
# FIXME this part is build/cpu dependent :/
|
2012-03-08 20:45:55 +01:00
|
|
|
bd=$TMPROOT/kivy/build/lib.macosx-*/kivy
|
|
|
|
try $KIVYIOSROOT/tools/biglink $BUILDROOT/lib/libkivy.a $bd $bd/graphics $bd/core/window $bd/core/text $bd/core/image $bd/core/audio
|
2011-12-06 15:32:31 +01:00
|
|
|
deduplicate $BUILDROOT/lib/libkivy.a
|