CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hrydgard

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: hrydgard/ppsspp
Path: blob/master/b-appstore.sh
Views: 1400
1
# Build script for iOS app store
2
3
echo "PPSSPP App Store XCode generator script"
4
5
# Set the development team ID as a DEVTEAM env variable.
6
7
if [[ -z "${DEVTEAM}" ]]; then
8
echo "DEVTEAM not in environment, exiting"
9
exit 1
10
fi
11
12
if [[ -z "${GOLD}" ]]; then
13
echo "GOLD is not set (should be YES or NO), exiting"
14
exit 1
15
fi
16
17
FOLDER_NAME="build-ios"
18
19
if [[ "$GOLD" = "YES" ]]; then
20
echo "GOLD is set to YES, setting folder to build-ios-gold"
21
FOLDER_NAME="build-ios-gold"
22
else
23
echo "Non-GOLD build."
24
fi
25
26
echo "Clearing and re-creating output directory"
27
rm -rf $FOLDER_NAME
28
mkdir $FOLDER_NAME
29
30
pushd $FOLDER_NAME
31
32
BUILD_TYPE=Release
33
34
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
35
# TODO: Get a MoltenVK somewhere.
36
#cp ../MoltenVK/iOS/Frameworks/libMoltenVK.dylib PPSSPP.app/Frameworks
37
popd
38
39
# Very gross hack
40
# Avoid XCode race condition (???) by pre-generating git-version.cpp
41
cmake -DSOURCE_DIR=. -DOUTPUT_DIR=$FOLDER_NAME -P git-version.cmake
42
43
echo
44
echo "*** Done. Now run the following command to open in XCode, then run or archive:"
45
echo " open $FOLDER_NAME/PPSSPP.xcodeproj"
46
47
# To open the xcode project:
48
# open build-ios/PPSSPP.xcodeproj
49