qbs build: Remove unneeded Project items

Also update type descriptions.

Change-Id: I2b7d8814913cfb72cb8280601338ab763d8fabe6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2023-09-14 08:22:23 +02:00
parent a7bbb986dd
commit c816a9b523
23 changed files with 2519 additions and 2612 deletions

View File

@@ -17,6 +17,7 @@
"qbs.Environment", "qbs.Environment",
"qbs.File", "qbs.File",
"qbs.FileInfo", "qbs.FileInfo",
"qbs.Host",
"qbs.ModUtils", "qbs.ModUtils",
"qbs.PathTools", "qbs.PathTools",
"qbs.PkgConfig", "qbs.PkgConfig",

View File

@@ -1,9 +1,6 @@
import qbs QtcLibrary {
Project {
name: "ptyqt" name: "ptyqt"
QtcLibrary {
Depends { name: "Qt.core" } Depends { name: "Qt.core" }
Depends { name: "Qt.network"; condition: qbs.targetOS.contains("windows") } Depends { name: "Qt.network"; condition: qbs.targetOS.contains("windows") }
Depends { name: "winpty"; condition: qbs.targetOS.contains("windows") } Depends { name: "winpty"; condition: qbs.targetOS.contains("windows") }
@@ -42,4 +39,3 @@ Project {
cpp.includePaths: base.concat(exportingProduct.sourceDirectory) cpp.includePaths: base.concat(exportingProduct.sourceDirectory)
} }
} }
}

View File

@@ -1,4 +1,3 @@
Project {
QtcLibrary { QtcLibrary {
name: "vterm" name: "vterm"
type: "staticlibrary" type: "staticlibrary"
@@ -31,4 +30,3 @@ Project {
cpp.includePaths: base.concat("include") cpp.includePaths: base.concat("include")
} }
} }
}

View File

@@ -1,6 +1,3 @@
import qbs 1.0
Project {
QtcLibrary { QtcLibrary {
name: "yaml-cpp" name: "yaml-cpp"
@@ -103,4 +100,3 @@ Project {
cpp.defines: base.concat(["YAML_CPP_DLL"]) cpp.defines: base.concat(["YAML_CPP_DLL"])
} }
} }
}

View File

@@ -1,9 +1,5 @@
import qbs 1.0
Project {
name: "Aggregation"
QtcLibrary { QtcLibrary {
name: "Aggregation"
Depends { name: "Qt.core" } Depends { name: "Qt.core" }
cpp.defines: base.concat("AGGREGATION_LIBRARY") cpp.defines: base.concat("AGGREGATION_LIBRARY")
@@ -13,5 +9,4 @@ Project {
"aggregation_global.h", "aggregation_global.h",
] ]
} }
}

View File

@@ -1,9 +1,6 @@
import qbs 1.0 QtcLibrary {
Project {
name: "CPlusPlus" name: "CPlusPlus"
QtcLibrary {
cpp.includePaths: base.concat("../3rdparty") cpp.includePaths: base.concat("../3rdparty")
cpp.defines: base.concat([ cpp.defines: base.concat([
"NDEBUG", "NDEBUG",
@@ -132,4 +129,3 @@ Project {
] ]
} }
} }
}

View File

@@ -1,9 +1,6 @@
import qbs 1.0 QtcLibrary {
Project {
name: "ExtensionSystem" name: "ExtensionSystem"
QtcLibrary {
cpp.defines: base.concat([ cpp.defines: base.concat([
"EXTENSIONSYSTEM_LIBRARY", "EXTENSIONSYSTEM_LIBRARY",
"IDE_TEST_DIR=\".\"" "IDE_TEST_DIR=\".\""
@@ -42,4 +39,3 @@ Project {
Depends { name: "Qt.core" } Depends { name: "Qt.core" }
} }
} }
}

View File

@@ -1,9 +1,6 @@
import qbs 1.0 QtcLibrary {
Project {
name: "LanguageServerProtocol" name: "LanguageServerProtocol"
QtcLibrary {
Depends { name: "Utils" } Depends { name: "Utils" }
cpp.defines: base.concat("LANGUAGESERVERPROTOCOL_LIBRARY") cpp.defines: base.concat("LANGUAGESERVERPROTOCOL_LIBRARY")
@@ -51,4 +48,3 @@ Project {
"workspace.h", "workspace.h",
] ]
} }
}

View File

@@ -1,9 +1,6 @@
import qbs 1.0 QtcLibrary {
Project {
name: "LanguageUtils" name: "LanguageUtils"
QtcLibrary {
cpp.defines: base.concat(["LANGUAGEUTILS_LIBRARY"]) cpp.defines: base.concat(["LANGUAGEUTILS_LIBRARY"])
cpp.optimization: "fast" cpp.optimization: "fast"
@@ -17,4 +14,3 @@ Project {
"languageutils_global.h", "languageutils_global.h",
] ]
} }
}

View File

@@ -1,9 +1,6 @@
import qbs 1.0 QtcLibrary {
Project {
name: "QmlDebug" name: "QmlDebug"
QtcLibrary {
cpp.defines: base.concat("QMLDEBUG_LIBRARY") cpp.defines: base.concat("QMLDEBUG_LIBRARY")
Depends { name: "Qt"; submodules: ["gui", "network"] } Depends { name: "Qt"; submodules: ["gui", "network"] }
@@ -37,4 +34,3 @@ Project {
"qpacketprotocol.h", "qpacketprotocol.h",
] ]
} }
}

View File

@@ -1,9 +1,6 @@
import qbs 1.0 QtcLibrary {
Project {
name: "QmlJS" name: "QmlJS"
QtcLibrary {
cpp.defines: base.concat(["QMLJS_LIBRARY"]) cpp.defines: base.concat(["QMLJS_LIBRARY"])
cpp.optimization: "fast" cpp.optimization: "fast"
@@ -80,4 +77,3 @@ Project {
Depends { name: "LanguageUtils" } Depends { name: "LanguageUtils" }
} }
} }
}

