diff options
| author | ruki <[email protected]> | 2020-05-30 23:34:23 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-30 23:34:23 +0800 |
| commit | f432fd004a28db20d312fb68dfd10734ba7a2295 (patch) | |
| tree | f3b9f0f34394f76fc1b1fef143d1a752c7a45533 /xmake/rules/xcode/info_plist/xmake.lua | |
| parent | d50200be0abb94e7e627e7a25b5bab65d420eb16 (diff) | |
improve to show progress
Diffstat (limited to 'xmake/rules/xcode/info_plist/xmake.lua')
| -rw-r--r-- | xmake/rules/xcode/info_plist/xmake.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/rules/xcode/info_plist/xmake.lua b/xmake/rules/xcode/info_plist/xmake.lua index 21a514e47..5f4894824 100644 --- a/xmake/rules/xcode/info_plist/xmake.lua +++ b/xmake/rules/xcode/info_plist/xmake.lua @@ -31,6 +31,7 @@ rule("xcode.info_plist") import("core.base.option") import("core.theme.theme") import("core.project.depend") + import("private.utils.process") -- check assert(path.filename(sourcefile) == "Info.plist", "we only support Info.plist file!") @@ -47,12 +48,7 @@ rule("xcode.info_plist") 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}processing.xcode.$(mode) %s", sourcefile) - else - cprint("${color.build.object}processing.xcode.$(mode) %s", sourcefile) - end + progress.show(opt.progress, "${color.build.object}processing.xcode.$(mode) %s", sourcefile) -- process and generate Info.plist local info_plist_file = path.join(target:rule("xcode.framework") and resourcesdir or contentsdir, path.filename(sourcefile)) |
