summaryrefslogtreecommitdiff
path: root/gyp/http-curl.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'gyp/http-curl.gypi')
-rw-r--r--gyp/http-curl.gypi43
1 files changed, 30 insertions, 13 deletions
diff --git a/gyp/http-curl.gypi b/gyp/http-curl.gypi
index bfb2054d55..c97ad370b5 100644
--- a/gyp/http-curl.gypi
+++ b/gyp/http-curl.gypi
@@ -14,6 +14,25 @@
'../include',
],
+ 'variables': {
+ 'cflags_cc': [
+ '<@(uv_cflags)',
+ '<@(curl_cflags)',
+ '<@(boost_cflags)',
+ ],
+ 'ldflags': [
+ '<@(uv_ldflags)',
+ '<@(curl_ldflags)',
+ ],
+ 'libraries': [
+ '<@(uv_static_libs)',
+ '<@(curl_static_libs)',
+ ],
+ 'defines': [
+ '-DMBGL_HTTP_CURL'
+ ],
+ },
+
'conditions': [
['host == "android"', {
'variables': {
@@ -32,19 +51,17 @@
}],
],
- 'variables': {
- 'cflags_cc': [
- '<@(uv_cflags)',
- '<@(curl_cflags)',
- '<@(boost_cflags)',
- ],
- 'ldflags': [
- '<@(uv_ldflags)',
- '<@(curl_ldflags)',
- ],
- 'libraries': [
- '<@(uv_static_libs)',
- '<@(curl_static_libs)',
+ 'direct_dependent_settings': {
+ 'conditions': [
+ ['OS == "mac"', {
+ 'xcode_settings': {
+ 'OTHER_CFLAGS': [ '<@(defines)' ],
+ 'OTHER_CPLUSPLUSFLAGS': [ '<@(defines)' ],
+ }
+ }, {
+ 'cflags': [ '<@(defines)' ],
+ 'cflags_cc': [ '<@(defines)' ],
+ }]
],
},