2024-05-02 15:15:23 +00:00
|
|
|
# Build script for iOS app store
|
|
|
|
|
2024-05-04 15:30:59 +00:00
|
|
|
echo "PPSSPP App Store XCode generator script"
|
|
|
|
|
2024-05-02 18:41:56 +00:00
|
|
|
# Set the development team ID as a DEVTEAM env variable.
|
|
|
|
|
2024-05-03 21:39:20 +00:00
|
|
|
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
|
|
|
|
|
2024-05-04 15:30:59 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
rm -rf $FOLDER_NAME
|
|
|
|
mkdir $FOLDER_NAME
|
|
|
|
|
|
|
|
pushd $FOLDER_NAME
|
2024-05-02 18:34:17 +00:00
|
|
|
|
2024-05-02 22:20:12 +00:00
|
|
|
BUILD_TYPE=Release
|
|
|
|
|
2024-05-03 21:39:20 +00:00
|
|
|
cmake .. -DIOS_APP_STORE=ON -DGOLD=$GOLD -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchains/ios.cmake -DDEVELOPMENT_TEAM_ID=${DEVTEAM} -DIOS_PLATFORM=OS -GXcode
|
2024-05-02 15:15:23 +00:00
|
|
|
# TODO: Get a MoltenVK somewhere.
|
|
|
|
#cp ../MoltenVK/iOS/Frameworks/libMoltenVK.dylib PPSSPP.app/Frameworks
|
|
|
|
popd
|
|
|
|
|
2024-05-04 15:30:59 +00:00
|
|
|
# Very gross hack
|
|
|
|
# Avoid XCode race condition (???) by pre-generating git-version.cpp
|
|
|
|
cmake -DSOURCE_DIR=. -DOUTPUT_DIR=$FOLDER_NAME -P git-version.cmake
|
|
|
|
|
2024-05-02 15:15:23 +00:00
|
|
|
# To open the xcode project:
|
|
|
|
# open build-ios/PPSSPP.xcodeproj
|