mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Add a hack to fix the first-try builds in XCode
This commit is contained in:
parent
fe91f246b2
commit
6295631aca
@ -1,5 +1,7 @@
|
||||
# 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
|
||||
@ -12,9 +14,19 @@ if [[ -z "${GOLD}" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf build-ios
|
||||
mkdir build-ios
|
||||
pushd build-ios
|
||||
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
|
||||
|
||||
BUILD_TYPE=Release
|
||||
|
||||
@ -26,5 +38,9 @@ cmake .. -DIOS_APP_STORE=ON -DGOLD=$GOLD -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_
|
||||
#cp ../MoltenVK/iOS/Frameworks/libMoltenVK.dylib PPSSPP.app/Frameworks
|
||||
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
|
||||
|
||||
# To open the xcode project:
|
||||
# open build-ios/PPSSPP.xcodeproj
|
Loading…
Reference in New Issue
Block a user