summaryrefslogtreecommitdiff
path: root/macosx
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-01-23 16:31:48 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-02-04 10:49:07 +0100
commit272fa8935ed1e97a7c8a5e6cbd44bb47ac7dc00b (patch)
tree50b5747dd57680acadb4ab45ad52e075553ec11e /macosx
parentfbe30e04c48353a9fdd14151728e27ffe168c9ca (diff)
downloadqtlocation-mapboxgl-272fa8935ed1e97a7c8a5e6cbd44bb47ac7dc00b.tar.gz
make storage lib separate so we can build without storage libs
Diffstat (limited to 'macosx')
-rw-r--r--macosx/mapboxgl-app.gyp76
1 files changed, 34 insertions, 42 deletions
diff --git a/macosx/mapboxgl-app.gyp b/macosx/mapboxgl-app.gyp
index aab12a82e9..6bb2537ceb 100644
--- a/macosx/mapboxgl-app.gyp
+++ b/macosx/mapboxgl-app.gyp
@@ -3,10 +3,22 @@
'../gyp/common.gypi',
],
'targets': [
- {
- 'target_name': 'osxapp',
+ { 'target_name': 'osxapp',
'product_name': 'Mapbox GL',
'type': 'executable',
+ 'product_extension': 'app',
+ 'mac_bundle': 1,
+ 'mac_bundle_resources': [
+ 'Icon.icns',
+ ],
+
+ 'dependencies': [
+ '../mbgl.gyp:bundle_styles',
+ '../mbgl.gyp:<(core_library)',
+ '../mbgl.gyp:<(platform_library)',
+ '../mbgl.gyp:<(storage_library)',
+ ],
+
'sources': [
'./main.mm',
'../platform/darwin/settings_nsuserdefaults.hpp',
@@ -15,54 +27,34 @@
'../platform/default/glfw_view.hpp',
'../platform/default/glfw_view.cpp',
],
- 'product_extension': 'app',
- 'mac_bundle': 1,
- 'mac_bundle_resources': [
- 'Icon.icns',
+
+ 'variables' : {
+ 'cxxflags': [
+ '<@(glfw3_cflags)',
+ ],
+ 'ldflags': [
+ '-framework SystemConfiguration', # For NSUserDefaults and Reachability
+ '<@(glfw3_ldflags)',
+ ],
+ 'libraries': [
+ '<@(glfw3_static_libs)',
+ ],
+ },
+
+ 'libraries': [
+ '<@(libraries)',
],
+
'xcode_settings': {
'SDKROOT': 'macosx',
'SUPPORTED_PLATFORMS':'macosx',
- 'OTHER_CPLUSPLUSFLAGS': [
- '<@(glfw3_cflags)'
- ],
- 'OTHER_LDFLAGS': [
- '<@(glfw3_ldflags)',
- '-framework SystemConfiguration',
- ],
+ 'OTHER_CPLUSPLUSFLAGS': [ '<@(cxxflags)' ],
+ 'OTHER_LDFLAGS': [ '<@(ldflags)' ],
'SDKROOT': 'macosx',
'INFOPLIST_FILE': 'Info.plist',
- 'MACOSX_DEPLOYMENT_TARGET':'10.9',
+ 'MACOSX_DEPLOYMENT_TARGET': '10.9',
'CLANG_ENABLE_OBJC_ARC': 'YES'
},
- 'variables' : {
- 'ldflags': [
- '<@(uv_ldflags)',
- '<@(uv_static_libs)',
- '<@(sqlite3_static_libs)',
- '<@(sqlite3_ldflags)',
- '<@(glfw3_static_libs)',
- '<@(glfw3_ldflags)',
- '<@(zlib_ldflags)',
- ]
- },
- 'conditions': [
- ['OS == "mac"', {
- 'xcode_settings': {
- 'OTHER_LDFLAGS': [ '<@(ldflags)' ],
- }
- }, {
- 'ldflags': [ '<@(ldflags)' ],
- }]
- ],
- 'include_dirs': [
- '../src'
- ],
- 'dependencies': [
- '../mapboxgl.gyp:bundle_styles',
- '../mapboxgl.gyp:mbgl-core',
- '../mapboxgl.gyp:mbgl-osx',
- ]
}
]
}