GLSLEditor: Generate qrc file at build time

Change-Id: I310768cf5b70cf06e6619a333bb350384f57d8ab
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2025-04-16 17:12:59 +02:00
parent 4bdad423f0
commit 523145f600
3 changed files with 14 additions and 7 deletions

View File

@@ -6,10 +6,15 @@ add_qtc_plugin(GLSLEditor
glslautocompleter.cpp glslautocompleter.h
glslcompletionassist.cpp glslcompletionassist.h
glsleditor.cpp glsleditor.h
glsleditor.qrc
glsleditorconstants.h
glsleditorplugin.cpp
glsleditortr.h
glslhighlighter.cpp glslhighlighter.h
glslindenter.cpp glslindenter.h
)
qtc_add_resources(GLSLEditor "images"
PREFIX "/glsleditor"
BASE "."
FILES images/glslfile.png
)

View File

@@ -19,7 +19,6 @@ QtcPlugin {
"glslcompletionassist.h",
"glsleditor.cpp",
"glsleditor.h",
"glsleditor.qrc",
"glsleditorconstants.h",
"glsleditorplugin.cpp",
"glsleditortr.h",
@@ -28,4 +27,12 @@ QtcPlugin {
"glslindenter.cpp",
"glslindenter.h",
]
Group {
name: "images"
files: [
"images/glslfile.png",
]
fileTags: "qt.core.resource_data"
}
}

View File

@@ -1,5 +0,0 @@
<RCC>
<qresource prefix="/glsleditor">
<file>images/glslfile.png</file>
</qresource>
</RCC>