diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-08-23 12:15:09 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-08-27 11:16:41 +0300 |
commit | 854805140f0a9a50f8c8b727f0f25cdfe52da73b (patch) | |
tree | a10fa3ffd14bc354adbdd39a9c889ba0d69a8073 /scripts/standalone.cmake | |
parent | d297bf10ef89e97da30e1a00dd49560e18bcb3f0 (diff) | |
download | qtlocation-mapboxgl-upstream/standalone-build-script.tar.gz |
[build] add script to generate a standalone version of Mapbox GLupstream/standalone-build-script
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() |