diff options
| author | GooRoo <[email protected]> | 2025-08-20 16:36:07 +0200 |
|---|---|---|
| committer | GooRoo <[email protected]> | 2025-08-20 16:36:07 +0200 |
| commit | 328ccd311ff96def7d093b898669259329b859db (patch) | |
| tree | 8214ae3315f2a0906056c12b43a0d3a0c4d7630f | |
| parent | d92f86baceb1092b78446ef65d3cb55483ea1540 (diff) | |
fix(qt.qmltyperegistrar): Extend dependencies for rebuild
- Add values (import name, import version) to dependencies.
- Add corresponding headers to dependencies as we need to re-generate `plugin.qmltypes`.
| -rw-r--r-- | xmake/rules/qt/qmltyperegistrar/xmake.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/rules/qt/qmltyperegistrar/xmake.lua b/xmake/rules/qt/qmltyperegistrar/xmake.lua index cf84c7db2..b7f9658e8 100644 --- a/xmake/rules/qt/qmltyperegistrar/xmake.lua +++ b/xmake/rules/qt/qmltyperegistrar/xmake.lua @@ -126,7 +126,8 @@ rule("qt.qmltyperegistrar") batchcmds:show_progress(opt.progress, "${color.build.object}compiling.qt.qmltyperegistrar %s", path.filename(sourcefile)) batchcmds:compile(sourcefile, objectfile) - batchcmds:add_depfiles(sourcefile) + batchcmds:add_depvalues({importname, majorversion, minorversion}) + batchcmds:add_depfiles(table.join(sourcebatch.sourcefiles, sourcefile)) batchcmds:set_depmtime(os.mtime(objectfile)) batchcmds:set_depcache(target:dependfile(objectfile)) end) |
