mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-20 13:32:42 +08:00
Add QtSortModuleDependencies.cmake
The script produces the list of Qt submodules that are required to build the submodules listed in the QT_BUILD_SUBMODULES variable. Also the script supports the "collect all but skip repos" mode. The repos that needs to be skipped should be specified by setting BUILD_<repo>=FALSE. The resulting list preserves the required build order. Change-Id: Ia1cfe0ce013f80dc2793a0ba863a18789657e5a1 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
This commit is contained in:
13
cmake/QtSortModuleDependencies.cmake
Normal file
13
cmake/QtSortModuleDependencies.cmake
Normal file
@@ -0,0 +1,13 @@
|
||||
# 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}")
|
||||
Reference in New Issue
Block a user