BlockColor-Engine/build/iOS/deps/irrlicht.sh

31 lines
677 B
Bash
Raw Permalink Normal View History

2016-11-05 23:14:22 +01:00
#!/bin/bash -e
2017-04-19 21:47:56 +02:00
. sdk.sh
2016-11-05 23:14:22 +01:00
[ ! -d irrlicht-src ] && \
2019-04-02 02:15:53 +02:00
svn co -r 5780 svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es irrlicht-src
2016-11-05 23:14:22 +01:00
cd irrlicht-src/
if [ ! -f .patched ]; then
2019-05-10 22:33:16 +02:00
for p in touchcount unscaled dblfreefix viewcontroller proj roundingerror hideindicator; do
2016-11-05 23:14:22 +01:00
patch -p0 <../../patches/irrlicht-$p.patch
done
touch .patched
fi
cd source/Irrlicht
xcodebuild build \
-configuration Release \
2016-11-05 23:14:22 +01:00
-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
echo "Irrlicht build successful"