qbs build: Improve some base items

Clean-up, simplification and modernization.
Also fix the bugs uncovered by this.

Change-Id: Ia3a77557f10faf9a901540a55fd6c07a2e986bf5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2023-09-14 12:15:19 +02:00
parent 2842eeeecc
commit bdded29b33
97 changed files with 240 additions and 286 deletions

View File

@@ -2,21 +2,19 @@ import qbs
import qbs.FileInfo
QtcProduct {
type: ["application", "autotest"]
Depends { name: "autotest" }
Depends { name: "Qt.testlib" }
Depends { name: "copyable_resource" }
targetName: "tst_" + name.split(' ').join("")
// This needs to be absolute, because it is passed to one of the source files.
destinationDirectory: project.buildDirectory + '/'
+ FileInfo.relativePath(project.ide_source_tree, sourceDirectory)
cpp.rpaths: [
project.buildDirectory + '/' + qtc.ide_library_path,
project.buildDirectory + '/' + qtc.ide_plugin_path
]
targetName: "tst_" + name.split(' ').join("")
type: ["application", "autotest"]
installTags: []
Depends { name: "autotest" }
Depends { name: "Qt.testlib" }
Depends { name: "copyable_resource" }
cpp.defines: {
var defines = base.filter(function(d) { return d !== "QT_RESTRICTED_CAST_FROM_ASCII"; });
var absLibExecPath = FileInfo.joinPaths(qbs.installRoot, qbs.installPrefix,
@@ -25,11 +23,10 @@ QtcProduct {
defines.push('TEST_RELATIVE_LIBEXEC_PATH="' + relLibExecPath + '"');
return defines;
}
Group {
fileTagsFilter: product.type
qbs.install: false
}
cpp.rpaths: [
project.buildDirectory + '/' + qtc.ide_library_path,
project.buildDirectory + '/' + qtc.ide_plugin_path
]
// The following would be conceptually right, but does not work currently as some autotests
// (e.g. extensionsystem) do not work when installed, because they want hardcoded

View File

@@ -1,5 +1,3 @@
import qbs
QtcPlugin {
Depends { name: "LicenseChecker"; required: false }
cpp.defines: base.concat(LicenseChecker.present ? ["LICENSECHECKER"] : [])

View File

@@ -1,38 +1,38 @@
import qbs
import qbs.FileInfo
Product {
builtByDefault: false
type: [isOnlineDoc ? "qdoc-output" : "qch"]
Depends { name: "Qt.core" }
Depends { name: "qtc" }
property path mainDocConfFile
property bool isOnlineDoc
property path mainDocConfFile
property string versionTag: qtc.qtcreator_version.replace(/\.|-/g, "")
Qt.core.qdocEnvironment: [
"IDE_DISPLAY_NAME=" + qtc.ide_display_name,
"IDE_CASED_ID=" + qtc.ide_cased_id,
"IDE_ID=" + qtc.ide_id,
"QTCREATOR_COPYRIGHT_YEAR=" + qtc.qtcreator_copyright_year,
"QTC_VERSION=" + qtc.qtcreator_version,
"QTC_VERSION_TAG=" + qtc.qtcreator_version,
"QT_INSTALL_DOCS=" + Qt.core.docPath,
"QDOC_INDEX_DIR=" + Qt.core.docPath,
"SRCDIR=" + sourceDirectory,
"VERSION_TAG=" + versionTag,
]
Group {
name: "main qdocconf file"
prefix: product.sourceDirectory + '/'
files: [mainDocConfFile]
fileTags: ["qdocconf-main"]
files: mainDocConfFile
fileTags: "qdocconf-main"
}
property string versionTag: qtc.qtcreator_version.replace(/\.|-/g, "")
Qt.core.qdocEnvironment: [
"IDE_DISPLAY_NAME=" + qtc.ide_display_name,
"IDE_ID=" + qtc.ide_id,
"IDE_CASED_ID=" + qtc.ide_cased_id,
"QTCREATOR_COPYRIGHT_YEAR=" + qtc.qtcreator_copyright_year,
"QTC_VERSION=" + qtc.qtcreator_version,
"QTC_VERSION_TAG=" + qtc.qtcreator_version,
"SRCDIR=" + sourceDirectory,
"QT_INSTALL_DOCS=" + Qt.core.docPath,
"QDOC_INDEX_DIR=" + Qt.core.docPath,
"VERSION_TAG=" + versionTag
]
Group {
fileTagsFilter: ["qch"]
fileTagsFilter: "qch"
qbs.install: !qbs.targetOS.contains("macos")
qbs.installDir: qtc.ide_doc_path
}

View File

@@ -1,19 +1,14 @@
import qbs 1.0
import qbs.FileInfo
import QtcFunctions
QtcProduct {
type: ["dynamiclibrary", "dynamiclibrary_symlink"]
installDir: qtc.ide_library_path
installTags: ["dynamiclibrary", "dynamiclibrary_symlink", "debuginfo_dll"]
useNonGuiPchFile: true
Depends {
condition: qtc.testsEnabled
name: "Qt.testlib"
}
targetName: QtcFunctions.qtLibraryName(qbs, name)
destinationDirectory: FileInfo.joinPaths(project.buildDirectory, qtc.ide_library_path)
targetName: QtcFunctions.qtLibraryName(qbs, name)
installDir: qtc.ide_library_path
installTags: type.concat("debuginfo_dll")
useNonGuiPchFile: true
cpp.linkerFlags: {
var flags = base;
@@ -23,17 +18,13 @@ QtcProduct {
flags.push("-compatibility_version", qtc.qtcreator_compat_version);
return flags;
}
cpp.sonamePrefix: qbs.targetOS.contains("macos")
? "@rpath"
: undefined
cpp.sonamePrefix: qbs.targetOS.contains("macos") ? "@rpath" : undefined
cpp.rpaths: qbs.targetOS.contains("macos")
? ["@loader_path/../Frameworks"]
: ["$ORIGIN", "$ORIGIN/.."]
property string libIncludeBase: ".." // #include <lib/header.h>
cpp.includePaths: [libIncludeBase]
Export {
Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.libIncludeBase]
cpp.includePaths: project.ide_source_tree + "/src/libs"
}
}

View File

@@ -1,23 +1,22 @@
import qbs
import qbs.FileInfo
QtcProduct {
type: ["application"]
destinationDirectory: project.buildDirectory + '/'
+ FileInfo.relativePath(project.ide_source_tree, sourceDirectory)
targetName: "tst_" + name.split(' ').join("")
type: "application"
install: false
Depends { name: "Qt.testlib" }
Depends { name: "copyable_resource" }
targetName: "tst_" + name.split(' ').join("")
cpp.rpaths: [
project.buildDirectory + '/' + qtc.ide_library_path,
project.buildDirectory + '/' + qtc.ide_plugin_path
]
cpp.defines: {
var defines = base.filter(function(d) { return d !== "QT_RESTRICTED_CAST_FROM_ASCII"; });
return defines;
}
destinationDirectory: project.buildDirectory + '/'
+ FileInfo.relativePath(project.ide_source_tree, sourceDirectory)
install: false
cpp.rpaths: [
project.buildDirectory + '/' + qtc.ide_library_path,
project.buildDirectory + '/' + qtc.ide_plugin_path
]
}

View File

@@ -1,38 +1,25 @@
import qbs 1.0
import qbs.FileInfo
import QtcFunctions
QtcProduct {
destinationDirectory: FileInfo.joinPaths(project.buildDirectory, qtc.ide_plugin_path)
name: project.name
targetName: QtcFunctions.qtLibraryName(qbs, name)
type: ["dynamiclibrary", "pluginSpec"]
installDir: qtc.ide_plugin_path
installTags: ["dynamiclibrary", "debuginfo_dll"]
useGuiPchFile: true
property var pluginRecommends: []
property var pluginTestDepends: []
targetName: QtcFunctions.qtLibraryName(qbs, name)
destinationDirectory: FileInfo.joinPaths(project.buildDirectory, qtc.ide_plugin_path)
property stringList pluginRecommends: []
property stringList pluginTestDepends: []
Depends { name: "Qt.testlib"; condition: qtc.testsEnabled }
Depends { name: "ExtensionSystem" }
Depends { name: "pluginjson" }
pluginjson.useVcsData: false
Depends {
condition: qtc.testsEnabled
name: "Qt.testlib"
}
Properties {
condition: qbs.targetOS.contains("unix")
cpp.internalVersion: ""
}
cpp.defines: base.concat([name.toUpperCase() + "_LIBRARY"])
cpp.sonamePrefix: qbs.targetOS.contains("macos")
? "@rpath"
: undefined
cpp.rpaths: qbs.targetOS.contains("macos")
? ["@loader_path/../Frameworks", "@loader_path/../PlugIns"]
: ["$ORIGIN", "$ORIGIN/.."]
Properties { cpp.internalVersion: ""; condition: qbs.targetOS.contains("unix") }
cpp.linkerFlags: {
var flags = base;
if (qbs.buildVariant == "debug" && qbs.toolchain.contains("msvc"))
@@ -41,20 +28,24 @@ QtcProduct {
flags.push("-compatibility_version", qtc.qtcreator_compat_version);
return flags;
}
property string pluginIncludeBase: ".." // #include <plugin/header.h>
cpp.includePaths: [pluginIncludeBase]
cpp.rpaths: qbs.targetOS.contains("macos")
? ["@loader_path/../Frameworks", "@loader_path/../PlugIns"]
: ["$ORIGIN", "$ORIGIN/.."]
cpp.sonamePrefix: qbs.targetOS.contains("macos")
? "@rpath"
: undefined
pluginjson.useVcsData: false
Group {
name: "PluginMetaData"
prefix: product.sourceDirectory + '/'
files: [ product.name + ".json.in" ]
fileTags: ["pluginJsonIn"]
prefix: sourceDirectory + '/'
files: product.name + ".json.in"
fileTags: "pluginJsonIn"
}
Export {
Depends { name: "ExtensionSystem" }
Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.pluginIncludeBase]
Depends { name: "ExtensionSystem" }
cpp.includePaths: ".."
}
}

View File

@@ -1,16 +1,13 @@
import qbs 1.0
import qbs.FileInfo
import qbs.Utilities
import QtcFunctions
Product {
name: project.name
version: qtc.qtcreator_version
property bool install: true
property string installDir
property string installSourceBase: destinationDirectory
property stringList installTags: type
property string fileName: FileInfo.fileName(sourceDirectory) + ".qbs"
property bool useNonGuiPchFile: false
property bool useGuiPchFile: false
property bool useQt: true
@@ -20,15 +17,6 @@ Product {
property bool sanitizable: true
Depends { name: "cpp" }
Depends { name: "qtc" }
Depends {
name: product.name + " dev headers";
required: false
Properties {
condition: Utilities.versionCompare(qbs.version, "1.13") >= 0
enableFallback: false
}
}
Depends {
name: "Qt"
condition: useQt
@@ -36,10 +24,7 @@ Product {
versionAtLeast: "6.2.0"
}
// TODO: Should fall back to what came from Qt.core for Qt < 5.7, but we cannot express that
// atm. Conditionally pulling in a module that sets the property is also not possible,
// because conflicting scalar values would be reported (QBS-1225 would fix that).
cpp.minimumMacosVersion: project.minimumMacosVersion
Depends { name: "qtc" }
cpp.cxxFlags: {
var flags = [];
@@ -62,7 +47,8 @@ Product {
}
return flags;
}
cpp.cxxLanguageVersion: "c++17"
cpp.defines: qtc.generalDefines
Properties {
condition: sanitizable && qbs.toolchain.contains("gcc")
cpp.driverFlags: {
@@ -76,9 +62,7 @@ Product {
return flags;
}
}
cpp.cxxLanguageVersion: "c++17"
cpp.defines: qtc.generalDefines
cpp.minimumMacosVersion: "10.15"
cpp.minimumWindowsVersion: "6.1"
cpp.useCxxPrecompiledHeader: useQt && (useNonGuiPchFile || useGuiPchFile)
cpp.visibility: "minimal"
@@ -94,15 +78,15 @@ Product {
name: "standard pch file (non-gui)"
condition: useNonGuiPchFile
prefix: pathToSharedSources + '/'
files: ["qtcreator_pch.h"]
fileTags: ["cpp_pch_src"]
files: "qtcreator_pch.h"
fileTags: "cpp_pch_src"
}
Group {
name: "standard pch file (gui)"
condition: useGuiPchFile
prefix: pathToSharedSources + '/'
files: ["qtcreator_gui_pch.h"]
fileTags: ["cpp_pch_src"]
files: "qtcreator_gui_pch.h"
fileTags: "cpp_pch_src"
}
}

View File

@@ -1,4 +1,3 @@
import qbs
import qbs.FileInfo
CppApplication {

View File

@@ -1,5 +1,3 @@
import qbs 1.0
Group {
name: "Unit tests"
condition: qtc.testsEnabled

View File

@@ -1,11 +1,11 @@
import qbs
import qbs.FileInfo
QtcProduct {
type: ["application"]
consoleApplication: true
type: "application"
installDir: qtc.ide_libexec_path
installTags: base.concat(["debuginfo_app"])
installTags: type.concat("debuginfo_app")
useNonGuiPchFile: true
cpp.rpaths: {

View File

@@ -5,7 +5,6 @@ import qbs.FileInfo
Project {
name: "Qt Creator"
minimumQbsVersion: "1.19.0"
property string minimumMacosVersion: "10.15"
property bool withAutotests: qbs.buildVariant === "debug"
property path ide_source_tree: path
property pathList additionalPlugins: []

View File

@@ -1,12 +1,11 @@
QtcLibrary {
name: "ptyqt"
type: "staticlibrary"
Depends { name: "Qt.core" }
Depends { name: "Qt.network"; condition: qbs.targetOS.contains("windows") }
Depends { name: "winpty"; condition: qbs.targetOS.contains("windows") }
type: "staticlibrary"
files: [
"iptyprocess.h",
"ptyqt.cpp",
@@ -36,6 +35,6 @@ QtcLibrary {
Export {
Depends { name: "cpp" }
Depends { name: "winpty"; condition: qbs.targetOS.contains("windows") }
cpp.includePaths: base.concat(exportingProduct.sourceDirectory)
cpp.includePaths: exportingProduct.sourceDirectory
}
}

View File

@@ -2,7 +2,10 @@ QtcLibrary {
name: "vterm"
type: "staticlibrary"
useQt: false
Depends { name: "cpp" }
cpp.includePaths: base.concat("include")
cpp.warningLevel: "none"
@@ -27,6 +30,6 @@ QtcLibrary {
Export {
Depends { name: "cpp" }
cpp.includePaths: base.concat("include")
cpp.includePaths: "include"
}
}

View File

@@ -5,7 +5,6 @@ Project {
name: "Winpty"
condition: qbs.targetOS.contains("windows")
Product {
name: "winpty_genversion_header"
type: "hpp"
@@ -199,8 +198,8 @@ Project {
Export {
Depends { name: "cpp" }
cpp.defines: base.concat("COMPILING_WINPTY_DLL")
cpp.includePaths: base.concat(exportingProduct.sourceDirectory + "/src/include")
cpp.defines: "COMPILING_WINPTY_DLL"
cpp.includePaths: exportingProduct.sourceDirectory + "/src/include"
}
}
}

View File

@@ -1,12 +1,11 @@
QtcLibrary {
name: "ExtensionSystem"
cpp.defines: base.concat([
"EXTENSIONSYSTEM_LIBRARY",
"IDE_TEST_DIR=\".\""
])
cpp.defines: base.concat(["EXTENSIONSYSTEM_LIBRARY", "IDE_TEST_DIR=\".\""])
Depends { name: "Qt"; submodules: ["core", "widgets"] }
Depends { name: "Qt.testlib"; condition: qtc.testsEnabled }
Depends { name: "Aggregation" }
Depends { name: "Utils" }

View File

@@ -1,6 +1,8 @@
QtcLibrary {
name: "Spinner"
Depends { name: "Qt"; submodules: ["core", "widgets"] }
Depends { name: "Qt.widgets" }
cpp.defines: base.concat("SPINNER_LIBRARY")
files: [
@@ -9,5 +11,10 @@ QtcLibrary {
"spinner.qrc",
"spinner_global.h",
]
Export {
Depends { name: "cpp" }
cpp.includePaths: ".."
}
}

View File

@@ -1,6 +1,8 @@
QtcLibrary {
name: "Tasking"
Depends { name: "Qt"; submodules: ["concurrent", "core", "network"] }
Depends { name: "Qt"; submodules: ["concurrent", "network"] }
cpp.defines: base.concat("TASKING_LIBRARY")
files: [
@@ -13,5 +15,10 @@ QtcLibrary {
"tasktree.cpp",
"tasktree.h",
]
Export {
Depends { name: "cpp" }
cpp.includePaths: ["..", "../.."]
}
}

View File

@@ -1,14 +1,10 @@
import qbs 1.0
QtcLibrary {
name: "TerminalLib"
Depends { name: "vterm" }
Depends { name: "Qt"; submodules: "widgets" }
Depends { name: "Qt.widgets" }
cpp.defines: base.concat([
"TERMINALLIB_LIBRARY"
])
cpp.defines: base.concat("TERMINALLIB_LIBRARY")
files: [
"celliterator.cpp",

View File

@@ -3,6 +3,7 @@ import qbs 1.0
QtcLibrary {
name: "Sqlite"
Depends { name: "Utils" }
Depends { name: "sqlite_sources" }
property string exportedIncludeDir: sqlite_sources.includeDir

View File

@@ -14,7 +14,7 @@
// We mean it.
//
#include <utils/utils_global.h>
#include "../utils_global.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qlist.h>

View File

@@ -4,7 +4,7 @@
#pragma once
#include <utils/utils_global.h>
#include "../utils_global.h"
#include <QtCore/qobjectdefs.h>
#include <QtCore/qshareddata.h>

View File

@@ -5,9 +5,9 @@
#include "utils_global.h"
#include <utils/filepath.h>
#include <utils/hostosinfo.h>
#include <utils/textutils.h>
#include "filepath.h"
#include "hostosinfo.h"
#include "textutils.h"
#include <QColor>
#include <QHash>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <utils/utils_global.h>
#include "utils_global.h"
namespace Utils::StringTable {

View File

@@ -472,6 +472,6 @@ QtcLibrary {
Export {
Depends { name: "Qt"; submodules: ["concurrent", "widgets" ] }
Depends { name: "Tasking" }
cpp.includePaths: base.concat("mimetypes2")
cpp.includePaths: "mimetypes2"
}
}

View File

@@ -7,6 +7,7 @@
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/find/itemviewfind.h>
#include <coreplugin/find/textfindconstants.h>
#include <cppeditor/projectinfo.h>
#include <projectexplorer/selectablefilesmodel.h>
#include <texteditor/textdocument.h>

View File

@@ -4,8 +4,8 @@
#include "actioncontainer_p.h"
#include "actionmanager.h"
#include <coreplugin/coreconstants.h>
#include <coreplugin/icontext.h>
#include "../coreconstants.h"
#include "../icontext.h"
#include <utils/qtcassert.h>

View File

@@ -5,8 +5,8 @@
#include "actionmanager_p.h"
#include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/actionmanager/command.h>
#include "actioncontainer.h"
#include "command.h"
#include <utils/touchbar/touchbar.h>

View File

@@ -5,8 +5,7 @@
#include "actionmanager_p.h"
#include "actioncontainer_p.h"
#include "command_p.h"
#include <coreplugin/icore.h>
#include "../icore.h"
#include <utils/algorithm.h>
#include <utils/fadingindicator.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/icontext.h>
#include "../icontext.h"
#include <QMap>
#include <QHash>

View File

@@ -4,8 +4,8 @@
#include "command.h"
#include "command_p.h"
#include <coreplugin/coreconstants.h>
#include <coreplugin/icontext.h>
#include "../coreconstants.h"
#include "../icontext.h"
#include <utils/hostosinfo.h>
#include <utils/stringutils.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/core_global.h>
#include "../core_global.h"
#include <utils/hostosinfo.h>
#include <utils/id.h>

View File

@@ -5,7 +5,7 @@
#include "command.h"
#include <coreplugin/icontext.h>
#include "../icontext.h"
#include <utils/id.h>
#include <utils/proxyaction.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/core_global.h>
#include "../core_global.h"
#include <utils/id.h>

View File

@@ -3,8 +3,8 @@
#include "commandmappings.h"
#include <coreplugin/coreplugintr.h>
#include <coreplugin/dialogs/shortcutsettings.h>
#include "../coreplugintr.h"
#include "../dialogs/shortcutsettings.h"
#include <utils/fancylineedit.h>
#include <utils/headerviewstretcher.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/core_global.h>
#include "../core_global.h"
#include <QWidget>

View File

@@ -3,8 +3,8 @@
#include "commandsfile.h"
#include "command.h"
#include <coreplugin/dialogs/shortcutsettings.h>
#include <coreplugin/icore.h>
#include "../dialogs/shortcutsettings.h"
#include "../icore.h"
#include <utils/qtcassert.h>
#include <utils/fileutils.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/locator/ilocatorfilter.h>
#include "locator/ilocatorfilter.h"
#include <QAction>
#include <QPointer>

View File

@@ -5,8 +5,7 @@
#include "core_global.h"
#include "generatedfile.h"
#include <coreplugin/iwizardfactory.h>
#include "iwizardfactory.h"
#include <utils/filepath.h>

View File

@@ -14,14 +14,13 @@
#include "session.h"
#include "themechooser.h"
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/documentmanager.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/find/findplugin.h>
#include <coreplugin/find/searchresultwindow.h>
#include <coreplugin/locator/locator.h>
#include <coreplugin/coreconstants.h>
#include <coreplugin/fileutils.h>
#include "actionmanager/actionmanager.h"
#include "documentmanager.h"
#include "editormanager/editormanager.h"
#include "find/findplugin.h"
#include "locator/locator.h"
#include "coreconstants.h"
#include "fileutils.h"
#include <extensionsystem/pluginerroroverview.h>
#include <extensionsystem/pluginmanager.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/imode.h>
#include "imode.h"
namespace Core {
class IEditor;

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/core_global.h>
#include "../core_global.h"
#include <utils/aspects.h>
#include <utils/id.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/core_global.h>
#include "../core_global.h"
#include <utils/filepath.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/core_global.h>
#include "../core_global.h"
#include <QCoreApplication>
#include <QMessageBox>

View File

@@ -3,8 +3,8 @@
#pragma once
#include <coreplugin/actionmanager/commandmappings.h>
#include <coreplugin/dialogs/ioptionspage.h>
#include "../actionmanager/commandmappings.h"
#include "ioptionspage.h"
#include <QGridLayout>
#include <QKeySequence>

View File

@@ -3,25 +3,24 @@
#include "documentmanager.h"
#include "actionmanager/actioncontainer.h"
#include "actionmanager/actionmanager.h"
#include "actionmanager/command.h"
#include "coreconstants.h"
#include "coreplugintr.h"
#include "diffservice.h"
#include "dialogs/filepropertiesdialog.h"
#include "dialogs/readonlyfilesdialog.h"
#include "dialogs/saveitemsdialog.h"
#include "editormanager/editormanager.h"
#include "editormanager/editormanager_p.h"
#include "editormanager/editorview.h"
#include "editormanager/ieditor.h"
#include "editormanager/ieditorfactory.h"
#include "icore.h"
#include "idocument.h"
#include "idocumentfactory.h"
#include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/command.h>
#include <coreplugin/diffservice.h>
#include <coreplugin/dialogs/filepropertiesdialog.h>
#include <coreplugin/dialogs/readonlyfilesdialog.h>
#include <coreplugin/dialogs/saveitemsdialog.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/editormanager/editormanager_p.h>
#include <coreplugin/editormanager/editorview.h>
#include <coreplugin/editormanager/ieditor.h>
#include <coreplugin/editormanager/ieditorfactory.h>
#include <coreplugin/systemsettings.h>
#include "systemsettings.h"
#include <extensionsystem/pluginmanager.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/core_global.h>
#include "core_global.h"
#include <utils/filepath.h>
#include <utils/id.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/imode.h>
#include "imode.h"
QT_BEGIN_NAMESPACE
class QSplitter;

View File

@@ -6,10 +6,11 @@
#include "editormanager.h"
#include "ieditor.h"
#include <coreplugin/coreconstants.h>
#include <coreplugin/icontext.h>
#include <coreplugin/idocument.h>
#include <coreplugin/icore.h>
#include "../coreconstants.h"
#include "../icontext.h"
#include "../icore.h"
#include "../idocument.h"
#include <utils/qtcassert.h>
#include <QApplication>

View File

@@ -10,7 +10,7 @@
#include "ieditor.h"
#include "ieditorfactory.h"
#include <coreplugin/idocument.h>
#include "../idocument.h"
#include <QList>
#include <QObject>

View File

@@ -7,14 +7,13 @@
#include "editormanager_p.h"
#include "documentmodel.h"
#include "documentmodel_p.h"
#include "../actionmanager/actionmanager.h"
#include "../editormanager/ieditor.h"
#include "../editortoolbar.h"
#include "../findplaceholder.h"
#include "../icore.h"
#include "../minisplitter.h"
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/editormanager/ieditor.h>
#include <coreplugin/editortoolbar.h>
#include <coreplugin/findplaceholder.h>
#include <coreplugin/icore.h>
#include <coreplugin/locator/locatorconstants.h>
#include <coreplugin/minisplitter.h>
#include <utils/algorithm.h>
#include <utils/infobar.h>
#include <utils/qtcassert.h>

View File

@@ -5,13 +5,13 @@
#include "editorarea.h"
#include "editormanager_p.h"
#include "../coreconstants.h"
#include "../icontext.h"
#include "../icore.h"
#include "../locator/locatormanager.h"
#include "../minisplitter.h"
#include <aggregation/aggregate.h>
#include <coreplugin/coreconstants.h>
#include <coreplugin/icontext.h>
#include <coreplugin/icore.h>
#include <coreplugin/locator/locatormanager.h>
#include <coreplugin/minisplitter.h>
#include <utils/qtcassert.h>
#include <QStatusBar>

View File

@@ -3,8 +3,8 @@
#pragma once
#include <coreplugin/core_global.h>
#include <coreplugin/icontext.h>
#include "../core_global.h"
#include "../icontext.h"
#include <QMetaType>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/core_global.h>
#include "../core_global.h"
#include <utils/id.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/inavigationwidgetfactory.h>
#include "../inavigationwidgetfactory.h"
namespace Core::Internal {

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/core_global.h>
#include "core_global.h"
#include <utils/environment.h>
#include <utils/filepath.h>

View File

@@ -8,6 +8,7 @@
#include "findtoolwindow.h"
#include "ifindfilter.h"
#include "searchresultwindow.h"
#include "textfindconstants.h"
#include "../actionmanager/actioncontainer.h"
#include "../actionmanager/actionmanager.h"
#include "../actionmanager/command.h"

View File

@@ -3,7 +3,7 @@
#pragma once
#include "textfindconstants.h"
#include "../core_global.h"
#include <utils/filesearch.h>

View File

@@ -6,11 +6,11 @@
#include "ifindfilter.h"
#include "findplugin.h"
#include "optionspopup.h"
#include "textfindconstants.h"
#include "../actionmanager/actioncontainer.h"
#include "../actionmanager/actionmanager.h"
#include "../actionmanager/command.h"
#include "../coreicons.h"
#include "../coreplugin.h"
#include "../coreplugintr.h"
#include "../findplaceholder.h"
#include "../icontext.h"

View File

@@ -3,15 +3,15 @@
#pragma once
#include <QHash>
#include <QPointer>
#include <QVector>
#include <coreplugin/core_global.h>
#include "../core_global.h"
#include <utils/id.h>
#include <utils/theme/theme.h>
#include <QHash>
#include <QPointer>
#include <QVector>
QT_BEGIN_NAMESPACE
class QAbstractScrollArea;
class QScrollBar;

View File

@@ -3,7 +3,7 @@
#pragma once
#include "textfindconstants.h"
#include "../core_global.h"
#include <utils/filesearch.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include "textfindconstants.h"
#include "../core_global.h"
#include <utils/filesearch.h>

View File

@@ -3,8 +3,9 @@
#include "itemviewfind.h"
#include "../findplaceholder.h"
#include <aggregation/aggregate.h>
#include <coreplugin/findplaceholder.h>
#include <QModelIndex>
#include <QTextCursor>

View File

@@ -3,7 +3,7 @@
#include "optionspopup.h"
#include <coreplugin/actionmanager/actionmanager.h>
#include "../actionmanager/actionmanager.h"
#include <utils/qtcassert.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/core_global.h>
#include "../core_global.h"
#include <utils/id.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/ioutputpane.h>
#include "../ioutputpane.h"
#include <utils/searchresultitem.h>

View File

@@ -3,8 +3,6 @@
#pragma once
#include <coreplugin/core_global.h>
#include <QMetaType>
#include <QFlags>
#include <QTextDocument>

View File

@@ -7,7 +7,6 @@
#include "actionmanager/command.h"
#include "coreicons.h"
#include "coreplugintr.h"
#include "diffservice.h"
#include "documentmanager.h"
#include "editormanager/editormanager.h"
#include "editormanager/ieditor.h"
@@ -19,8 +18,6 @@
#include <extensionsystem/pluginmanager.h>
#include <texteditor/textdocument.h>
#include <utils/algorithm.h>
#include <utils/filecrumblabel.h>
#include <utils/filepath.h>

View File

@@ -1,15 +1,14 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "dialogs/restartdialog.h"
#include "dialogs/ioptionspage.h"
#include "generalsettings.h"
#include "coreconstants.h"
#include "coreplugintr.h"
#include "icore.h"
#include "themechooser.h"
#include <coreplugin/dialogs/restartdialog.h>
#include <coreplugin/dialogs/ioptionspage.h>
#include <extensionsystem/pluginmanager.h>
#include <utils/algorithm.h>

View File

@@ -3,8 +3,8 @@
#pragma once
#include <coreplugin/core_global.h>
#include <coreplugin/featureprovider.h>
#include "core_global.h"
#include "featureprovider.h"
#include <QIcon>
#include <QObject>

View File

@@ -3,7 +3,7 @@
#include "commandlocator.h"
#include <coreplugin/actionmanager/command.h>
#include "../actionmanager/command.h"
#include <utils/stringutils.h>

View File

@@ -3,10 +3,9 @@
#pragma once
#include "../core_global.h"
#include "ilocatorfilter.h"
#include <coreplugin/core_global.h>
namespace Core {
class CORE_EXPORT DirectoryFilter : public ILocatorFilter

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/core_global.h>
#include "../core_global.h"
#include <solutions/tasking/tasktree.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/locator/ilocatorfilter.h>
#include "ilocatorfilter.h"
class JavaScriptEngine;

View File

@@ -4,15 +4,13 @@
#pragma once
#include "ilocatorfilter.h"
#include "../actionmanager/command.h"
#include <coreplugin/actionmanager/command.h>
#include <extensionsystem/iplugin.h>
#include <QObject>
#include <QTimer>
#include <functional>
namespace Tasking { class TaskTree; }
namespace Core {

View File

@@ -2,10 +2,9 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "../coreplugin.h"
#include "../testdatadir.h"
#include "locatorfiltertest.h"
#include <coreplugin/testdatadir.h>
#include <utils/algorithm.h>
#include <utils/fileutils.h>

View File

@@ -6,9 +6,9 @@
#include "ilocatorfilter.h"
#include "locator.h"
#include "locatorwidget.h"
#include "../icore.h"
#include <aggregation/aggregate.h>
#include <coreplugin/icore.h>
#include <extensionsystem/pluginmanager.h>
#include <utils/qtcassert.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/core_global.h>
#include "../core_global.h"
#include <QObject>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/dialogs/ioptionspage.h>
#include "../dialogs/ioptionspage.h"
namespace Core::Internal {

View File

@@ -4,8 +4,7 @@
#include "opendocumentsfilter.h"
#include "../coreplugintr.h"
#include <coreplugin/editormanager/documentmodel.h>
#include "../editormanager/documentmodel.h"
#include <extensionsystem/pluginmanager.h>

View File

@@ -5,7 +5,7 @@
#include "ilocatorfilter.h"
#include <coreplugin/core_global.h>
#include "../core_global.h"
#include <QDialog>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/dialogs/ioptionspage.h>
#include "dialogs/ioptionspage.h"
namespace Core::Internal {

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/core_global.h>
#include "core_global.h"
#include <utils/id.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/minisplitter.h>
#include "minisplitter.h"
#include <utils/id.h>
#include <utils/store.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/core_global.h>
#include "../core_global.h"
#include <utils/id.h>

View File

@@ -3,7 +3,7 @@
#pragma once
#include <coreplugin/core_global.h>
#include "../core_global.h"
#include <utils/id.h>

View File

@@ -1,6 +1,12 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "progressmanager_p.h"
#include "../icore.h"
#include <utils/utilsicons.h>
#include <QGuiApplication>
#include <QVariant>
#include <QMainWindow>
@@ -12,11 +18,6 @@
#include <QLabel>
#include <qpa/qplatformnativeinterface.h>
#include <coreplugin/icore.h>
#include <utils/utilsicons.h>
#include "progressmanager_p.h"
// for windows progress bar
#ifndef __GNUC__
# define CALLBACK WINAPI

View File

@@ -3,8 +3,7 @@
#include "rightpane.h"
#include <coreplugin/imode.h>
#include <coreplugin/modemanager.h>
#include "modemanager.h"
#include <utils/qtcsettings.h>

View File

@@ -17,8 +17,6 @@
#include <extensionsystem/pluginmanager.h>
#include <extensionsystem/pluginspec.h>
#include <texteditor/texteditor.h>
#include <utils/algorithm.h>
#include <utils/filepath.h>
#include <utils/macroexpander.h>

View File

@@ -3,11 +3,10 @@
#include "sessionmodel.h"
#include "actionmanager/actionmanager.h"
#include "session.h"
#include "sessiondialog.h"
#include <coreplugin/actionmanager/actionmanager.h>
#include <utils/algorithm.h>
#include <utils/fileutils.h>
#include <utils/stringutils.h>

View File

@@ -2,7 +2,8 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "textdocument.h"
#include <coreplugin/editormanager/editormanager.h>
#include "editormanager/editormanager.h"
#include <QDebug>
#include <QTextCodec>

View File

@@ -3,9 +3,9 @@
#pragma once
#include <utils/id.h>
#include "dialogs/ioptionspage.h"
#include <coreplugin/dialogs/ioptionspage.h>
#include <utils/id.h>
#include <QWidget>

View File

@@ -18,8 +18,6 @@
#include <utils/infobar.h>
#include <utils/qtcassert.h>
#include <vcsbase/vcsbaseconstants.h>
#include <QList>
#include <QMap>
#include <QMessageBox>

View File

@@ -5,6 +5,7 @@
#include "cppeditor_global.h"
#include <texteditor/blockrange.h>
#include <texteditor/codeassist/assistenums.h>
#include <texteditor/texteditor.h>

View File

@@ -7,11 +7,12 @@
#include "cppeditortr.h"
#include "cppmodelmanager.h"
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/find/searchresultwindow.h>
#include <coreplugin/find/textfindconstants.h>
#include <coreplugin/icore.h>
#include <coreplugin/progressmanager/futureprogress.h>
#include <coreplugin/progressmanager/progressmanager.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/find/searchresultwindow.h>
#include <projectexplorer/project.h>
#include <projectexplorer/projectexplorer.h>

View File

@@ -12,6 +12,7 @@
#include <coreplugin/coreconstants.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/fileutils.h>
#include <coreplugin/find/textfindconstants.h>
#include <coreplugin/icore.h>
#include <coreplugin/messagemanager.h>

View File

@@ -13,6 +13,7 @@
#include <coreplugin/documentmanager.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/find/ifindsupport.h>
#include <coreplugin/find/textfindconstants.h>
#include <coreplugin/icore.h>
#include <coreplugin/progressmanager/futureprogress.h>
#include <coreplugin/progressmanager/progressmanager.h>

View File

@@ -5,7 +5,6 @@
#include "texteditor_global.h"
#include "blockrange.h"
#include "codeassist/assistenums.h"
#include "indenter.h"
#include "refactoroverlay.h"