55 lines
1.1 KiB
Python
55 lines
1.1 KiB
Python
{
|
|
'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',
|
|
'../src',
|
|
],
|
|
|
|
'variables': {
|
|
'cflags_cc': [
|
|
'<@(libuv_cflags)',
|
|
],
|
|
'ldflags': [
|
|
'-framework Foundation', # For NSURLRequest
|
|
'<@(libuv_ldflags)',
|
|
],
|
|
'libraries': [
|
|
'<@(libuv_static_libs)',
|
|
],
|
|
'defines': [
|
|
'-DMBGL_HTTP_NSURL'
|
|
],
|
|
},
|
|
|
|
'xcode_settings': {
|
|
'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
|
|
'CLANG_ENABLE_OBJC_ARC': 'NO',
|
|
},
|
|
|
|
'direct_dependent_settings': {
|
|
'xcode_settings': {
|
|
'OTHER_CFLAGS': [ '<@(defines)' ],
|
|
'OTHER_CPLUSPLUSFLAGS': [ '<@(defines)' ],
|
|
}
|
|
},
|
|
|
|
'link_settings': {
|
|
'libraries': [ '<@(libraries)' ],
|
|
'xcode_settings': {
|
|
'OTHER_LDFLAGS': [ '<@(ldflags)' ],
|
|
},
|
|
},
|
|
},
|
|
],
|
|
}
|