summaryrefslogtreecommitdiff
path: root/xmake/rules/qt/moc/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-30 23:34:23 +0800
committerruki <[email protected]>2020-05-30 23:34:23 +0800
commitf432fd004a28db20d312fb68dfd10734ba7a2295 (patch)
treef3b9f0f34394f76fc1b1fef143d1a752c7a45533 /xmake/rules/qt/moc/xmake.lua
parentd50200be0abb94e7e627e7a25b5bab65d420eb16 (diff)
improve to show progress
Diffstat (limited to 'xmake/rules/qt/moc/xmake.lua')
-rw-r--r--xmake/rules/qt/moc/xmake.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/rules/qt/moc/xmake.lua b/xmake/rules/qt/moc/xmake.lua
index d162b4e11..aad412628 100644
--- a/xmake/rules/qt/moc/xmake.lua
+++ b/xmake/rules/qt/moc/xmake.lua
@@ -48,6 +48,7 @@ rule("qt.moc")
import("core.project.config")
import("core.tool.compiler")
import("core.project.depend")
+ import("private.utils.progress")
-- get c++ source file for moc
--
@@ -84,12 +85,7 @@ rule("qt.moc")
end
-- trace progress info
- cprintf("${color.build.progress}" .. theme.get("text.build.progress_format") .. ":${clear} ", opt.progress)
- if option.get("verbose") then
- cprint("${dim color.build.object}compiling.qt.moc %s", sourcefile)
- else
- cprint("${color.build.object}compiling.qt.moc %s", sourcefile)
- end
+ progress.show(opt.progress, "${color.build.object}compiling.qt.moc %s", sourcefile)
-- generate c++ source file for moc
moc.generate(target, sourcefile, sourcefile_moc)