When having Qt resources in a meson subdir, meson prepends twice the subdir name in resource file dependencies. Here it will set 'subfolder/subfolder/resources/thing.png' as dependencie for stuff3.qrc. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>pull/2956/head
parent
bdfcecd2c6
commit
4e6630690a
5 changed files with 23 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||||||
|
#include <QImage> |
||||||
|
|
||||||
|
int main(int argc, char **argv) { |
||||||
|
Q_INIT_RESOURCE(stuff3); |
||||||
|
QImage qi(":/thing.png"); |
||||||
|
if(qi.width() != 640) { |
||||||
|
return 1; |
||||||
|
} |
||||||
|
return 0; |
||||||
|
} |
@ -0,0 +1,4 @@ |
|||||||
|
|
||||||
|
qresources = qtmodule.preprocess(qresources : 'resources/stuff3.qrc') |
||||||
|
|
||||||
|
app = executable('subfolder', 'main.cpp', qresources, dependencies : qtdep) |
@ -0,0 +1,6 @@ |
|||||||
|
<!DOCTYPE RCC> |
||||||
|
<RCC version="1.0"> |
||||||
|
<qresource> |
||||||
|
<file>thing.png</file> |
||||||
|
</qresource> |
||||||
|
</RCC> |
After Width: | Height: | Size: 39 KiB |
Loading…
Reference in new issue