Commit 34b7af4
authored
fix(qt): rcc tracks the files a .qrc references (#42)
`qrc_files` read `node::text` of the `<file>` element, which the XML reader never
sets: an element's characters live in its unnamed text children, as the writer
itself reads them. Every `.qrc`-referenced file was therefore left out of the
`rcc` action's inputs, so a changed resource -- an embedded zip, say -- did not
regenerate the resource source.
The text children are now joined and trimmed, which is what a path split by an
intervening comment and padded with whitespace needs.
A `plugin-logic` case drives the real Qt rule and asserts both resource files
appear in the emitted `qt:rcc:app` action: one plain path, one aliased path whose
text the reader splits. Measured on this machine with the released engine: 22 of
23 cases without the fix, with both resource assertions failing, and 23 of 23
with it.1 parent 6dc3490 commit 34b7af4
2 files changed
Lines changed: 34 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
260 | 265 | | |
261 | 266 | | |
262 | 267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
449 | 477 | | |
450 | 478 | | |
451 | 479 | | |
| |||
0 commit comments