kivy-ios/build_kivy.sh
Mathieu Virbel b40c385f98 wip
2011-12-06 10:49:14 +01:00

30 lines
609 B
Bash
Executable file
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
. ./environment.sh
set -x
if [ ! -d kivy ]; then
try git clone https://github.com/tito/kivy
try cd kivy
try git checkout ios-support
try cd ..
fi
if [ "X$1" == "X-f" ]; then
try cd kivy
try git clean -dxf
try git fetch
try git checkout ios-support
try cd ..
fi
export LDSHARED="$KIVYIOSROOT/liblink"
cd kivy
export CFLAGS="$CFLAGS -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8 -g -O0"
make ios
# FIXME this part is build/cpu dependent :/
bd=build/lib.macosx-*/kivy
try $KIVYIOSROOT/biglink $BUILDROOT/lib/libkivy.a $bd $bd/graphics $bd/core/window $bd/core/text $bd/core/image