Files
ppsspp/b-appstore.sh
T
Henrik RydgårdandClaude Opus 5.5 9f1278b5d6 iOS: Link MoltenVK statically in sideload builds too, raise target to 15.0
Sideload builds used to dlopen a bundled libMoltenVK.dylib, which was
only worth having while they could still fall back to OpenGL. Now both
variants link the static MoltenVK from ios/MoltenVK and call Vulkan
directly. PPSSPP_VK_STATIC replaces the IOS_APP_STORE checks in the
Vulkan loader (the iOS libretro core still loads at runtime).

The static MoltenVK needs iOS 15.0, so that's now the deployment target
for all iOS builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 16:13:28 +02:00

62 lines
1.5 KiB
Bash
Executable File

# Build script for iOS app store
echo "PPSSPP App Store XCode generator script"
# Set the development team ID as a DEVTEAM env variable.
if [[ -z "${DEVTEAM}" ]]; then
echo "DEVTEAM not in environment, exiting"
exit 1
fi
if [[ -z "${GOLD}" ]]; then
echo "GOLD is not set (should be YES or NO), exiting"
exit 1
fi
if [[ -z "${USE_IAP}" ]]; then
echo "USE_IAP is not set (should be YES or NO), exiting"
exit 1
fi
FOLDER_NAME="build-ios"
if [[ "$GOLD" = "YES" ]]; then
echo "GOLD is set to YES, setting folder to build-ios-gold"
FOLDER_NAME="build-ios-gold"
else
echo "Non-GOLD build."
fi
if [[ "$USE_IAP" = "YES" ]]; then
if [[ "$GOLD" = "YES" ]]; then
echo "IAP and GOLD are both set to YES, which is invalid"
exit 1
fi
echo "IAP on."
else
echo "IAP off."
fi
echo "Clearing and re-creating output directory"
rm -rf $FOLDER_NAME
mkdir $FOLDER_NAME
pushd $FOLDER_NAME
BUILD_TYPE=Release
cmake .. -DIOS_APP_STORE=ON -DGOLD=$GOLD -DUSE_IAP=$USE_IAP -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchains/ios.cmake -DDEVELOPMENT_TEAM_ID=${DEVTEAM} -DIOS_PLATFORM=OS -GXcode
popd
# Very gross hack
# Avoid XCode race condition (???) by pre-generating git-version.cpp
cmake -DSOURCE_DIR=. -DOUTPUT_DIR=$FOLDER_NAME -P git-version.cmake
echo
echo "*** Done. Now run the following command to open in XCode, then run or archive:"
echo " open $FOLDER_NAME/PPSSPP.xcodeproj"
# To open the xcode project:
# open build-ios/PPSSPP.xcodeproj