summaryrefslogtreecommitdiff
path: root/xmake/rules/qt/moc/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-03 22:35:18 +0800
committerruki <[email protected]>2019-01-03 09:31:51 +0800
commit22a3a1c21f41205fa5ea71a4fd0a0d9caa2b8963 (patch)
treedd5690fcf3b4168f0ba36e0c00aa84b82d728c1f /xmake/rules/qt/moc/xmake.lua
parentec40e9e8f26530aef3fc785a8c138b4710046475 (diff)
add build.progress_format style
Diffstat (limited to 'xmake/rules/qt/moc/xmake.lua')
-rw-r--r--xmake/rules/qt/moc/xmake.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/rules/qt/moc/xmake.lua b/xmake/rules/qt/moc/xmake.lua
index 094937902..74ce3f24b 100644
--- a/xmake/rules/qt/moc/xmake.lua
+++ b/xmake/rules/qt/moc/xmake.lua
@@ -48,6 +48,7 @@ rule("qt.moc")
-- imports
import("moc")
import("core.base.option")
+ import("core.theme.theme")
import("core.project.config")
import("core.tool.compiler")
import("core.project.depend")
@@ -81,10 +82,11 @@ 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("${color.build.progress}[%3d%%]:${dim} compiling.qt.moc %s", opt.progress, headerfile_moc)
+ cprint("${color.build.object.verbose}compiling.qt.moc %s", headerfile_moc)
else
- cprint("${color.build.progress}[%3d%%]:${clear} compiling.qt.moc %s", opt.progress, headerfile_moc)
+ cprint("${color.build.object}compiling.qt.moc %s", headerfile_moc)
end
-- generate c++ source file for moc