diff options
Diffstat (limited to 'cmake/QtSortModuleDependencies.cmake')
-rw-r--r-- | cmake/QtSortModuleDependencies.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cmake/QtSortModuleDependencies.cmake b/cmake/QtSortModuleDependencies.cmake new file mode 100644 index 00000000..2f8cdb59 --- /dev/null +++ b/cmake/QtSortModuleDependencies.cmake @@ -0,0 +1,16 @@ +# Copyright (C) 2024 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause + +# The script produces the list of qt submodules that are required to build the submodules listed +# in the QT_BUILD_SUBMODULES variable. The resulting list preserves the required build order. +# Usage: +# cmake [-DQT_BUILD_SUBMODULES="<repo;..>"] [-BUILD_<repo>=<TRUE|FALSE>] \ +# -P <path/to>/qt6/cmake/QtSortModuleDependencies.cmake +cmake_minimum_required(VERSION 3.16) + +include(${CMAKE_CURRENT_LIST_DIR}/QtTopLevelHelpers.cmake) + +qt_internal_collect_modules_only(result "${QT_BUILD_SUBMODULES}") + +list(JOIN result " " result) +message("${result}") |