summaryrefslogtreecommitdiff
path: root/gyp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-02-16 12:52:25 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-04-01 09:26:54 -0700
commit879382f72405edd1840d2f37744bcba49131859a (patch)
tree4f632c8973d1c5539437e790edb471090339b533 /gyp
parent7e9a4f15c5082dfe5987e1dcbb4b816f04068a60 (diff)
downloadqtlocation-mapboxgl-879382f72405edd1840d2f37744bcba49131859a.tar.gz
[ios, osx] Replace libuv with native implementations
Diffstat (limited to 'gyp')
-rw-r--r--gyp/mbgl.gyp44
1 files changed, 24 insertions, 20 deletions
diff --git a/gyp/mbgl.gyp b/gyp/mbgl.gyp
index daea491365..2d541875e9 100644
--- a/gyp/mbgl.gyp
+++ b/gyp/mbgl.gyp
@@ -15,33 +15,37 @@
'type': 'static_library',
'standalone_static_library': 1,
- 'sources': [
- '../platform/default/async_task.cpp',
- '../platform/default/run_loop.cpp',
- '../platform/default/timer.cpp',
- ],
-
'include_dirs': [
'../include',
'../src',
],
- 'cflags_cc': [
- '<@(libuv_cflags)',
- ],
+ 'conditions': [
+ ['loop_lib == "darwin"', {
+ 'sources': [
+ '../platform/darwin/src/async_task.cpp',
+ '../platform/darwin/src/run_loop.cpp',
+ '../platform/darwin/src/timer.cpp',
+ ],
+ }],
- 'link_settings': {
- 'libraries': [
- '<@(libuv_static_libs)',
- '<@(libuv_ldflags)',
- ],
- },
+ ['loop_lib == "uv"', {
+ 'sources': [
+ '../platform/default/async_task.cpp',
+ '../platform/default/run_loop.cpp',
+ '../platform/default/timer.cpp',
+ ],
- 'conditions': [
- ['OS == "mac"', {
- 'xcode_settings': {
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(libuv_cflags)' ],
- }
+ 'cflags_cc': [
+ '<@(libuv_cflags)',
+ ],
+
+ 'link_settings': {
+ 'libraries': [
+ '<@(libuv_static_libs)',
+ '<@(libuv_ldflags)',
+ ],
+ },
}]
],
},