forked from qt-creator/qt-creator
qbs build: Set Qt resource properties centrally
Change-Id: Icc9a0fd6e0d2720ac4f331893c5d0fc3da291b22 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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 {
|
||||
|
@@ -102,8 +102,6 @@ QtcPlugin {
|
||||
"androiddevicesmall@2x.png",
|
||||
]
|
||||
fileTags: "qt.core.resource_data"
|
||||
Qt.core.resourcePrefix: "/android"
|
||||
Qt.core.resourceSourceBase: sourceDirectory
|
||||
}
|
||||
|
||||
QtcTestFiles {
|
||||
|
@@ -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 {
|
||||
|
@@ -53,7 +53,5 @@ QtcPlugin {
|
||||
name: "images"
|
||||
files: "images/*.png"
|
||||
fileTags: "qt.core.resource_data"
|
||||
Qt.core.resourcePrefix: "/axivion"
|
||||
Qt.core.resourceSourceBase: sourceDirectory
|
||||
}
|
||||
}
|
||||
|
@@ -65,6 +65,5 @@ QtcPlugin {
|
||||
]
|
||||
fileTags: "qt.core.resource_data"
|
||||
Qt.core.resourcePrefix: "/qdb"
|
||||
Qt.core.resourceSourceBase: sourceDirectory
|
||||
}
|
||||
}
|
||||
|
@@ -24,9 +24,6 @@ QtcPlugin {
|
||||
cpp.defines: "_SCL_SECURE_NO_WARNINGS"
|
||||
}
|
||||
|
||||
Qt.core.resourcePrefix: "cppeditor"
|
||||
Qt.core.resourceSourceBase: sourceDirectory
|
||||
|
||||
files: [
|
||||
"abstracteditorsupport.cpp",
|
||||
"abstracteditorsupport.h",
|
||||
|
@@ -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: [
|
||||
|
@@ -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",
|
||||
|
@@ -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/**"
|
||||
}
|
||||
|
@@ -75,7 +75,6 @@ Project {
|
||||
]
|
||||
fileTags: "qt.core.resource_data"
|
||||
Qt.core.resourcePrefix: "/mesonproject"
|
||||
Qt.core.resourceSourceBase: sourceDirectory
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -245,8 +245,6 @@ QtcPlugin {
|
||||
condition: qtc.withPluginTests
|
||||
files: ["testdata/**"]
|
||||
fileTags: ["qt.core.resource_data"]
|
||||
Qt.core.resourcePrefix: "/projectexplorer"
|
||||
Qt.core.resourceSourceBase: path
|
||||
}
|
||||
|
||||
Export {
|
||||
|
@@ -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"
|
||||
}
|
||||
}
|
||||
|
@@ -47,7 +47,5 @@ QtcPlugin {
|
||||
"webassemblydevicesmall@2x.png",
|
||||
]
|
||||
fileTags: "qt.core.resource_data"
|
||||
Qt.core.resourcePrefix: "webassembly"
|
||||
Qt.core.resourceSourceBase: sourceDirectory
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user