summaryrefslogtreecommitdiff
path: root/xmake/rules/wdk/tracewpp/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/wdk/tracewpp/xmake.lua
parentec40e9e8f26530aef3fc785a8c138b4710046475 (diff)
add build.progress_format style
Diffstat (limited to 'xmake/rules/wdk/tracewpp/xmake.lua')
-rw-r--r--xmake/rules/wdk/tracewpp/xmake.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/rules/wdk/tracewpp/xmake.lua b/xmake/rules/wdk/tracewpp/xmake.lua
index 094807dee..9458ead83 100644
--- a/xmake/rules/wdk/tracewpp/xmake.lua
+++ b/xmake/rules/wdk/tracewpp/xmake.lua
@@ -62,6 +62,7 @@ rule("wdk.tracewpp")
-- imports
import("core.base.option")
+ import("core.theme.theme")
import("core.project.depend")
-- get tracewpp
@@ -102,10 +103,11 @@ rule("wdk.tracewpp")
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.wdk.tracewpp %s", opt.progress, sourcefile)
+ cprint("${color.build.object.verbose}compiling.wdk.tracewpp %s", sourcefile)
else
- cprint("${color.build.progress}[%3d%%]:${clear} compiling.wdk.tracewpp %s", opt.progress, sourcefile)
+ cprint("${color.build.object}compiling.wdk.tracewpp %s", sourcefile)
end
-- ensure the output directory