diff options
| -rw-r--r-- | xmake/rules/qt/moc/xmake.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/qt/ui/xmake.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/qt/moc/xmake.lua b/xmake/rules/qt/moc/xmake.lua index 6c94fc9d2..696a7ffdd 100644 --- a/xmake/rules/qt/moc/xmake.lua +++ b/xmake/rules/qt/moc/xmake.lua @@ -22,7 +22,7 @@ rule("qt.moc") add_deps("qt.env") add_orders("qt.ui", "qt.moc") set_extensions(".h", ".hpp") - on_preparecmd_file(function (target, batchcmds, sourcefile, opt) + before_buildcmd_file(function (target, batchcmds, sourcefile, opt) import("core.tool.compiler") import("lib.detect.find_file") diff --git a/xmake/rules/qt/ui/xmake.lua b/xmake/rules/qt/ui/xmake.lua index 7f2023be2..369a146bd 100644 --- a/xmake/rules/qt/ui/xmake.lua +++ b/xmake/rules/qt/ui/xmake.lua @@ -49,7 +49,7 @@ rule("qt.ui") target:data_set("qt.uic", uic) end) - on_preparecmd_file(function (target, batchcmds, sourcefile_ui, opt) + before_buildcmd_file(function (target, batchcmds, sourcefile_ui, opt) local uic = target:data("qt.uic") local headerfile_dir = path.join(target:autogendir(), "rules", "qt", "ui") local headerfile_ui = path.join(headerfile_dir, "ui_" .. path.basename(sourcefile_ui) .. ".h") |
