diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-08-23 12:15:09 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-09-11 11:43:54 +0200 |
commit | 2fccdecfb1ae720682276c0342e1c3902d8c9873 (patch) | |
tree | 7de62d938f0691b91681bca1c510a89f07eda067 /scripts/standalone.cmake | |
parent | bc9b2249169276987af4ed91b29bf8a2fd65e15e (diff) | |
download | qtlocation-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.cmake | 18 |
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() |