Boot2Qt: Generate qrc file at build time

Change-Id: Ifeb1dc122efdf25f822934a560bffd6b95779c3f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2025-04-14 15:04:25 +02:00
parent e724e3e316
commit 8f54275827
3 changed files with 23 additions and 10 deletions

View File

@@ -3,7 +3,6 @@ add_qtc_plugin(Boot2Qt
DEPENDS Qt::Network
PLUGIN_DEPENDS Core Debugger ProjectExplorer QtSupport RemoteLinux
SOURCES
qdb.qrc
qdb_global.h
qdbconstants.h
qdbdevice.cpp qdbdevice.h
@@ -27,3 +26,12 @@ extend_qtc_plugin(Boot2Qt
qdbwatcher.cpp qdbwatcher.h
)
qtc_add_resources(Boot2Qt "images"
PREFIX "/qdb"
BASE "."
FILES
images/qdbdevice.png
images/qdbdevice@2x.png
images/qdbdevicesmall.png
images/qdbdevicesmall@2x.png
)

View File

@@ -16,7 +16,6 @@ QtcPlugin {
Group {
name: "General"
files: [
"qdb.qrc",
"qdbutils.cpp",
"qdbutils.h",
"qdbconstants.h",
@@ -54,4 +53,18 @@ QtcPlugin {
"qdbmessagetracker.h",
]
}
Group {
name: "images"
prefix: "images/"
files: [
"qdbdevice.png",
"qdbdevice@2x.png",
"qdbdevicesmall.png",
"qdbdevicesmall@2x.png",
]
fileTags: "qt.core.resource_data"
Qt.core.resourcePrefix: "/qdb"
Qt.core.resourceSourceBase: sourceDirectory
}
}

View File

@@ -1,8 +0,0 @@
<RCC>
<qresource prefix="/qdb">
<file>images/qdbdevice.png</file>
<file>images/qdbdevice@2x.png</file>
<file>images/qdbdevicesmall.png</file>
<file>images/qdbdevicesmall@2x.png</file>
</qresource>
</RCC>