diff options
author | Leith Bade <leith@mapbox.com> | 2015-07-31 13:00:52 +1000 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2015-08-11 11:59:08 +1000 |
commit | 0cbe7e07f5ada444de45b3936f7378dd4f3b9d6b (patch) | |
tree | 72e2e56f37659d9b55b2815ed9aa8a1e363c1184 /gyp | |
parent | dc11b8132ba7ccc58c280e580526425e7389df86 (diff) | |
download | qtlocation-mapboxgl-0cbe7e07f5ada444de45b3936f7378dd4f3b9d6b.tar.gz |
Use OkHTTP to implement HTTPContext on Android.
Closes #823
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/http-android.gypi | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/gyp/http-android.gypi b/gyp/http-android.gypi new file mode 100644 index 0000000000..c210db0fb6 --- /dev/null +++ b/gyp/http-android.gypi @@ -0,0 +1,70 @@ +{ + 'targets': [ + { 'target_name': 'http-android', + 'product_name': 'mbgl-http-android', + 'type': 'static_library', + 'standalone_static_library': 1, + 'hard_dependency': 1, + + 'sources': [ + '../platform/android/http_request_android.cpp', + ], + + 'include_dirs': [ + '../include', + '../src', + ], + + 'variables': { + 'cflags_cc': [ + '<@(libuv_cflags)', + '<@(boost_cflags)', + ], + 'ldflags': [ + '<@(libuv_ldflags)', + ], + 'libraries': [ + '<@(libuv_static_libs)', + ], + 'defines': [ + '-DMBGL_HTTP_ANDROID' + ], + }, + + 'conditions': [ + ['OS == "mac"', { + 'xcode_settings': { + 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ], + }, + }, { + 'cflags_cc': [ '<@(cflags_cc)' ], + }], + ], + + 'direct_dependent_settings': { + 'conditions': [ + ['OS == "mac"', { + 'xcode_settings': { + 'OTHER_CFLAGS': [ '<@(defines)' ], + 'OTHER_CPLUSPLUSFLAGS': [ '<@(defines)' ], + } + }, { + 'cflags': [ '<@(defines)' ], + 'cflags_cc': [ '<@(defines)' ], + }] + ], + }, + + 'link_settings': { + 'conditions': [ + ['OS == "mac"', { + 'libraries': [ '<@(libraries)' ], + 'xcode_settings': { 'OTHER_LDFLAGS': [ '<@(ldflags)' ] } + }, { + 'libraries': [ '<@(libraries)', '<@(ldflags)' ], + }] + ], + }, + }, + ], +} |