View File

@@ -1,11 +1,6 @@
import qbs 1.0 QtcLibrary {
import QtcLibrary
Project {
name: "Tracing" name: "Tracing"
QtcLibrary {
Depends { name: "Qt"; submodules: ["qml", "quick", "gui"] } Depends { name: "Qt"; submodules: ["qml", "quick", "gui"] }
Depends { name: "Qt.testlib"; condition: project.withAutotests } Depends { name: "Qt.testlib"; condition: project.withAutotests }
Depends { name: "Utils" } Depends { name: "Utils" }
@@ -49,4 +44,3 @@ Project {
cpp.defines: base.concat("TRACING_LIBRARY") cpp.defines: base.concat("TRACING_LIBRARY")
} }
}

View File

@@ -1,14 +1,9 @@
import qbs 1.0
import qbs.FileInfo import qbs.FileInfo
Project {
name: "Utils"
QtcLibrary { QtcLibrary {
name: "Utils"
cpp.includePaths: base.concat("mimetypes2", ".") cpp.includePaths: base.concat("mimetypes2", ".")
cpp.defines: base.concat([ cpp.defines: base.concat(["UTILS_LIBRARY"])
"UTILS_LIBRARY"
])
cpp.dynamicLibraries: { cpp.dynamicLibraries: {
var libs = []; var libs = [];
if (qbs.targetOS.contains("windows")) { if (qbs.targetOS.contains("windows")) {
@@ -478,4 +473,3 @@ Project {
cpp.includePaths: base.concat("mimetypes2") cpp.includePaths: base.concat("mimetypes2")
} }
} }
}

View File

@@ -1,9 +1,6 @@
import qbs 1.0 QtcPlugin {
Project {
name: "Android" name: "Android"
QtcPlugin {
Depends { name: "Qt"; submodules: ["widgets", "xml", "network"] } Depends { name: "Qt"; submodules: ["widgets", "xml", "network"] }
Depends { name: "Core" } Depends { name: "Core" }
Depends { name: "Debugger" } Depends { name: "Debugger" }
@@ -123,4 +120,3 @@ Project {
] ]
} }
} }
}

View File

@@ -1,11 +1,8 @@
import qbs 1.0
import qbs.FileInfo import qbs.FileInfo
import qbs.Utilities import qbs.Utilities
Project {
name: "Core"
QtcPlugin { QtcPlugin {
name: "Core"
Depends { Depends {
name: "Qt" name: "Qt"
submodules: ["widgets", "xml", "network", "qml", "sql", "printsupport"] submodules: ["widgets", "xml", "network", "qml", "sql", "printsupport"]
@@ -380,4 +377,3 @@ Project {
Depends { name: "Utils" } Depends { name: "Utils" }
} }
} }
}

View File

@@ -1,14 +1,12 @@
import qbs 1.0 QtcPlugin {
Project {
name: "Debugger" name: "Debugger"
QtcPlugin { Depends { name: "Qt"; submodules: ["network", "widgets"] }
Depends { name: "Qt"; submodules: ["widgets", "network"] }
Depends { name: "Aggregation" } Depends { name: "Aggregation" }
Depends { name: "CPlusPlus" } Depends { name: "CPlusPlus" }
Depends { name: "QmlDebug" }
Depends { name: "LanguageUtils" } Depends { name: "LanguageUtils" }
Depends { name: "QmlDebug" }
Depends { name: "QmlJS" } Depends { name: "QmlJS" }
Depends { name: "Utils" } Depends { name: "Utils" }
@@ -18,18 +16,12 @@ Project {
Depends { name: "QtSupport" } Depends { name: "QtSupport" }
Depends { name: "TextEditor" } Depends { name: "TextEditor" }
pluginTestDepends: [ pluginRecommends: ["BinEditor"]
"QmakeProjectManager" pluginTestDepends: ["QmakeProjectManager"]
]
cpp.includePaths: base.concat([project.sharedSourcesDir + "/registryaccess"]) cpp.includePaths: base.concat([project.sharedSourcesDir + "/registryaccess"])
cpp.enableExceptions: true cpp.enableExceptions: true
pluginRecommends: [
"CppEditor",
"BinEditor"
]
Group { Group {
name: "General" name: "General"
files: [ files: [
@@ -267,4 +259,3 @@ Project {
Depends { name: "CPlusPlus" } Depends { name: "CPlusPlus" }
} }
} }
}

View File

@@ -1,12 +1,9 @@
import qbs.Utilities import qbs.Utilities
Project {
name: "Help"
QtcPlugin { QtcPlugin {
name: "Help" name: "Help"
Depends { name: "Qt"; submodules: ["help", "network", "sql"]; } Depends { name: "Qt"; submodules: ["help", "network", "sql"] }
Depends { name: "Qt.printsupport" } Depends { name: "Qt.printsupport" }
Depends { name: "Qt.webenginewidgets"; required: false } Depends { name: "Qt.webenginewidgets"; required: false }
@@ -87,4 +84,3 @@ Project {
] ]
} }
} }
}

View File

@@ -1,9 +1,6 @@
import qbs 1.0 QtcPlugin {
Project {
name: "ProjectExplorer" name: "ProjectExplorer"
QtcPlugin {
Depends { name: "Qt"; submodules: ["widgets", "xml", "network", "qml"] } Depends { name: "Qt"; submodules: ["widgets", "xml", "network", "qml"] }
Depends { name: "Aggregation" } Depends { name: "Aggregation" }
Depends { name: "Utils" } Depends { name: "Utils" }
@@ -258,4 +255,3 @@ Project {
Depends { name: "Qt.network" } Depends { name: "Qt.network" }
} }
} }
}

View File

@@ -1,9 +1,6 @@
import qbs 1.0 QtcPlugin {
Project {
name: "QmakeProjectManager" name: "QmakeProjectManager"
QtcPlugin {
Depends { name: "Qt"; submodules: ["widgets", "network"] } Depends { name: "Qt"; submodules: ["widgets", "network"] }
Depends { name: "QmlJS" } Depends { name: "QmlJS" }
Depends { name: "Utils" } Depends { name: "Utils" }
@@ -82,4 +79,3 @@ Project {
Depends { name: "QtSupport" } Depends { name: "QtSupport" }
} }
} }
}

View File

@@ -1,9 +1,6 @@
import qbs 1.0 QtcPlugin {
Project {
name: "QtSupport" name: "QtSupport"
QtcPlugin {
Depends { name: "Qt"; submodules: ["widgets", "xml"]; } Depends { name: "Qt"; submodules: ["widgets", "xml"]; }
Depends { name: "Utils" } Depends { name: "Utils" }
@@ -119,4 +116,3 @@ Project {
] ]
} }
} }
}

