diff --git a/util/paths b/util/paths index e69de29..3c59328 100644 --- a/util/paths +++ b/util/paths @@ -0,0 +1,2 @@ +RAYLIB_IOS_EGL="raylib-iOS/deps/ANGLE/libEGL.xcframework" +RAYLIB_IOS_GLES="raylib-iOS/deps/ANGLE/libGLESv2.xcframework" diff --git a/util/prepare-ogs-blue-ios b/util/prepare-ogs-blue-ios index e523f01..d243173 100755 --- a/util/prepare-ogs-blue-ios +++ b/util/prepare-ogs-blue-ios @@ -7,5 +7,6 @@ source $SDIR/paths TARGET=ogs-blue STEP=0 +source $T/checkRaylibIOS $TARGET source $T/generateDialect $TARGET source $T/prepareIOS $TARGET diff --git a/util/step/checkRaylibIOS b/util/step/checkRaylibIOS new file mode 100755 index 0000000..d127a9b --- /dev/null +++ b/util/step/checkRaylibIOS @@ -0,0 +1,15 @@ +#!/bin/bash -e + +DEP="raylib-iOS" + +STEP=$((STEP+1)) +echo -e "\n> > > > Step №$STEP. Check $DEP presence" + +MISSING=0 +[[ -e $SDIR/../../$RAYLIB_IOS_EGL ]] || MISSING=1 +[[ -e $SDIR/../../$RAYLIB_IOS_GLES ]] || MISSING=1 + +if [[ $MISSING -eq 1 ]]; then + echo "$DEP not found alongside this project" + exit 1 +fi