diff options
| author | ruki <[email protected]> | 2016-05-24 20:42:12 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-05-24 20:42:12 +0800 |
| commit | 487eda865797da4fc81ba8ba8ec932dc2fb64cec (patch) | |
| tree | a731cdefc5607d65e03219d1e1625f62518eb52c /xmake/actions/build/builder.lua | |
| parent | e932acd1440734e5977bd23176c9ac7a133f6b53 (diff) | |
impl extractor using ar
Diffstat (limited to 'xmake/actions/build/builder.lua')
| -rwxr-xr-x | xmake/actions/build/builder.lua | 12 |
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 |
