forked from qt-creator/qt-creator
WebAssembly: Generate qrc file at build time
Change-Id: I999fd200a399b222273c1611802f23df106aa65e Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -2,7 +2,6 @@ add_qtc_plugin(WebAssembly
|
||||
DEPENDS Qt::Core
|
||||
PLUGIN_DEPENDS Core ProjectExplorer QtSupport
|
||||
SOURCES
|
||||
webassembly.qrc
|
||||
webassembly_global.h
|
||||
webassemblyconstants.h
|
||||
webassemblydevice.cpp webassemblydevice.h
|
||||
@@ -21,3 +20,13 @@ extend_qtc_plugin(WebAssembly
|
||||
webassembly_test.cpp
|
||||
webassembly_test.h
|
||||
)
|
||||
|
||||
qtc_add_resources(WebAssembly "images"
|
||||
PREFIX "/webassembly"
|
||||
BASE "."
|
||||
FILES
|
||||
images/webassemblydevice.png
|
||||
images/webassemblydevice@2x.png
|
||||
images/webassemblydevicesmall.png
|
||||
images/webassemblydevicesmall@2x.png
|
||||
)
|
||||
|
@@ -12,7 +12,6 @@ QtcPlugin {
|
||||
Depends { name: "QtSupport" }
|
||||
|
||||
files: [
|
||||
"webassembly.qrc",
|
||||
"webassembly_global.h",
|
||||
"webassemblyconstants.h",
|
||||
"webassemblydevice.cpp",
|
||||
@@ -37,4 +36,18 @@ QtcPlugin {
|
||||
"webassembly_test.h",
|
||||
]
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "images"
|
||||
prefix: "images/"
|
||||
files: [
|
||||
"webassemblydevice.png",
|
||||
"webassemblydevice@2x.png",
|
||||
"webassemblydevicesmall.png",
|
||||
"webassemblydevicesmall@2x.png",
|
||||
]
|
||||
fileTags: "qt.core.resource_data"
|
||||
Qt.core.resourcePrefix: "webassembly"
|
||||
Qt.core.resourceSourceBase: sourceDirectory
|
||||
}
|
||||
}
|
||||
|
@@ -1,8 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/webassembly">
|
||||
<file>images/webassemblydevice.png</file>
|
||||
<file>images/webassemblydevice@2x.png</file>
|
||||
<file>images/webassemblydevicesmall.png</file>
|
||||
<file>images/webassemblydevicesmall@2x.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
Reference in New Issue
Block a user