forked from qt-creator/qt-creator
Boot2Qt: Generate qrc file at build time
Change-Id: Ifeb1dc122efdf25f822934a560bffd6b95779c3f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
@@ -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
|
||||
}
|
||||
}
|
||||
|
@@ -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>
|
Reference in New Issue
Block a user