summaryrefslogtreecommitdiff
path: root/scripts/standalone.cmake
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-08-23 12:15:09 +0200
committerKonstantin Käfer <mail@kkaefer.com>2018-09-11 11:43:54 +0200
commit2fccdecfb1ae720682276c0342e1c3902d8c9873 (patch)
tree7de62d938f0691b91681bca1c510a89f07eda067 /scripts/standalone.cmake
parentbc9b2249169276987af4ed91b29bf8a2fd65e15e (diff)
downloadqtlocation-mapboxgl-2fccdecfb1ae720682276c0342e1c3902d8c9873.tar.gz
[build] add script to generate a standalone version of Mapbox GL
Diffstat (limited to 'scripts/standalone.cmake')
-rw-r--r--scripts/standalone.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/standalone.cmake b/scripts/standalone.cmake
new file mode 100644
index 0000000000..b8bcbfa03f
--- /dev/null
+++ b/scripts/standalone.cmake
@@ -0,0 +1,18 @@
+include(cmake/mason.cmake)
+
+# include once for every platform to get all dependency defines
+set(MBGL_PLATFORM "android")
+include(cmake/mason-dependencies.cmake)
+set(MBGL_PLATFORM "ios")
+include(cmake/mason-dependencies.cmake)
+
+get_cmake_property(_VARS VARIABLES)
+foreach (_VAR ${_VARS})
+ if (_VAR MATCHES "^MASON_PACKAGE_.+_NAME$")
+ set(_PACKAGE "${${_VAR}}")
+ if (MASON_PACKAGE_${_PACKAGE}_HEADER_ONLY)
+ file(RELATIVE_PATH _PREFIX "${CMAKE_CURRENT_LIST_DIR}/.." "${MASON_PACKAGE_${_PACKAGE}_PREFIX}")
+ message("${_PACKAGE} ${_PREFIX} ${MASON_PACKAGE_${_PACKAGE}_VERSION}")
+ endif()
+ endif()
+endforeach()