summaryrefslogtreecommitdiff
path: root/gyp
diff options
context:
space:
mode:
Diffstat (limited to 'gyp')
-rw-r--r--gyp/http-curl.gypi43
-rw-r--r--gyp/http-nsurl.gypi10
2 files changed, 40 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)' ],
+ }]
],
},
diff --git a/gyp/http-nsurl.gypi b/gyp/http-nsurl.gypi
index 4205f59d81..5a079fdeeb 100644
--- a/gyp/http-nsurl.gypi
+++ b/gyp/http-nsurl.gypi
@@ -25,6 +25,9 @@
'libraries': [
'<@(uv_static_libs)',
],
+ 'defines': [
+ '-DMBGL_HTTP_NSURL'
+ ],
},
'xcode_settings': {
@@ -32,6 +35,13 @@
'CLANG_ENABLE_OBJC_ARC': 'NO',
},
+ 'direct_dependent_settings': {
+ 'xcode_settings': {
+ 'OTHER_CFLAGS': [ '<@(defines)' ],
+ 'OTHER_CPLUSPLUSFLAGS': [ '<@(defines)' ],
+ }
+ },
+
'link_settings': {
'libraries': [ '<@(libraries)' ],
'xcode_settings': {