From f432fd004a28db20d312fb68dfd10734ba7a2295 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 30 May 2020 23:34:23 +0800 Subject: improve to show progress --- xmake/rules/xcode/bundle/xmake.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'xmake/rules/xcode/bundle/xmake.lua') diff --git a/xmake/rules/xcode/bundle/xmake.lua b/xmake/rules/xcode/bundle/xmake.lua index 3fc54c783..183f6cb84 100644 --- a/xmake/rules/xcode/bundle/xmake.lua +++ b/xmake/rules/xcode/bundle/xmake.lua @@ -60,6 +60,7 @@ rule("xcode.bundle") import("core.theme.theme") import("core.project.depend") import("private.tools.codesign") + import("private.utils.progress") -- get bundle and resources directory local bundledir = path.absolute(target:data("xcode.bundle.rootdir")) @@ -74,12 +75,7 @@ rule("xcode.bundle") 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.target}generating.xcode.$(mode) %s", path.filename(bundledir)) - else - cprint("${color.build.target}generating.xcode.$(mode) %s", path.filename(bundledir)) - end + progress.show(opt.progress, "${color.build.target}generating.xcode.$(mode) %s", path.filename(bundledir)) -- copy target file if is_plat("macosx") then -- cgit v1.3.1