From 84f20e464e3438603d0b35d4ab528c4924faee66 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 12 Jul 2025 00:59:26 +0800 Subject: revert qt/moc --- xmake/rules/qt/moc/xmake.lua | 2 +- 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") -- cgit v1.3.1