updated `qt.qrc` rule
The rule should now be able to cache resources files version and rebuild resources if something changed.
@@ -57,6 +57,14 @@ rule("qt.qrc")
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)
batchcmds:set_depmtime(os.mtime(objectfile))
