kivy-ios/tools/build-kivy.sh

35 lines
804 B
Bash
Raw Normal View History

#!/bin/bash
. $(dirname $0)/environment.sh
if [ ! -d $TMPROOT/kivy ] ; then
try pushd $TMPROOT
2011-12-16 11:08:56 +01:00
try git clone https://github.com/kivy/kivy
try cd kivy
try git checkout ios-support
try popd
fi
2011-12-06 16:02:21 +01:00
if [ "X$1" = "X-f" ] ; then
try pushd $TMPROOT/kivy
try git clean -dxf
try git fetch
try git checkout ios-support
try popd
fi
pushd $TMPROOT/kivy
OLD_CFLAGS="$CFLAGS"
OLD_LDSHARED="$LDSHARED"
export LDSHARED="$KIVYIOSROOT/tools/liblink"
export CFLAGS="$ARM_CFLAGS"
2012-03-09 02:46:16 +01:00
try make ios
export LDSHARED="$OLD_LDSHARED"
export CFLAGS="$OLD_CFLAGS"
popd
2011-12-05 10:09:35 +01:00
# FIXME this part is build/cpu dependent :/
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
deduplicate $BUILDROOT/lib/libkivy.a