summaryrefslogtreecommitdiff
path: root/cmake/loop-uv.cmake
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-04-20 16:40:17 +0300
committerKonstantin Käfer <mail@kkaefer.com>2018-05-22 11:17:01 +0200
commitd1a266b3e68d052d1478382795598bf2ff28da6a (patch)
treed303f378e1c959397b23739fbb9b06697da024e5 /cmake/loop-uv.cmake
parent973aa963f917df2c20a05dfea1b3af7314677e06 (diff)
downloadqtlocation-mapboxgl-d1a266b3e68d052d1478382795598bf2ff28da6a.tar.gz
[node] allow building all ABIs at once
Diffstat (limited to 'cmake/loop-uv.cmake')
-rw-r--r--cmake/loop-uv.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmake/loop-uv.cmake b/cmake/loop-uv.cmake
new file mode 100644
index 0000000000..e1d3166b63
--- /dev/null
+++ b/cmake/loop-uv.cmake
@@ -0,0 +1,14 @@
+add_library(mbgl-loop-uv INTERFACE)
+
+target_sources(mbgl-loop-uv INTERFACE
+ ${CMAKE_CURRENT_SOURCE_DIR}/platform/default/async_task.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/platform/default/run_loop.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/platform/default/timer.cpp
+)
+
+target_include_directories(mbgl-loop-uv INTERFACE
+ ${CMAKE_CURRENT_SOURCE_DIR}/include
+ ${CMAKE_CURRENT_SOURCE_DIR}/src
+)
+
+create_source_groups(mbgl-loop-uv)