Skip to content

Commit

Permalink
improve progress info
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jan 6, 2025
1 parent 1aa63e9 commit 1ce4271
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
8 changes: 6 additions & 2 deletions xmake/actions/build/kinds/binary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ function _do_link_target(target, opt)
local dryrun = option.get("dry-run")
local depvalues = {linkinst:program(), linkflags}
depend.on_changed(function ()
local targetfile = target:targetfile()
progress.show(opt.progress, "${color.build.target}linking.$(mode) %s", path.filename(targetfile))
local filename = target:filename()
if target:namespace() then
filename = target:namespace() .. "::" .. filename
end
progress.show(opt.progress, "${color.build.target}linking.$(mode) %s", filename)

local targetfile = target:targetfile()
local objectfiles = target:objectfiles()
local verbose = option.get("verbose")
if verbose then
Expand Down
8 changes: 6 additions & 2 deletions xmake/actions/build/kinds/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ function _do_link_target(target, opt)
local dryrun = option.get("dry-run")
local depvalues = {linkinst:program(), linkflags}
depend.on_changed(function ()
local targetfile = target:targetfile()
progress.show(opt.progress, "${color.build.target}linking.$(mode) %s", path.filename(targetfile))
local filename = target:filename()
if target:namespace() then
filename = target:namespace() .. "::" .. filename
end
progress.show(opt.progress, "${color.build.target}linking.$(mode) %s", filename)

local targetfile = target:targetfile()
local objectfiles = target:objectfiles()
local verbose = option.get("verbose")
if verbose then
Expand Down
8 changes: 6 additions & 2 deletions xmake/actions/build/kinds/static.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ function _do_link_target(target, opt)
local dryrun = option.get("dry-run")
local depvalues = {linkinst:program(), linkflags}
depend.on_changed(function ()
local targetfile = target:targetfile()
progress.show(opt.progress, "${color.build.target}archiving.$(mode) %s", path.filename(targetfile))
local filename = target:filename()
if target:namespace() then
filename = target:namespace() .. "::" .. filename
end
progress.show(opt.progress, "${color.build.target}archiving.$(mode) %s", filename)

local targetfile = target:targetfile()
local objectfiles = target:objectfiles()
local verbose = option.get("verbose")
if verbose then
Expand Down

0 comments on commit 1ce4271

Please sign in to comment.