diff options
author | Marco Bubke <marco.bubke@qt.io> | 2023-04-19 10:11:38 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2023-04-19 17:19:33 +0000 |
commit | 2694d6a1f576e2731b5b9f5d11d4fc2c567cba2b (patch) | |
tree | 9bd665a90d95192e4ca3b2a33d78a1c5cf0d7591 /src/plugins/CMakeLists.txt | |
parent | 4393df48be6ba2c2f2ad43982256f100a6e2d978 (diff) |
Add feature to disable QmlDesigner and related files
QTC_WITH_QMLDESIGNER or WITH_QMLDESIGNER has to be set to OFF to disable
QmlDesigner related code.
Change-Id: I7e25200fe856fcc7de3493cfa394cdd4f923e0bf
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/CMakeLists.txt')
-rw-r--r-- | src/plugins/CMakeLists.txt | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index 950d1d8e95e..0ec8eb2de76 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -57,15 +57,18 @@ add_subdirectory(scxmleditor) add_subdirectory(subversion) add_subdirectory(compilationdatabaseprojectmanager) add_subdirectory(languageclient) -add_subdirectory(qmldesignerbase) - +if (WITH_QMLDESIGNER) + add_subdirectory(qmldesignerbase) +endif() # Level 6: add_subdirectory(cmakeprojectmanager) add_subdirectory(debugger) add_subdirectory(coco) add_subdirectory(gitlab) -add_subdirectory(qmlprojectmanager) +if (WITH_QMLDESIGNER) + add_subdirectory(qmlprojectmanager) +endif() # Level 7: add_subdirectory(android) @@ -90,15 +93,17 @@ add_subdirectory(squish) # Level 8: add_subdirectory(boot2qt) -unset(qmldesigner_builddir) -if (WIN32 AND CMAKE_CXX_COMPILER_ID MATCHES "Clang") - # Workaround for @CMakeFiles\QmlDesigner.rsp ld.lld.exe: The filename or extension is too long. - # Clang on Windows is having problems with QmlDesigner.rsp which is bigger than 32KiB - set(qmldesigner_builddir ${PROJECT_BINARY_DIR}/qmldsgnr) +if (WITH_QMLDESIGNER) + unset(qmldesigner_builddir) + if (WIN32 AND CMAKE_CXX_COMPILER_ID MATCHES "Clang") + # Workaround for @CMakeFiles\QmlDesigner.rsp ld.lld.exe: The filename or extension is too long. + # Clang on Windows is having problems with QmlDesigner.rsp which is bigger than 32KiB + set(qmldesigner_builddir ${PROJECT_BINARY_DIR}/qmldsgnr) + endif() + add_subdirectory(qmldesigner ${qmldesigner_builddir}) + add_subdirectory(studiowelcome) + add_subdirectory(insight) endif() -add_subdirectory(qmldesigner ${qmldesigner_builddir}) -add_subdirectory(studiowelcome) -add_subdirectory(insight) add_subdirectory(qnx) add_subdirectory(webassembly) add_subdirectory(mcusupport) |