kivy-ios/environment.sh
Mathieu Virbel f21b1a61e3 add environment.sh to create initial build directory, and set common env var
KIVYIOSROOT represent the root of this project. It can be used in external project to refer of this project (like using build/lib directory, or build/include)
+ change current build_* to copy include and lib in a common build/ directory
2011-12-01 18:16:46 +01:00

25 lines
501 B
Bash
Executable file

#!/bin/bash
try () {
"$@" || exit -1
}
# iOS SDK Environmnent
SDKVER=5.0
DEVROOT=/Developer/Platforms/iPhoneOS.platform/Developer
SDKROOT=$DEVROOT/SDKs/iPhoneOS$SDKVER.sdk
# where the build will be located
ROOT="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BUILDROOT="$ROOT/build"
# for external project
export KIVYIOSROOT="$ROOT"
# create build directory if not found
set -x
if [ ! -d $BUILDROOT ]; then
try mkdir $BUILDROOT
try mkdir $BUILDROOT/include
try mkdir $BUILDROOT/lib
fi