summaryrefslogtreecommitdiff
path: root/gyp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-10-31 17:06:32 -0400
committerKonstantin Käfer <mail@kkaefer.com>2014-10-31 17:06:32 -0400
commit16bd75c6ccc0340295d65e04728239a7eea693dd (patch)
treeba633465bfcef203be726fc023a48d3f9239a0ba /gyp
parentbc7effdd8646d2492cf276d9a87828e784eb8945 (diff)
parentd0f71242da3e5a84e3c0ba54d63a889da7a11f2e (diff)
downloadqtlocation-mapboxgl-16bd75c6ccc0340295d65e04728239a7eea693dd.tar.gz
Merge pull request #527 from mapbox/platform-image
Use platform-specific routines for decoding/encoding images
Diffstat (limited to 'gyp')
-rw-r--r--gyp/install.gypi1
-rw-r--r--gyp/mbgl-core.gypi1
-rw-r--r--gyp/mbgl-ios.gypi9
-rw-r--r--gyp/mbgl-linux.gypi9
-rw-r--r--gyp/mbgl-osx.gypi9
5 files changed, 24 insertions, 5 deletions
diff --git a/gyp/install.gypi b/gyp/install.gypi
index 562f443d16..df65d0457e 100644
--- a/gyp/install.gypi
+++ b/gyp/install.gypi
@@ -22,7 +22,6 @@
'conditions': [
['OS == "linux"', {
'other_ldflags': [
- '-L<(boost_root)/lib',
'<@(glfw3_static_libs)',
'<@(glfw3_ldflags)',
]
diff --git a/gyp/mbgl-core.gypi b/gyp/mbgl-core.gypi
index e49697388c..46ff762742 100644
--- a/gyp/mbgl-core.gypi
+++ b/gyp/mbgl-core.gypi
@@ -10,7 +10,6 @@
],
'variables': {
'cflags_cc': [
- '<@(png_cflags)',
'<@(uv_cflags)',
'<@(sqlite3_cflags)',
'<@(zlib_cflags)',
diff --git a/gyp/mbgl-ios.gypi b/gyp/mbgl-ios.gypi
index 755b3cc483..5566ca3a32 100644
--- a/gyp/mbgl-ios.gypi
+++ b/gyp/mbgl-ios.gypi
@@ -34,6 +34,7 @@
'../platform/darwin/log_nslog.mm',
'../platform/darwin/string_nsstring.mm',
'../platform/darwin/http_request_baton_cocoa.mm',
+ '../platform/darwin/image.mm',
],
'include_dirs': [
'../include',
@@ -44,7 +45,13 @@
'direct_dependent_settings': {
'include_dirs': [
'../include',
- ]
+ ],
+ 'xcode_settings': {
+ 'OTHER_LDFLAGS': [
+ '-framework ImageIO',
+ '-framework MobileCoreServices',
+ ],
+ },
},
},
],
diff --git a/gyp/mbgl-linux.gypi b/gyp/mbgl-linux.gypi
index 337e98039e..ca3e2afc54 100644
--- a/gyp/mbgl-linux.gypi
+++ b/gyp/mbgl-linux.gypi
@@ -7,6 +7,7 @@
'hard_dependency': 1,
'variables': {
'cflags_cc': [
+ '<@(png_cflags)',
'<@(uv_cflags)',
'<@(curl_cflags)',
],
@@ -14,6 +15,7 @@
'<@(uv_cflags)',
],
'ldflags': [
+ '<@(png_ldflags)',
'<@(uv_ldflags)',
'<@(curl_ldflags)',
],
@@ -23,10 +25,16 @@
'../platform/default/log_stderr.cpp',
'../platform/default/string_stdlib.cpp',
'../platform/default/http_request_baton_curl.cpp',
+ '../platform/default/image.cpp',
],
'include_dirs': [
'../include',
],
+ 'link_settings': {
+ 'libraries': [
+ '<@(png_static_libs)',
+ ],
+ },
'conditions': [
['OS == "mac"', {
'xcode_settings': {
@@ -34,7 +42,6 @@
'OTHER_CFLAGS': [ '<@(cflags)' ],
}
}, {
- 'ldflags': [ '<@(ldflags)' ],
'cflags_cc': [ '<@(cflags_cc)' ],
'cflags': [ '<@(cflags)' ],
}]
diff --git a/gyp/mbgl-osx.gypi b/gyp/mbgl-osx.gypi
index bee0325498..76c22f5ad6 100644
--- a/gyp/mbgl-osx.gypi
+++ b/gyp/mbgl-osx.gypi
@@ -10,6 +10,7 @@
'../platform/darwin/log_nslog.mm',
'../platform/darwin/string_nsstring.mm',
'../platform/darwin/http_request_baton_cocoa.mm',
+ '../platform/darwin/image.mm',
],
'include_dirs': [
'../include',
@@ -20,7 +21,13 @@
'direct_dependent_settings': {
'include_dirs': [
'../include',
- ]
+ ],
+ 'xcode_settings': {
+ 'OTHER_LDFLAGS': [
+ '-framework ImageIO',
+ '-framework CoreServices',
+ ],
+ },
},
},
],