forked from osmandapp/OsmAnd-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prebuild-core.sh
executable file
·28 lines (24 loc) · 1.31 KB
/
prebuild-core.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
if [ -z "$BASH_VERSION" ]; then
echo "Invalid shell, re-running using bash..."
exec bash "$0" "$@"
exit $?
fi
SRCLOC="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT="$SRCLOC/.."
# Workaround for http://public.kitware.com/Bug/view.php?id=14297
(
cd "$ROOT/baked/fat-ios-clang.xcode" && \
# xcodebuild -project OsmAnd_projects.xcodeproj -target ZERO_CHECK -sdk iphoneos -configuration Debug && \
# xcodebuild -project OsmAnd_projects.xcodeproj -target ZERO_CHECK -sdk iphoneos -configuration Release && \
xcodebuild -project OsmAnd_projects.xcodeproj -target ZERO_CHECK -sdk iphonesimulator -configuration Debug
# xcodebuild -project OsmAnd_projects.xcodeproj -target ZERO_CHECK -sdk iphonesimulator -configuration Release \
)
# Build core for all archs
(
cd "$ROOT/baked/fat-ios-clang.xcode" && \
# xcodebuild -project OsmAnd_projects.xcodeproj -target OsmAndCore_static_standalone -sdk iphoneos -configuration Debug && \
# xcodebuild -project OsmAnd_projects.xcodeproj -target OsmAndCore_static_standalone -sdk iphoneos -configuration Release && \
xcodebuild -project OsmAnd_projects.xcodeproj -target OsmAndCore_static_standalone -sdk iphonesimulator -configuration Debug
# xcodebuild -project OsmAnd_projects.xcodeproj -target OsmAndCore_static_standalone -sdk iphonesimulator -configuration Release \
)