summaryrefslogtreecommitdiff
path: root/xmake/actions/build/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-05-24 20:42:12 +0800
committerruki <[email protected]>2016-05-24 20:42:12 +0800
commit487eda865797da4fc81ba8ba8ec932dc2fb64cec (patch)
treea731cdefc5607d65e03219d1e1625f62518eb52c /xmake/actions/build/builder.lua
parente932acd1440734e5977bd23176c9ac7a133f6b53 (diff)
impl extractor using ar
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