summaryrefslogtreecommitdiff
path: root/xmake/rules/qt/ui/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/ui/xmake.lua
parentd50200be0abb94e7e627e7a25b5bab65d420eb16 (diff)
improve to show progress
Diffstat (limited to 'xmake/rules/qt/ui/xmake.lua')
-rw-r--r--xmake/rules/qt/ui/xmake.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/rules/qt/ui/xmake.lua b/xmake/rules/qt/ui/xmake.lua
index 636beb478..88b23150e 100644
--- a/xmake/rules/qt/ui/xmake.lua
+++ b/xmake/rules/qt/ui/xmake.lua
@@ -46,6 +46,7 @@ rule("qt.ui")
import("core.theme.theme")
import("core.project.config")
import("core.project.depend")
+ import("private.utils.progress")
-- get uic
local uic = target:data("qt.uic")
@@ -65,12 +66,7 @@ rule("qt.ui")
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.ui %s", sourcefile_ui)
- else
- cprint("${color.build.object}compiling.qt.ui %s", sourcefile_ui)
- end
+ progress.show(opt.progress, "${color.build.object}compiling.qt.ui %s", sourcefile_ui)
-- ensure ui header file directory
if not os.isdir(headerfile_dir) then