diff options
Diffstat (limited to 'gyp/http-nsurl.gypi')
-rw-r--r-- | gyp/http-nsurl.gypi | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/gyp/http-nsurl.gypi b/gyp/http-nsurl.gypi new file mode 100644 index 0000000000..4205f59d81 --- /dev/null +++ b/gyp/http-nsurl.gypi @@ -0,0 +1,43 @@ +{ + 'targets': [ + { 'target_name': 'http-nsurl', + 'product_name': 'mbgl-http-nsurl', + 'type': 'static_library', + 'standalone_static_library': 1, + 'hard_dependency': 1, + + 'sources': [ + '../platform/darwin/http_request_nsurl.mm', + ], + + 'include_dirs': [ + '../include', + ], + + 'variables': { + 'cflags_cc': [ + '<@(uv_cflags)', + ], + 'ldflags': [ + '-framework Foundation', # For NSURLRequest + '<@(uv_ldflags)', + ], + 'libraries': [ + '<@(uv_static_libs)', + ], + }, + + 'xcode_settings': { + 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ], + 'CLANG_ENABLE_OBJC_ARC': 'NO', + }, + + 'link_settings': { + 'libraries': [ '<@(libraries)' ], + 'xcode_settings': { + 'OTHER_LDFLAGS': [ '<@(ldflags)' ], + }, + }, + }, + ], +} |