forked from qt-creator/qt-creator
CMake: Add a preset for a minimal CMake configuration
This "cmake-plugin-minimal" preset contains the set of plugins that I usually need to build to be able to test the CMakeProjectManager plugin. Change-Id: I8bb02879df38c40be38c4a2bf4e85e0623f2dca5 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
14
CMakePresets.json
Normal file
14
CMakePresets.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 3,
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "cmake-plugin-minimal",
|
||||
"displayName": "CMake, C++, Git, Debug minimal Build",
|
||||
"generator": "Ninja",
|
||||
"cacheVariables": {
|
||||
"BUILD_PLUGINS": "Core;Designer;DiffEditor;TextEditor;ProjectExplorer;CppEditor;CodePaster;Docker;Git;Help;QmakeProjectManager;CMakeProjectManager;ClangCodeModel;ClangTools;ClangFormat;Debugger;QtSupport;ResourceEditor;VcsBase;Welcome;LanguageClient;RemoteLinux",
|
||||
"BUILD_EXECUTABLES": "QtCreator;qtcreator_ctrlc_stub;qtcreator_process_stub;win64interrupt;qtcreator_processlauncher"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@@ -1,3 +1,18 @@
|
||||
add_qtc_plugin(QmlDesigner
|
||||
CONDITION Qt5_VERSION VERSION_GREATER_EQUAL 6.2.0 AND TARGET Qt5::QuickWidgets AND TARGET Qt5::Svg
|
||||
DEPENDS
|
||||
QmlJS LanguageUtils QmlEditorWidgets AdvancedDockingSystem
|
||||
Qt5::QuickWidgets Qt5::CorePrivate Sqlite Qt5::Xml Qt5::Svg
|
||||
PLUGIN_DEPENDS
|
||||
Core ProjectExplorer QmlJSEditor QmlProjectManager
|
||||
QtSupport
|
||||
PLUGIN_RECOMMENDS QmlPreview
|
||||
)
|
||||
qtc_plugin_enabled(_qmlDesignerEnabled QmlDesigner)
|
||||
if (NOT _qmlDesignerEnabled)
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(QmlDesignerPluginInstallPrefix "${IDE_PLUGIN_PATH}/qmldesigner")
|
||||
if (APPLE)
|
||||
set(QmlDesignerPluginInstallPrefix "${IDE_PLUGIN_PATH}/QmlDesigner")
|
||||
@@ -390,11 +405,7 @@ extend_qtc_library(QmlDesignerCore
|
||||
file(GLOB PROJECTSTORAGE_EXCLUDED_SOURCES designercore/projectstorage/*.cpp)
|
||||
set_property(SOURCE ${PROJECTSTORAGE_EXCLUDED_SOURCES} PROPERTY SKIP_AUTOMOC ON)
|
||||
|
||||
add_qtc_plugin(QmlDesigner
|
||||
CONDITION Qt5_VERSION VERSION_GREATER_EQUAL 6.2.0 AND TARGET Qt5::QuickWidgets AND TARGET Qt5::Svg
|
||||
DEPENDS
|
||||
QmlJS LanguageUtils QmlEditorWidgets AdvancedDockingSystem
|
||||
Qt5::QuickWidgets Qt5::CorePrivate Sqlite Qt5::Xml Qt5::Svg
|
||||
extend_qtc_plugin(QmlDesigner
|
||||
DEFINES
|
||||
IDE_LIBRARY_BASENAME=\"${IDE_LIBRARY_BASE_PATH}\"
|
||||
SHARE_QML_PATH="${CMAKE_CURRENT_SOURCE_DIR}/../../../share/qtcreator/qmldesigner"
|
||||
@@ -418,10 +429,6 @@ add_qtc_plugin(QmlDesigner
|
||||
${CMAKE_CURRENT_LIST_DIR}
|
||||
PUBLIC_DEPENDS
|
||||
QmlDesignerCore
|
||||
PLUGIN_DEPENDS
|
||||
Core ProjectExplorer QmlJSEditor QmakeProjectManager QmlProjectManager
|
||||
QtSupport
|
||||
PLUGIN_RECOMMENDS QmlPreview
|
||||
SOURCES
|
||||
designmodecontext.cpp designmodecontext.h
|
||||
designmodewidget.cpp designmodewidget.h
|
||||
|
@@ -39,11 +39,13 @@ add_qtc_executable(qml2puppet
|
||||
qmlpuppet.qrc
|
||||
)
|
||||
|
||||
if (NOT "$ENV{QDS_PUPPET_VERSION}" STREQUAL "")
|
||||
set_target_properties(qml2puppet PROPERTIES OUTPUT_NAME qml2puppet-$ENV{QDS_PUPPET_VERSION})
|
||||
else()
|
||||
set_target_properties(qml2puppet PROPERTIES OUTPUT_NAME qml2puppet-${IDE_VERSION})
|
||||
set(qml2puppet_suffix $ENV{QDS_PUPPET_VERSION})
|
||||
if (NOT qml2puppet_suffix)
|
||||
set(qml2puppet_suffix ${IDE_VERSION})
|
||||
endif()
|
||||
extend_qtc_executable(qml2puppet
|
||||
PROPERTIES OUTPUT_NAME qml2puppet-${qml2puppet_suffix}
|
||||
)
|
||||
|
||||
extend_qtc_executable(qml2puppet
|
||||
CONDITION Qt5_VERSION VERSION_GREATER_EQUAL 6.0.0
|
||||
|
Reference in New Issue
Block a user