summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-07-12 00:59:26 +0800
committerruki <[email protected]>2025-07-12 00:59:26 +0800
commit84f20e464e3438603d0b35d4ab528c4924faee66 (patch)
tree8471c3cfd1a7d31e767c516d3a7c9d21620a974c
parent0a065aa92925c8f6b19ad943e708216c311f86a1 (diff)
revert qt/moc
-rw-r--r--xmake/rules/qt/moc/xmake.lua2
-rw-r--r--xmake/rules/qt/ui/xmake.lua2
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")