sfan5 fe5e9c2cf1 iOS: Update Irrlicht to the very latest version and fix error with Irrlicht patch (#115)
* Fix error with Irrlicht patch

* iOS: Update Irrlicht to the very latest version
2018-04-29 20:11:28 +02:00

32 lines
699 B
Bash
Executable File

#!/bin/bash -e
. sdk.sh
[ ! -d irrlicht-src ] && \
svn co -r 5604 svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es irrlicht-src
cd irrlicht-src/
if [ ! -f .patched ]; then
for p in touchcount unscaled dblfreefix viewcontroller headerpath roundingerror; do
patch -p0 <../../patches/irrlicht-$p.patch
done
touch .patched
fi
cd source/Irrlicht
xcodebuild build \
-configuration Release \
-project Irrlicht.xcodeproj \
-scheme Irrlicht_iOS \
-destination generic/platform=iOS
cd ../..
[ -d ../irrlicht ] && rm -r ../irrlicht
mkdir -p ../irrlicht
cp lib/iOS/libIrrlicht.a ../irrlicht/
cp -r include ../irrlicht/include
cp -r media ../irrlicht/media
echo "Irrlicht build successful"