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")
|
cpp.sonamePrefix: qbs.targetOS.contains("macos")
|
||||||
? "@rpath"
|
? "@rpath"
|
||||||
: undefined
|
: undefined
|
||||||
|
|
||||||
|
Qt.core.resourceSourceBase: sourceDirectory
|
||||||
|
Qt.core.resourcePrefix: '/' + name.toLowerCase()
|
||||||
|
|
||||||
pluginjson.useVcsData: false
|
pluginjson.useVcsData: false
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
|
@@ -102,8 +102,6 @@ QtcPlugin {
|
|||||||
"androiddevicesmall@2x.png",
|
"androiddevicesmall@2x.png",
|
||||||
]
|
]
|
||||||
fileTags: "qt.core.resource_data"
|
fileTags: "qt.core.resource_data"
|
||||||
Qt.core.resourcePrefix: "/android"
|
|
||||||
Qt.core.resourceSourceBase: sourceDirectory
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QtcTestFiles {
|
QtcTestFiles {
|
||||||
|
@@ -20,8 +20,6 @@ QtcPlugin {
|
|||||||
Depends { name: "Qt.testlib"; condition: qtc.withPluginTests }
|
Depends { name: "Qt.testlib"; condition: qtc.withPluginTests }
|
||||||
Depends { name: "Qt.widgets" }
|
Depends { name: "Qt.widgets" }
|
||||||
|
|
||||||
Qt.core.resourceSourceBase: sourceDirectory
|
|
||||||
|
|
||||||
files: [
|
files: [
|
||||||
"autotesticons.h",
|
"autotesticons.h",
|
||||||
"autotest_global.h", "autotesttr.h",
|
"autotest_global.h", "autotesttr.h",
|
||||||
@@ -129,13 +127,13 @@ QtcPlugin {
|
|||||||
name: "test data"
|
name: "test data"
|
||||||
files: "unit_test/**/*"
|
files: "unit_test/**/*"
|
||||||
fileTags: qtc.withPluginTests ? ["qt.core.resource_data"] : []
|
fileTags: qtc.withPluginTests ? ["qt.core.resource_data"] : []
|
||||||
|
Qt.core.resourcePrefix: ""
|
||||||
}
|
}
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "images"
|
name: "images"
|
||||||
files: "images/*.png"
|
files: "images/*.png"
|
||||||
fileTags: "qt.core.resource_data"
|
fileTags: "qt.core.resource_data"
|
||||||
Qt.core.resourcePrefix: "autotest"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
|
@@ -53,7 +53,5 @@ QtcPlugin {
|
|||||||
name: "images"
|
name: "images"
|
||||||
files: "images/*.png"
|
files: "images/*.png"
|
||||||
fileTags: "qt.core.resource_data"
|
fileTags: "qt.core.resource_data"
|
||||||
Qt.core.resourcePrefix: "/axivion"
|
|
||||||
Qt.core.resourceSourceBase: sourceDirectory
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -65,6 +65,5 @@ QtcPlugin {
|
|||||||
]
|
]
|
||||||
fileTags: "qt.core.resource_data"
|
fileTags: "qt.core.resource_data"
|
||||||
Qt.core.resourcePrefix: "/qdb"
|
Qt.core.resourcePrefix: "/qdb"
|
||||||
Qt.core.resourceSourceBase: sourceDirectory
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -24,9 +24,6 @@ QtcPlugin {
|
|||||||
cpp.defines: "_SCL_SECURE_NO_WARNINGS"
|
cpp.defines: "_SCL_SECURE_NO_WARNINGS"
|
||||||
}
|
}
|
||||||
|
|
||||||
Qt.core.resourcePrefix: "cppeditor"
|
|
||||||
Qt.core.resourceSourceBase: sourceDirectory
|
|
||||||
|
|
||||||
files: [
|
files: [
|
||||||
"abstracteditorsupport.cpp",
|
"abstracteditorsupport.cpp",
|
||||||
"abstracteditorsupport.h",
|
"abstracteditorsupport.h",
|
||||||
|
@@ -23,9 +23,6 @@ QtcPlugin {
|
|||||||
cpp.includePaths: base.concat([project.sharedSourcesDir + "/registryaccess"])
|
cpp.includePaths: base.concat([project.sharedSourcesDir + "/registryaccess"])
|
||||||
cpp.enableExceptions: true
|
cpp.enableExceptions: true
|
||||||
|
|
||||||
Qt.core.resourcePrefix: "debugger"
|
|
||||||
Qt.core.resourceSourceBase: sourceDirectory
|
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "General"
|
name: "General"
|
||||||
files: [
|
files: [
|
||||||
|
@@ -70,8 +70,6 @@ QtcPlugin {
|
|||||||
name: "images"
|
name: "images"
|
||||||
prefix: "images/"
|
prefix: "images/"
|
||||||
fileTags: "qt.core.resource_data"
|
fileTags: "qt.core.resource_data"
|
||||||
Qt.core.resourcePrefix: "/languageclient"
|
|
||||||
Qt.core.resourceSourceBase: sourceDirectory
|
|
||||||
files: [
|
files: [
|
||||||
"languageclient.png",
|
"languageclient.png",
|
||||||
"languageclient@2x.png",
|
"languageclient@2x.png",
|
||||||
|
@@ -89,14 +89,12 @@ QtcPlugin {
|
|||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "Lua scripts rcc"
|
name: "Lua scripts rcc"
|
||||||
Qt.core.resourcePrefix: "lua/scripts/"
|
|
||||||
fileTags: "qt.core.resource_data"
|
fileTags: "qt.core.resource_data"
|
||||||
files: "scripts/**"
|
files: "scripts/**"
|
||||||
}
|
}
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "Lua images rcc"
|
name: "Lua images rcc"
|
||||||
Qt.core.resourcePrefix: "lua/images/"
|
|
||||||
fileTags: "qt.core.resource_data"
|
fileTags: "qt.core.resource_data"
|
||||||
files: "images/**"
|
files: "images/**"
|
||||||
}
|
}
|
||||||
|
@@ -75,7 +75,6 @@ Project {
|
|||||||
]
|
]
|
||||||
fileTags: "qt.core.resource_data"
|
fileTags: "qt.core.resource_data"
|
||||||
Qt.core.resourcePrefix: "/mesonproject"
|
Qt.core.resourcePrefix: "/mesonproject"
|
||||||
Qt.core.resourceSourceBase: sourceDirectory
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -245,8 +245,6 @@ QtcPlugin {
|
|||||||
condition: qtc.withPluginTests
|
condition: qtc.withPluginTests
|
||||||
files: ["testdata/**"]
|
files: ["testdata/**"]
|
||||||
fileTags: ["qt.core.resource_data"]
|
fileTags: ["qt.core.resource_data"]
|
||||||
Qt.core.resourcePrefix: "/projectexplorer"
|
|
||||||
Qt.core.resourceSourceBase: path
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Export {
|
Export {
|
||||||
|
@@ -69,7 +69,6 @@ QtcPlugin {
|
|||||||
name: "images"
|
name: "images"
|
||||||
files: "images/*.png"
|
files: "images/*.png"
|
||||||
fileTags: "qt.core.resource_data"
|
fileTags: "qt.core.resource_data"
|
||||||
Qt.core.resourcePrefix: "/scxmleditor"
|
|
||||||
Qt.core.resourceSourceBase: product.sourceDirectory + "/common"
|
Qt.core.resourceSourceBase: product.sourceDirectory + "/common"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -47,7 +47,5 @@ QtcPlugin {
|
|||||||
"webassemblydevicesmall@2x.png",
|
"webassemblydevicesmall@2x.png",
|
||||||
]
|
]
|
||||||
fileTags: "qt.core.resource_data"
|
fileTags: "qt.core.resource_data"
|
||||||
Qt.core.resourcePrefix: "webassembly"
|
|
||||||
Qt.core.resourceSourceBase: sourceDirectory
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user