summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-12-02 15:01:01 -0800
committerMinh Nguyễn <mxn@1ec5.org>2015-12-13 17:26:53 -0800
commit62e6c04c730b7c461b418c093da63aef3e1fa9e6 (patch)
treeaf3f93077eeb64fecaf27968aea4815aeba68445 /scripts
parent7f04c5d149c8a679d4c136dd382bbbed2c213880 (diff)
downloadqtlocation-mapboxgl-62e6c04c730b7c461b418c093da63aef3e1fa9e6.tar.gz
[osx] Align build settings with Xcode framework project template
In particular, -Os yields significant size improvements in Release.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/osx/package.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/osx/package.sh b/scripts/osx/package.sh
index d017ccb3d3..f39d730674 100755
--- a/scripts/osx/package.sh
+++ b/scripts/osx/package.sh
@@ -27,12 +27,14 @@ export BUILDTYPE=${BUILDTYPE:-Release}
export HOST=osx
make Xcode/osx
-step "Building OS X framework (build ${TRAVIS_JOB_NUMBER:-${BITRISE_BUILD_NUMBER:-0}})..."
+VERSION=${TRAVIS_JOB_NUMBER:-${BITRISE_BUILD_NUMBER:-0}}
+
+step "Building OS X framework (build ${VERSION})..."
xcodebuild -sdk macosx${OSX_SDK_VERSION} \
ARCHS="x86_64" \
ONLY_ACTIVE_ARCH=NO \
GCC_GENERATE_DEBUGGING_SYMBOLS=${GCC_GENERATE_DEBUGGING_SYMBOLS} \
- CURRENT_PROJECT_VERSION=${TRAVIS_JOB_NUMBER:-${BITRISE_BUILD_NUMBER:-0}} \
+ CURRENT_PROJECT_VERSION=${VERSION} \
-project ./build/osx-x86_64/gyp/osx.xcodeproj \
-configuration ${BUILDTYPE} \
-target osxsdk \