qbs build: Set Qt resource properties centrally

Change-Id: Icc9a0fd6e0d2720ac4f331893c5d0fc3da291b22
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2025-04-16 17:24:38 +02:00
parent cf4f32df77
commit 4bdad423f0
13 changed files with 5 additions and 24 deletions

View File

@@ -34,6 +34,10 @@ QtcProduct {
cpp.sonamePrefix: qbs.targetOS.contains("macos")
? "@rpath"
: undefined
Qt.core.resourceSourceBase: sourceDirectory
Qt.core.resourcePrefix: '/' + name.toLowerCase()
pluginjson.useVcsData: false
Group {

View File

@@ -102,8 +102,6 @@ QtcPlugin {
"androiddevicesmall@2x.png",
]
fileTags: "qt.core.resource_data"
Qt.core.resourcePrefix: "/android"
Qt.core.resourceSourceBase: sourceDirectory
}
QtcTestFiles {

View File

@@ -20,8 +20,6 @@ QtcPlugin {
Depends { name: "Qt.testlib"; condition: qtc.withPluginTests }
Depends { name: "Qt.widgets" }
Qt.core.resourceSourceBase: sourceDirectory
files: [
"autotesticons.h",
"autotest_global.h", "autotesttr.h",
@@ -129,13 +127,13 @@ QtcPlugin {
name: "test data"
files: "unit_test/**/*"
fileTags: qtc.withPluginTests ? ["qt.core.resource_data"] : []
Qt.core.resourcePrefix: ""
}
Group {
name: "images"
files: "images/*.png"
fileTags: "qt.core.resource_data"
Qt.core.resourcePrefix: "autotest"
}
Group {

View File

@@ -53,7 +53,5 @@ QtcPlugin {
name: "images"
files: "images/*.png"
fileTags: "qt.core.resource_data"
Qt.core.resourcePrefix: "/axivion"
Qt.core.resourceSourceBase: sourceDirectory
}
}

View File

@@ -65,6 +65,5 @@ QtcPlugin {
]
fileTags: "qt.core.resource_data"
Qt.core.resourcePrefix: "/qdb"
Qt.core.resourceSourceBase: sourceDirectory
}
}

View File

@@ -24,9 +24,6 @@ QtcPlugin {
cpp.defines: "_SCL_SECURE_NO_WARNINGS"
}
Qt.core.resourcePrefix: "cppeditor"
Qt.core.resourceSourceBase: sourceDirectory
files: [
"abstracteditorsupport.cpp",
"abstracteditorsupport.h",

View File

@@ -23,9 +23,6 @@ QtcPlugin {
cpp.includePaths: base.concat([project.sharedSourcesDir + "/registryaccess"])
cpp.enableExceptions: true
Qt.core.resourcePrefix: "debugger"
Qt.core.resourceSourceBase: sourceDirectory
Group {
name: "General"
files: [

View File

@@ -70,8 +70,6 @@ QtcPlugin {
name: "images"
prefix: "images/"
fileTags: "qt.core.resource_data"
Qt.core.resourcePrefix: "/languageclient"
Qt.core.resourceSourceBase: sourceDirectory
files: [
"languageclient.png",
"languageclient@2x.png",

View File

@@ -89,14 +89,12 @@ QtcPlugin {
Group {
name: "Lua scripts rcc"
Qt.core.resourcePrefix: "lua/scripts/"
fileTags: "qt.core.resource_data"
files: "scripts/**"
}
Group {
name: "Lua images rcc"
Qt.core.resourcePrefix: "lua/images/"
fileTags: "qt.core.resource_data"
files: "images/**"
}

View File

@@ -75,7 +75,6 @@ Project {
]
fileTags: "qt.core.resource_data"
Qt.core.resourcePrefix: "/mesonproject"
Qt.core.resourceSourceBase: sourceDirectory
}
}

View File

@@ -245,8 +245,6 @@ QtcPlugin {
condition: qtc.withPluginTests
files: ["testdata/**"]
fileTags: ["qt.core.resource_data"]
Qt.core.resourcePrefix: "/projectexplorer"
Qt.core.resourceSourceBase: path
}
Export {

View File

@@ -69,7 +69,6 @@ QtcPlugin {
name: "images"
files: "images/*.png"
fileTags: "qt.core.resource_data"
Qt.core.resourcePrefix: "/scxmleditor"
Qt.core.resourceSourceBase: product.sourceDirectory + "/common"
}
}

View File

@@ -47,7 +47,5 @@ QtcPlugin {
"webassemblydevicesmall@2x.png",
]
fileTags: "qt.core.resource_data"
Qt.core.resourcePrefix: "webassembly"
Qt.core.resourceSourceBase: sourceDirectory
}
}