Support iOS for ogs-blue (#7)

This commit was merged in pull request #7.
This commit is contained in:
kornerr committed 2026-10-30 15:17:24 +01:00
1 parent 37c4e6f442
commit 2b556a4a58
58 files changed
+710 -300

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
RAYLIB_IOS="raylib-ios-xcframeworks/raylib.xcframework"
RAYLIB_IOS_EGL="raylib-ios-xcframeworks/libEGL.xcframework"
RAYLIB_IOS_GLES="raylib-ios-xcframeworks/libGLESv2.xcframework"
+3 -1
View File
@@ -7,5 +7,7 @@ source $SDIR/paths
TARGET=ogs-blue
STEP=0
source $T/checkRaylibIOS $TARGET
source $T/generateDialect $TARGET
source $T/prepareIOS $TARGET
source $T/prepareANGLE $TARGET
source $T/generateIOS $TARGET
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash -e
DEP="raylib-ios-xcframeworks"
STEP=$((STEP+1))
echo -e "\n> > > > Step №$STEP. Check $DEP presence"
MISSING=0
[[ -e $SDIR/../../$RAYLIB_IOS ]] || MISSING=1
[[ -e $SDIR/../../$RAYLIB_IOS_EGL ]] || MISSING=1
[[ -e $SDIR/../../$RAYLIB_IOS_GLES ]] || MISSING=1
if [[ $MISSING -eq 1 ]]; then
echo "ERROR $DEP not found alongside this project"
exit 1
fi
File renamed without changes.
+22
View File
@@ -0,0 +1,22 @@
#!/bin/bash -e
TARGET=$1
STEP=$((STEP+1))
echo -e "\n> > > > Step №$STEP. Prepare ANGLE includes for '$TARGET'"
BUILD=$SDIR/../$TARGET/ver-ios/.build
INC=$BUILD/include
LIB=$BUILD/lib
mkdir -p $INC $LIB
# Create EGL and GLES symlinks because their internal includes refer to each other
# without knowing of XCFramework bounderies
ln -sfn "$SDIR/../../$RAYLIB_IOS_EGL/ios-arm64_x86_64-simulator/libEGL.framework/Headers" "$INC/libEGL"
ln -sfn "$SDIR/../../$RAYLIB_IOS_GLES/ios-arm64_x86_64-simulator/libGLESv2.framework/Headers" "$INC/libGLESv2"
# Symlink libraries for convenience, too
ln -sfn "$SDIR/../../$RAYLIB_IOS" "$LIB"
ln -sfn "$SDIR/../../$RAYLIB_IOS_EGL" "$LIB"
ln -sfn "$SDIR/../../$RAYLIB_IOS_GLES" "$LIB"