summaryrefslogtreecommitdiff
path: root/xmake
diff options
context:
space:
mode:
authorruki <[email protected]>2025-07-07 22:46:51 +0800
committerruki <[email protected]>2025-07-07 22:46:51 +0800
commit9fa8a32a5ef8b10106bc7715f87d7baddddf1c0a (patch)
tree87cae373595eac7fddee88bf26eb543871747fca /xmake
parent5929eeebf059979fd4a8952b74696a2c4ea33750 (diff)
fix qt rule #6570
Diffstat (limited to 'xmake')
-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 696a7ffdd..6c94fc9d2 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")
- before_buildcmd_file(function (target, batchcmds, sourcefile, opt)
+ on_preparecmd_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 369a146bd..7f2023be2 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)
- before_buildcmd_file(function (target, batchcmds, sourcefile_ui, opt)
+ on_preparecmd_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")