diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-12-02 15:01:01 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2015-12-13 17:26:53 -0800 |
commit | 62e6c04c730b7c461b418c093da63aef3e1fa9e6 (patch) | |
tree | af3f93077eeb64fecaf27968aea4815aeba68445 /platform/osx/sdk/framework-osx.gypi | |
parent | 7f04c5d149c8a679d4c136dd382bbbed2c213880 (diff) | |
download | qtlocation-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 'platform/osx/sdk/framework-osx.gypi')
-rw-r--r-- | platform/osx/sdk/framework-osx.gypi | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/platform/osx/sdk/framework-osx.gypi b/platform/osx/sdk/framework-osx.gypi index f4c7ed70b1..d38c695071 100644 --- a/platform/osx/sdk/framework-osx.gypi +++ b/platform/osx/sdk/framework-osx.gypi @@ -18,13 +18,22 @@ ], 'xcode_settings': { - 'SDKROOT': 'macosx', - 'SUPPORTED_PLATFORMS':'macosx', - 'OTHER_LDFLAGS': [ '-stdlib=libc++', '-lstdc++' ], - 'INSTALL_PATH': '@executable_path/../Frameworks', - 'INFOPLIST_FILE': '../platform/osx/sdk/Info.plist', 'CLANG_ENABLE_OBJC_ARC': 'YES', + 'CURRENT_PROJECT_VERSION': '0', + 'DEFINES_MODULE': 'YES', + 'DYLIB_INSTALL_NAME_BASE': '@rpath', + 'INFOPLIST_FILE': '../platform/osx/sdk/Info.plist', + 'LD_RUNPATH_SEARCH_PATHS': [ + '$(inherited)', + '@executable_path/Frameworks', + '@loader_path/Frameworks', + ], 'PRODUCT_BUNDLE_IDENTIFIER': 'com.mapbox.MapboxGL', + 'OTHER_LDFLAGS': [ '-stdlib=libc++', '-lstdc++' ], + 'SDKROOT': 'macosx', + 'SKIP_INSTALL': 'YES', + 'SUPPORTED_PLATFORMS':'macosx', + 'VERSIONING_SYSTEM': 'apple-generic', }, 'mac_framework_headers': [ @@ -37,6 +46,19 @@ './Mapbox.m', ], + 'configurations': { + 'Debug': { + 'xcode_settings': { + 'GCC_OPTIMIZATION_LEVEL': '0', + }, + }, + 'Release': { + 'xcode_settings': { + 'GCC_OPTIMIZATION_LEVEL': 's', + }, + }, + }, + 'direct_dependent_settings': { 'libraries': [ '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', |