qt5base-lts/src/CMakeLists.txt
Joerg Bornemann 9d84bafeba Make it possible to disable the PrintSupport module
Introduce the 'printsupport' feature to control whether the PrintSupport
module is built.

[ChangeLog][QtPrintSupport] Building of QtPrintSupport can be disabled
by passing -no-feature-printsupport to configure.

Fixes: QTBUG-90778
Change-Id: I8a9a4b7f8dd8f39a81565c8eb14ce1ae0839267d
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Nodir Temirkhodjaev <nodir.temir@gmail.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2021-02-09 09:17:21 +01:00

76 lines
1.9 KiB
CMake

# special case skip regeneration
# We need to include the features of a few modules before they are actually declared.
# The feature values are used as conditions for deciding whether bundled 3rd party libraries
# should be built.
# The order of evaluation matters.
qt_feature_evaluate_features("${CMAKE_CURRENT_SOURCE_DIR}/corelib/configure.cmake")
if(QT_FEATURE_network)
qt_feature_evaluate_features("${CMAKE_CURRENT_SOURCE_DIR}/network/configure.cmake")
endif()
if(QT_FEATURE_gui)
qt_feature_evaluate_features("${CMAKE_CURRENT_SOURCE_DIR}/gui/configure.cmake")
endif()
add_subdirectory(3rdparty)
function(find_or_build_bootstrap_names)
if (QT_WILL_BUILD_TOOLS)
add_subdirectory(tools/bootstrap) # bootstrap library
endif()
add_subdirectory(tools/moc)
add_subdirectory(tools/rcc)
add_subdirectory(tools/tracegen)
add_subdirectory(tools/cmake_automoc_parser)
endfunction()
find_or_build_bootstrap_names()
add_subdirectory(entrypoint)
add_subdirectory(corelib)
if (QT_FEATURE_concurrent)
add_subdirectory(concurrent)
endif()
if (QT_FEATURE_sql)
add_subdirectory(sql)
endif()
if (QT_FEATURE_network)
add_subdirectory(network)
if (ANDROID)
add_subdirectory(network/android/jar)
endif()
endif()
if (QT_FEATURE_xml)
add_subdirectory(xml)
endif()
add_subdirectory(tools)
if (QT_FEATURE_dbus)
add_subdirectory(dbus)
endif()
if(QT_FEATURE_gui)
add_subdirectory(gui)
if(QT_FEATURE_opengl)
add_subdirectory(opengl)
endif()
if(QT_FEATURE_widgets)
add_subdirectory(widgets)
if(QT_FEATURE_opengl)
add_subdirectory(openglwidgets)
endif()
endif()
add_subdirectory(platformsupport)
endif()
if (QT_FEATURE_testlib)
add_subdirectory(testlib)
endif()
if(QT_FEATURE_printsupport)
add_subdirectory(printsupport)
endif()
add_subdirectory(plugins)
add_subdirectory(android)