summaryrefslogtreecommitdiff
path: root/macosx
diff options
context:
space:
mode:
authorDane Springmeyer <dane@mapbox.com>2014-10-29 17:22:36 -0400
committerDane Springmeyer <dane@mapbox.com>2014-10-29 17:22:36 -0400
commit4cfb4b130fce9912d636ba832544bf73b38b7484 (patch)
tree7560e4dc547a3c3030a401699258c88e4d68ff45 /macosx
parenta8b5f56049ab949f88bbc47c23405093a8753f7a (diff)
downloadqtlocation-mapboxgl-4cfb4b130fce9912d636ba832544bf73b38b7484.tar.gz
fix xproj target
Diffstat (limited to 'macosx')
-rw-r--r--macosx/mapboxgl-app.gyp31
1 files changed, 19 insertions, 12 deletions
diff --git a/macosx/mapboxgl-app.gyp b/macosx/mapboxgl-app.gyp
index 4e19e86a2d..e5789fffd6 100644
--- a/macosx/mapboxgl-app.gyp
+++ b/macosx/mapboxgl-app.gyp
@@ -35,18 +35,25 @@
'MACOSX_DEPLOYMENT_TARGET':'10.9',
'CLANG_ENABLE_OBJC_ARC': 'YES'
},
- 'libraries': [
- '<@(glfw3_static_libs)',
- ],
- 'libraries': [
- '-L<(PRODUCT_DIR)/',
- '-lmbgl',
- '<@(png_ldflags)',
- '<@(sqlite3_ldflags)',
- '<@(glfw3_static_libs)',
- '<@(glfw3_ldflags)',
- '<@(curl_ldflags)',
- '<@(zlib_ldflags)',
+ 'variables' : {
+ 'ldflags': [
+ '-L<(PRODUCT_DIR)/',
+ '-lmbgl',
+ '<@(sqlite3_ldflags)',
+ '<@(glfw3_static_libs)',
+ '<@(glfw3_ldflags)',
+ '<@(curl_ldflags)',
+ '<@(png_ldflags)'
+ ]
+ },
+ 'conditions': [
+ ['OS == "mac"', {
+ 'xcode_settings': {
+ 'OTHER_LDFLAGS': [ '<@(ldflags)' ],
+ }
+ }, {
+ 'ldflags': [ '<@(ldflags)' ],
+ }]
],
'dependencies': [
'../mapboxgl.gyp:bundle_styles',