summaryrefslogtreecommitdiff
path: root/gyp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-01-26 07:17:24 -0800
committerKonstantin Käfer <mail@kkaefer.com>2015-02-04 10:49:08 +0100
commit46553ff00c15414f4087ba9195fed7eba340fc13 (patch)
tree9d81e0d691eac955d45ac9e958d692bdff302c65 /gyp
parent12341ce0ee54952173b5a451074bb151b0ae40c9 (diff)
downloadqtlocation-mapboxgl-46553ff00c15414f4087ba9195fed7eba340fc13.tar.gz
rework linux gyp files
Diffstat (limited to 'gyp')
-rw-r--r--gyp/mbgl-core.gypi4
-rw-r--r--gyp/mbgl-headless.gypi22
-rw-r--r--gyp/mbgl-linux.gypi7
-rw-r--r--gyp/mbgl-storage-curl.gypi7
4 files changed, 14 insertions, 26 deletions
diff --git a/gyp/mbgl-core.gypi b/gyp/mbgl-core.gypi
index cf33b4ae1e..35a535dd5f 100644
--- a/gyp/mbgl-core.gypi
+++ b/gyp/mbgl-core.gypi
@@ -56,12 +56,12 @@
],
'link_settings': {
- 'libraries': [ '<@(libraries)' ],
'conditions': [
['OS == "mac"', {
+ 'libraries': [ '<@(libraries)' ],
'xcode_settings': { 'OTHER_LDFLAGS': [ '<@(ldflags)' ] }
}, {
- 'ldflags': [ '<@(ldflags)' ],
+ 'libraries': [ '<@(libraries)', '<@(ldflags)' ],
}]
],
},
diff --git a/gyp/mbgl-headless.gypi b/gyp/mbgl-headless.gypi
index e2d4e010ce..df91e71698 100644
--- a/gyp/mbgl-headless.gypi
+++ b/gyp/mbgl-headless.gypi
@@ -4,27 +4,15 @@
'product_name': 'mbgl-headless',
'type': 'static_library',
'standalone_static_library': 1,
- 'variables': {
- 'cflags_cc': [
- '<@(uv_cflags)',
- ],
- },
- 'include_dirs': [
- '../include',
- ],
- 'conditions': [
- ['OS == "mac"', {
- 'xcode_settings': {
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
- }
- }, {
- 'cflags_cc': [ '<@(cflags_cc)' ],
- }]
- ],
+
'sources': [
'../platform/default/headless_view.cpp',
'../platform/default/headless_display.cpp',
],
+
+ 'include_dirs': [
+ '../include',
+ ],
},
],
}
diff --git a/gyp/mbgl-linux.gypi b/gyp/mbgl-linux.gypi
index 85fc4a5127..930cd6fb17 100644
--- a/gyp/mbgl-linux.gypi
+++ b/gyp/mbgl-linux.gypi
@@ -12,8 +12,6 @@
'sources': [
'../platform/default/log_stderr.cpp',
'../platform/default/string_stdlib.cpp',
- '../platform/default/http_request_curl.cpp',
- '../platform/default/asset_request_libuv.cpp',
'../platform/default/application_root.cpp',
'../platform/default/image.cpp',
'../platform/default/image_reader.cpp',
@@ -33,7 +31,6 @@
'<@(png_ldflags)',
'<@(jpeg_ldflags)',
'<@(uv_ldflags)',
- '<@(curl_ldflags)',
'<@(nu_ldflags)',
],
'libraries': [
@@ -60,12 +57,12 @@
],
'link_settings': {
- 'libraries': [ '<@(libraries)' ],
'conditions': [
['OS == "mac"', {
+ 'libraries': [ '<@(libraries)' ],
'xcode_settings': { 'OTHER_LDFLAGS': [ '<@(ldflags)' ] }
}, {
- 'ldflags': [ '<@(ldflags)' ],
+ 'libraries': [ '<@(libraries)', '<@(ldflags)' ],
}]
],
},
diff --git a/gyp/mbgl-storage-curl.gypi b/gyp/mbgl-storage-curl.gypi
index c47f2232dd..f500d813e5 100644
--- a/gyp/mbgl-storage-curl.gypi
+++ b/gyp/mbgl-storage-curl.gypi
@@ -25,16 +25,19 @@
'cflags_cc': [
'<@(uv_cflags)',
'<@(sqlite3_cflags)',
+ '<@(curl_cflags)',
'-I<(boost_root)/include',
],
'ldflags': [
'<@(uv_ldflags)',
'<@(sqlite3_ldflags)',
+ '<@(curl_ldflags)',
'<@(zlib_ldflags)',
],
'libraries': [
'<@(uv_static_libs)',
'<@(sqlite3_static_libs)',
+ '<@(curl_static_libs)',
'<@(zlib_static_libs)',
],
},
@@ -50,12 +53,12 @@
],
'link_settings': {
- 'libraries': [ '<@(libraries)' ],
'conditions': [
['OS == "mac"', {
+ 'libraries': [ '<@(libraries)' ],
'xcode_settings': { 'OTHER_LDFLAGS': [ '<@(ldflags)' ] }
}, {
- 'ldflags': [ '<@(ldflags)' ],
+ 'libraries': [ '<@(libraries)', '<@(ldflags)' ],
}]
],
},