diff options
| author | ruki <[email protected]> | 2016-07-09 22:34:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-07-09 22:34:16 +0800 |
| commit | f54223a97ba93b02128df84d52d3efe7abd2a36a (patch) | |
| tree | b6d5e5d1b4d70bd1eeadf936751eb50930f3bab6 /xmake/tools/link.lua | |
| parent | 0d3075a0739eff0e28db11889a62ed3db8f4ab9f (diff) | |
add archiver and extractor
Diffstat (limited to 'xmake/tools/link.lua')
| -rwxr-xr-x | xmake/tools/link.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/xmake/tools/link.lua b/xmake/tools/link.lua index 85c97fb95..3b57e551a 100755 --- a/xmake/tools/link.lua +++ b/xmake/tools/link.lua @@ -110,11 +110,14 @@ function link(objectfiles, targetfile, flags) os.run(linkcmd(objectfiles, targetfile, flags)) end --- run command -function run(...) +-- make the archive command +function archivecmd(objectfiles, targetfile, flags) + return linkcmd(objectfiles, targetfile, flags) +end - -- run it - os.run(...) +-- archive the library file +function archive(objectfiles, targetfile, flags) + link(objectfile, targetfile, flags) end -- check the given flags |
