forked from qt-creator/qt-creator
Axivion: Generate qrc file at build time
Change-Id: I37099d3f55dbcd6426dabd761536794d87c3f983 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -4,7 +4,6 @@ add_qtc_plugin(Axivion
|
|||||||
DEPENDS Qt::Network Qt::Widgets ExtensionSystem Utils
|
DEPENDS Qt::Network Qt::Widgets ExtensionSystem Utils
|
||||||
LONG_DESCRIPTION_MD AxivionDescription.md
|
LONG_DESCRIPTION_MD AxivionDescription.md
|
||||||
SOURCES
|
SOURCES
|
||||||
axivion.qrc
|
|
||||||
axivionperspective.cpp axivionperspective.h
|
axivionperspective.cpp axivionperspective.h
|
||||||
axivionplugin.cpp axivionplugin.h
|
axivionplugin.cpp axivionplugin.h
|
||||||
axivionsettings.cpp axivionsettings.h
|
axivionsettings.cpp axivionsettings.h
|
||||||
@@ -16,3 +15,10 @@ add_qtc_plugin(Axivion
|
|||||||
dynamiclistmodel.cpp dynamiclistmodel.h
|
dynamiclistmodel.cpp dynamiclistmodel.h
|
||||||
issueheaderview.cpp issueheaderview.h
|
issueheaderview.cpp issueheaderview.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
file(GLOB_RECURSE images RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} images/*)
|
||||||
|
qtc_add_resources(Axivion "images"
|
||||||
|
PREFIX "/axivion"
|
||||||
|
BASE "."
|
||||||
|
FILES ${images}
|
||||||
|
)
|
||||||
|
@@ -13,7 +13,6 @@ QtcPlugin {
|
|||||||
Depends { name: "Qt.network" }
|
Depends { name: "Qt.network" }
|
||||||
|
|
||||||
files: [
|
files: [
|
||||||
"axivion.qrc",
|
|
||||||
"axivionperspective.cpp",
|
"axivionperspective.cpp",
|
||||||
"axivionperspective.h",
|
"axivionperspective.h",
|
||||||
"axivionplugin.cpp",
|
"axivionplugin.cpp",
|
||||||
@@ -48,4 +47,12 @@ QtcPlugin {
|
|||||||
files: "AxivionDescription.md"
|
files: "AxivionDescription.md"
|
||||||
fileTags: "pluginjson.longDescription"
|
fileTags: "pluginjson.longDescription"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Group {
|
||||||
|
name: "images"
|
||||||
|
files: "images/*.png"
|
||||||
|
fileTags: "qt.core.resource_data"
|
||||||
|
Qt.core.resourcePrefix: "/axivion"
|
||||||
|
Qt.core.resourceSourceBase: sourceDirectory
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,34 +0,0 @@
|
|||||||
<RCC>
|
|
||||||
<qresource prefix="/axivion">
|
|
||||||
<file>images/axivion.png</file>
|
|
||||||
<file>images/axivion@2x.png</file>
|
|
||||||
<file>images/button-AV.png</file>
|
|
||||||
<file>images/button-AV@2x.png</file>
|
|
||||||
<file>images/button-CL.png</file>
|
|
||||||
<file>images/button-CL@2x.png</file>
|
|
||||||
<file>images/button-CY.png</file>
|
|
||||||
<file>images/button-CY@2x.png</file>
|
|
||||||
<file>images/button-DE.png</file>
|
|
||||||
<file>images/button-DE@2x.png</file>
|
|
||||||
<file>images/button-MV.png</file>
|
|
||||||
<file>images/button-MV@2x.png</file>
|
|
||||||
<file>images/button-SV.png</file>
|
|
||||||
<file>images/button-SV@2x.png</file>
|
|
||||||
<file>images/dashboard.png</file>
|
|
||||||
<file>images/dashboard@2x.png</file>
|
|
||||||
<file>images/error.png</file>
|
|
||||||
<file>images/error@2x.png</file>
|
|
||||||
<file>images/local.png</file>
|
|
||||||
<file>images/local@2x.png</file>
|
|
||||||
<file>images/marker.png</file>
|
|
||||||
<file>images/marker@2x.png</file>
|
|
||||||
<file>images/nodata.png</file>
|
|
||||||
<file>images/nodata@2x.png</file>
|
|
||||||
<file>images/sortAsc.png</file>
|
|
||||||
<file>images/sortAsc@2x.png</file>
|
|
||||||
<file>images/sortDesc.png</file>
|
|
||||||
<file>images/sortDesc@2x.png</file>
|
|
||||||
<file>images/user.png</file>
|
|
||||||
<file>images/user@2x.png</file>
|
|
||||||
</qresource>
|
|
||||||
</RCC>
|
|
Reference in New Issue
Block a user