f21b1a61e3
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
25 lines
501 B
Bash
Executable file
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
|