summaryrefslogtreecommitdiff
path: root/xmake/actions/build/builder.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/actions/build/builder.lua')
-rwxr-xr-xxmake/actions/build/builder.lua12
1 files changed, 10 insertions, 2 deletions
diff --git a/xmake/actions/build/builder.lua b/xmake/actions/build/builder.lua
index 9027b5737..33a1e47d2 100755
--- a/xmake/actions/build/builder.lua
+++ b/xmake/actions/build/builder.lua
@@ -49,8 +49,16 @@ end
-- build the object for the *.[a|lib] source file
function _build_object_for_static(target, sourcefile, objectfile, percent)
- raise("not implemented")
- -- TODO
+ -- trace
+ print("[%02d%%]: inserting.$(mode) %s", percent, sourcefile)
+
+ -- trace verbose info
+ if option.get("verbose") then
+ print("ex %s %s", sourcefile, objectfile)
+ end
+
+ -- extract the static library to object directory
+ tool.run("ex", sourcefile, path.directory(objectfile))
end
-- build object