View File

@@ -1,9 +1,6 @@
import qbs 1.0 QtcPlugin {
Project {
name: "RemoteLinux" name: "RemoteLinux"
QtcPlugin {
Depends { name: "Qt.widgets" } Depends { name: "Qt.widgets" }
Depends { name: "QmlDebug" } Depends { name: "QmlDebug" }
Depends { name: "Utils" } Depends { name: "Utils" }
@@ -75,4 +72,3 @@ Project {
Depends { name: "Core" } Depends { name: "Core" }
} }
} }
}

View File

@@ -1,15 +1,13 @@
import qbs 1.0 QtcPlugin {
Project {
name: "ResourceEditor" name: "ResourceEditor"
QtcPlugin {
Depends { name: "Qt"; submodules: ["widgets", "xml"] } Depends { name: "Qt"; submodules: ["widgets", "xml"] }
Depends { name: "Aggregation" } Depends { name: "Aggregation" }
Depends { name: "ProjectExplorer" }
Depends { name: "Utils" } Depends { name: "Utils" }
Depends { name: "Core" } Depends { name: "Core" }
Depends { name: "ProjectExplorer" }
cpp.defines: base.concat(["RESOURCEEDITOR_LIBRARY"]) cpp.defines: base.concat(["RESOURCEEDITOR_LIBRARY"])
@@ -36,4 +34,3 @@ Project {
] ]
} }
} }
}

View File

@@ -1,11 +1,9 @@
import qbs 1.0
import qbs.FileInfo import qbs.FileInfo
import qbs.Environment import qbs.Environment
Project { QtcPlugin {
name: "TextEditor" name: "TextEditor"
QtcPlugin {
Depends { name: "Qt"; submodules: ["widgets", "xml", "network", "printsupport"] } Depends { name: "Qt"; submodules: ["widgets", "xml", "network", "printsupport"] }
Depends { name: "Aggregation" } Depends { name: "Aggregation" }
Depends { name: "Utils" } Depends { name: "Utils" }
@@ -234,4 +232,3 @@ Project {
] ]
} }
} }
}