summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2016-06-01 14:47:51 -0400
committerJason Wray <jason@mapbox.com>2016-06-01 15:54:46 -0400
commitf41546e61456ff85d07c4b21ada54ae7b2709b87 (patch)
treedc7a675e4fd5cb026f87d06df8facadc290c5ccc
parentc08a54dd8223731a578046a0e086300c075f676c (diff)
downloadqtlocation-mapboxgl-f41546e61456ff85d07c4b21ada54ae7b2709b87.tar.gz
[ios] Default to Debug BUILDTYPE, but explicitly set Release for deploys
-rw-r--r--platform/ios/DEVELOPING.md1
-rwxr-xr-xplatform/ios/scripts/deploy-packages.sh1
-rwxr-xr-xplatform/ios/scripts/package.sh2
3 files changed, 3 insertions, 1 deletions
diff --git a/platform/ios/DEVELOPING.md b/platform/ios/DEVELOPING.md
index d1be5d703e..21864e534d 100644
--- a/platform/ios/DEVELOPING.md
+++ b/platform/ios/DEVELOPING.md
@@ -36,6 +36,7 @@ If you don’t have an Apple Developer account, change the destination to a simu
You can customize the build output by passing the following arguments into the `make` invocation:
+* `BUILDTYPE=Release` will optimize for distribution. Defaults to `Debug`.
* `BUILD_DEVICE=false` builds only for the iOS Simulator.
* `FORMAT=dynamic` builds only a dynamic framework. `FORMAT=static` builds only a static framework, for compatibility with iOS 7.x.
* `SYMBOLS=NO` strips the build output of any debug symbols, yielding much smaller binaries.
diff --git a/platform/ios/scripts/deploy-packages.sh b/platform/ios/scripts/deploy-packages.sh
index 64cb472f6b..42bce89cf3 100755
--- a/platform/ios/scripts/deploy-packages.sh
+++ b/platform/ios/scripts/deploy-packages.sh
@@ -56,6 +56,7 @@ export TRAVIS_REPO_SLUG=mapbox-gl-native
export PUBLISH_VERSION=$1
export GITHUB_USER=mapbox
export GITHUB_REPO=mapbox-gl-native
+export BUILDTYPE=Release
BINARY_DIRECTORY=$2
PUBLISH_PRE_FLAG=''
diff --git a/platform/ios/scripts/package.sh b/platform/ios/scripts/package.sh
index 6bf9dd12b0..f0ca683389 100755
--- a/platform/ios/scripts/package.sh
+++ b/platform/ios/scripts/package.sh
@@ -9,7 +9,7 @@ OUTPUT=build/ios/pkg
DERIVED_DATA=build/ios
PRODUCTS=${DERIVED_DATA}/Build/Products
-BUILDTYPE=${BUILDTYPE:-Release}
+BUILDTYPE=${BUILDTYPE:-Debug}
BUILD_FOR_DEVICE=${BUILD_DEVICE:-true}
GCC_GENERATE_DEBUGGING_SYMBOLS=${SYMBOLS:-YES}