diff options
| author | ruki <[email protected]> | 2020-10-28 22:44:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-10-28 22:44:22 +0800 |
| commit | c8397516448cbdc51bc73173455ac62332b98737 (patch) | |
| tree | e6e1bd30e5677bfd65cca3609b24db97d2b6f427 /xmake/modules/core/tools/windres.lua | |
| parent | 2aa699bb2c0e7e031ea7cfe98b0e60ff9eae073b (diff) | |
remove some unused codes
Diffstat (limited to 'xmake/modules/core/tools/windres.lua')
| -rw-r--r-- | xmake/modules/core/tools/windres.lua | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/xmake/modules/core/tools/windres.lua b/xmake/modules/core/tools/windres.lua index 85aad2a20..e9fe0935f 100644 --- a/xmake/modules/core/tools/windres.lua +++ b/xmake/modules/core/tools/windres.lua @@ -43,12 +43,12 @@ function nf_includedir(self, dir) end -- make the compile arguments list -function _compargv1(self, sourcefile, objectfile, flags) +function compargv(self, sourcefile, objectfile, flags) return self:program(), table.join(flags, sourcefile, objectfile) end -- compile the source file -function _compile1(self, sourcefile, objectfile, dependinfo, flags) +function compile(self, sourcefile, objectfile, dependinfo, flags) -- ensure the object directory os.mkdir(path.directory(objectfile)) @@ -57,7 +57,7 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags) try { function () - local outdata, errdata = os.iorunv(_compargv1(self, sourcefile, objectfile, flags)) + local outdata, errdata = os.iorunv(compargv(self, sourcefile, objectfile, flags)) return (outdata or "") .. (errdata or "") end, catch @@ -81,24 +81,3 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags) } end --- make the compile arguments list -function compargv(self, sourcefiles, objectfile, flags) - - -- only support single source file now - assert(type(sourcefiles) ~= "table", "'object:sources' not support!") - - -- for only single source file - return _compargv1(self, sourcefiles, objectfile, flags) -end - --- compile the source file -function compile(self, sourcefiles, objectfile, dependinfo, flags) - - -- only support single source file now - assert(type(sourcefiles) ~= "table", "'object:sources' not support!") - - -- for only single source file - _compile1(self, sourcefiles, objectfile, dependinfo, flags) -end - - |
