diff options
| author | ruki <[email protected]> | 2015-06-11 16:58:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-11 16:58:01 +0800 |
| commit | 882430fde4f0066e9adbbb664b98612fa4cf3bc1 (patch) | |
| tree | f5eeeb2961d22bfd68a80d95404e07396791336e /xmake/scripts/platform/windows/tools/nmake.lua | |
| parent | 76fd1ccaf43262df8fae3d9d3bfba1c2f0e04ca5 (diff) | |
add self for tools
Diffstat (limited to 'xmake/scripts/platform/windows/tools/nmake.lua')
| -rw-r--r-- | xmake/scripts/platform/windows/tools/nmake.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmake/scripts/platform/windows/tools/nmake.lua b/xmake/scripts/platform/windows/tools/nmake.lua index b7fc033c3..7d42dc706 100644 --- a/xmake/scripts/platform/windows/tools/nmake.lua +++ b/xmake/scripts/platform/windows/tools/nmake.lua @@ -68,18 +68,18 @@ function nmake._leave(name, old) end -- the init function -function nmake.init(name) +function nmake.init(self, name) -- save name - nmake._NAME = name or "nmake.exe" + self._NAME = name or "nmake.exe" -- is verbose? - nmake._VERBOSE = utils.ifelse(xmake._OPTIONS.verbose, "-v", "") + self._VERBOSE = utils.ifelse(xmake._OPTIONS.verbose, "-v", "") end -- the main function -function nmake.main(mkfile, target) +function nmake.main(self, mkfile, target) -- enter the vs environment local pathes = nmake._enter("path") @@ -90,9 +90,9 @@ function nmake.main(mkfile, target) -- make command local cmd = nil if mkfile and os.isfile(mkfile) then - cmd = string.format("%s /f %s %s VERBOSE=%s 2> %s", nmake._NAME, mkfile, target or "", nmake._VERBOSE, xmake._NULDEV) + cmd = string.format("%s /f %s %s VERBOSE=%s 2> %s", self._NAME, mkfile, target or "", self._VERBOSE, xmake._NULDEV) else - cmd = string.format("%s %s VERBOSE=%s 2> %s", nmake._NAME, target or "", nmake._VERBOSE, xmake._NULDEV) + cmd = string.format("%s %s VERBOSE=%s 2> %s", self._NAME, target or "", self._VERBOSE, xmake._NULDEV) end -- done |
