2011-12-01 17:42:14 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2011-12-03 00:06:37 +01:00
|
|
|
. environment.sh
|
2011-12-01 17:42:14 +01:00
|
|
|
|
2011-12-06 16:02:21 +01:00
|
|
|
if [ ! -d kivy ] ; then
|
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
|
|
|
|
try cd ..
|
|
|
|
fi
|
|
|
|
|
2011-12-06 16:02:21 +01:00
|
|
|
if [ "X$1" = "X-f" ] ; then
|
2011-12-01 17:42:14 +01:00
|
|
|
try cd kivy
|
|
|
|
try git clean -dxf
|
|
|
|
try git fetch
|
|
|
|
try git checkout ios-support
|
|
|
|
try cd ..
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd kivy
|
2011-12-06 12:08:47 +01:00
|
|
|
export LDSHARED="$KIVYIOSROOT/liblink"
|
|
|
|
export CFLAGS="$ARM_CFLAGS"
|
2011-12-01 17:42:14 +01:00
|
|
|
make ios
|
|
|
|
|
2011-12-05 10:09:35 +01:00
|
|
|
# FIXME this part is build/cpu dependent :/
|
2011-12-06 10:49:14 +01:00
|
|
|
bd=build/lib.macosx-*/kivy
|
|
|
|
try $KIVYIOSROOT/biglink $BUILDROOT/lib/libkivy.a $bd $bd/graphics $bd/core/window $bd/core/text $bd/core/image
|
2011-12-06 15:32:31 +01:00
|
|
|
deduplicate $BUILDROOT/lib/libkivy.a
|