1
0

32 lines
768 B
Bash
Raw Normal View History

2021-02-12 19:15:39 +01:00
#!/bin/bash -e
. scripts/sdk.sh
mkdir -p deps; cd deps
2021-02-12 19:15:39 +01:00
[ ! -d irrlicht-src ] && \
2022-09-01 23:26:24 +02:00
git clone --depth 1 -b SDL2 https://github.com/MoNTE48/Irrlicht irrlicht-src
2021-02-12 19:15:39 +01:00
rm -rf irrlicht
2021-02-12 19:15:39 +01:00
cd irrlicht-src/source/Irrlicht
2021-02-12 19:15:39 +01:00
xcodebuild build \
ARCHS="$OSX_ARCHES" \
OTHER_CFLAGS="-I../../../libpng/include -I../../../libjpeg/include" \
2021-02-12 19:15:39 +01:00
-project Irrlicht.xcodeproj \
-configuration Release \
-scheme Irrlicht_OSX
BUILD_FOLDER=$(xcodebuild -project Irrlicht.xcodeproj -scheme \
Irrlicht_OSX -showBuildSettings | \
grep TARGET_BUILD_DIR | sed -n -e 's/^.*TARGET_BUILD_DIR = //p')
cd ../..
[ -d ../irrlicht ] && rm -r ../irrlicht
mkdir -p ../irrlicht
2022-11-13 17:35:33 +01:00
cp -v "${BUILD_FOLDER}/libIrrlicht.a" ../irrlicht
cp -rv include ../irrlicht/include
2021-02-12 19:15:39 +01:00
echo "Irrlicht build successful"