Create hello-platform for macOS (#10)
Co-authored-by: Михаил Капелько <kornerr@gmail.com>
This commit is contained in:
1 parent
8913022044
commit
1aa218d0bb
186 files changed
+519
-7
No files matched your search
@@ -1,12 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
|
||||
|
||||
T=$SDIR/step
|
||||
source $SDIR/paths
|
||||
|
||||
TARGET=ogs-blue
|
||||
|
||||
STEP=0
|
||||
source $T/generateDialect $TARGET
|
||||
source $T/buildMac $TARGET
|
||||
source $T/packageMac $TARGET "OGS blue"
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
|
||||
|
||||
T=$SDIR/step
|
||||
source $SDIR/paths
|
||||
|
||||
TARGET=ogs-chkgfx
|
||||
|
||||
STEP=0
|
||||
source $T/generateDialect $TARGET
|
||||
source $T/buildMac $TARGET
|
||||
source $T/packageMac $TARGET "OGS chkgfx"
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
|
||||
|
||||
T=$SDIR/step
|
||||
source $SDIR/paths
|
||||
|
||||
TARGET=ogs-mahjong
|
||||
|
||||
STEP=0
|
||||
source $T/generateDialect $TARGET
|
||||
source $T/buildMac $TARGET
|
||||
source $T/packageMac $TARGET "OGS Mahjong"
|
||||
@@ -1,3 +0,0 @@
|
||||
RAYLIB_IOS="raylib-ios-xcframeworks/raylib.xcframework"
|
||||
RAYLIB_IOS_EGL="raylib-ios-xcframeworks/libEGL.xcframework"
|
||||
RAYLIB_IOS_GLES="raylib-ios-xcframeworks/libGLESv2.xcframework"
|
||||
@@ -1,13 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
|
||||
|
||||
T=$SDIR/step
|
||||
source $SDIR/paths
|
||||
|
||||
TARGET=ogs-blue
|
||||
|
||||
STEP=0
|
||||
source $T/checkRaylibIOS $TARGET
|
||||
source $T/generateDialect $TARGET
|
||||
source $T/prepareANGLE $TARGET
|
||||
source $T/generateIOS $TARGET
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
|
||||
|
||||
T=$SDIR/step
|
||||
source $SDIR/paths
|
||||
|
||||
TARGET=ogs-chkgfx
|
||||
|
||||
STEP=0
|
||||
source $T/generateDialect $TARGET
|
||||
source $T/prepareIOS $TARGET
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
killall cfprefsd 2>/dev/null || true
|
||||
sleep 1
|
||||
|
||||
rm -f $HOME/Library/Preferences/OGS\ Mahjong.plist \
|
||||
$HOME/Library/Preferences/org.opengamestudio.Mahjong.plist
|
||||
|
||||
echo "removed app preferences (window geometry)"
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
|
||||
|
||||
T=$SDIR/step
|
||||
source $SDIR/paths
|
||||
|
||||
STEP=0
|
||||
source $T/runMac ogs-blue "OGS blue"
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
|
||||
|
||||
T=$SDIR/step
|
||||
source $SDIR/paths
|
||||
|
||||
STEP=0
|
||||
source $T/runMac ogs-chkgfx "OGS chkgfx"
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
|
||||
|
||||
T=$SDIR/step
|
||||
source $SDIR/paths
|
||||
|
||||
STEP=0
|
||||
source $T/runMac ogs-mahjong "OGS Mahjong"
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
TARGET=$1
|
||||
STEP=$((STEP+1))
|
||||
echo -e "\n> > > > Step №$STEP. Build '$TARGET' for macOS"
|
||||
|
||||
if [[ -z "${RAYLIB_PREFIX:-}" ]]; then
|
||||
RAYLIB_PREFIX="$(HOMEBREW_NO_AUTO_UPDATE=1 brew --prefix raylib 2>/dev/null)"
|
||||
fi
|
||||
export RAYLIB_PREFIX
|
||||
echo "Raylib: $RAYLIB_PREFIX"
|
||||
|
||||
cd $SDIR/../$TARGET/ver-mac
|
||||
swift build
|
||||
@@ -1,16 +0,0 @@
|
||||
#!/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
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
TARGET=$1
|
||||
STEP=$((STEP+1))
|
||||
echo -e "\n> > > > Step №$STEP. Generate Dialect for '$TARGET'"
|
||||
|
||||
$SDIR/../../dialect/util/run-generator --file=$SDIR/../$TARGET/dialect.yml
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
TARGET=$1
|
||||
|
||||
STEP=$((STEP+1))
|
||||
echo -e "\n> > > > Step №$STEP. Generate iOS project for '$TARGET'"
|
||||
|
||||
cd $SDIR/../$TARGET/ver-ios
|
||||
xcodegen
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
TARGET=$1
|
||||
APP_NAME=$2
|
||||
|
||||
STEP=$((STEP+1))
|
||||
echo -e "\n> > > > Step №$STEP. Make '$APP_NAME' macOS package for '$TARGET'"
|
||||
|
||||
APP_MAC="$SDIR/../$TARGET/ver-mac/.build/$APP_NAME.app"
|
||||
rm -rf "$APP_MAC"
|
||||
|
||||
APP_DAT="$APP_MAC/Contents"
|
||||
mkdir -p "$APP_DAT/MacOS"
|
||||
mkdir -p "$APP_DAT/Resources"
|
||||
cp $SDIR/../$TARGET/ver-mac/.build/debug/$TARGET "$APP_DAT/MacOS/$TARGET"
|
||||
cp $SDIR/../$TARGET/ver-mac/Info.plist "$APP_DAT/Info.plist"
|
||||
# Copy resources with symlink dereferencing
|
||||
cp -R -L $SDIR/../$TARGET/ver-mac/res/* "$APP_DAT/Resources/"
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/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"
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
TARGET=$1
|
||||
APP_NAME=$2
|
||||
STEP=$((STEP+1))
|
||||
echo -e "\n> > > > Step №$STEP. Run macOS app for '$TARGET'"
|
||||
|
||||
"$SDIR/../$TARGET/ver-mac/.build/$APP_NAME.app/Contents/MacOS/$TARGET"
|
||||
Reference in new issue
Block a user