mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-01 23:35:59 +00:00
37 lines
607 B
Bash
Executable File
37 lines
607 B
Bash
Executable File
#!/bin/bash
|
|
|
|
OPUS_DIR="opus"
|
|
IOSSDK_VER=8.1
|
|
ARCHS="armv7 armv7s aarch64 i386 x86_64"
|
|
|
|
remove_arch() {
|
|
OLD_ARCHS="$ARCHS"
|
|
NEW_ARCHS=""
|
|
REMOVAL="$1"
|
|
|
|
for ARCH in $OLD_ARCHS; do
|
|
if [ "$ARCH" != "$REMOVAL" ] ; then
|
|
NEW_ARCHS="$NEW_ARCHS $ARCH"
|
|
fi
|
|
done
|
|
|
|
ARCHS=$NEW_ARCHS
|
|
}
|
|
|
|
# armv7s is only supported in iOS 6.0+
|
|
CHECK=`echo $IOSSDK_VER '>= 6.0' | bc -l`
|
|
if [ "$CHECK" = "0" ] ; then
|
|
remove_arch "armv7s"
|
|
fi
|
|
|
|
# armv6 is not supported any more since iOS 6.0
|
|
CHECK=`echo $IOSSDK_VER '< 6.0' | bc -l`
|
|
if [ "$CHECK" = "0" ] ; then
|
|
remove_arch "armv6"
|
|
fi
|
|
|
|
echo 'Architectures to build:' $ARCHS
|
|
|
|
|
|
|