diff options
| author | Louis Bailleau <[email protected]> | 2022-02-02 13:18:47 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-02 13:18:47 +0100 |
| commit | 2a756e30800a818bfaad63ba4631e12f7901fa9f (patch) | |
| tree | d1ad2651de77f2a05a855dcf55d74a77505bec33 | |
| parent | 0a6020b64b903aa67ed8c674135b8f26464246ba (diff) | |
updated `qt.qrc` rule
The rule should now be able to cache resources files version and rebuild resources if something changed.
| -rw-r--r-- | xmake/rules/qt/qrc/xmake.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/rules/qt/qrc/xmake.lua b/xmake/rules/qt/qrc/xmake.lua index 64e37d2ab..da7678ad8 100644 --- a/xmake/rules/qt/qrc/xmake.lua +++ b/xmake/rules/qt/qrc/xmake.lua @@ -56,6 +56,14 @@ rule("qt.qrc") batchcmds:mkdir(sourcefile_dir) batchcmds:vrunv(rcc, {"-name", path.basename(sourcefile_qrc), sourcefile_qrc, "-o", sourcefile_cpp}) batchcmds:compile(sourcefile_cpp, objectfile) + + -- get qrc resources files + local outdata = os.iorunv(rcc, {"-name", path.basename(sourcefile_qrc), sourcefile_qrc, "-list"}) + + -- add resources files to batch + for file in outdata:gmatch("([^\n]*)\n?") do + batchcmds:add_depfiles(file) + end -- add deps batchcmds:add_depfiles(sourcefile_qrc) |
