diff options
| author | ruki <[email protected]> | 2015-06-04 15:46:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-04 15:46:43 +0800 |
| commit | 6c5fbedfe26db54b0bbb95fa9154ed759c7ad98f (patch) | |
| tree | c7a1d2ba8ee4076e7576df79a53c1dfaadf7f14b /xmake/scripts/platform/windows/windows.lua | |
| parent | 83295bd3a1b27f844759aeadbbdc23f51e2f2d89 (diff) | |
rebuild compiler and linker
Diffstat (limited to 'xmake/scripts/platform/windows/windows.lua')
| -rw-r--r-- | xmake/scripts/platform/windows/windows.lua | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/xmake/scripts/platform/windows/windows.lua b/xmake/scripts/platform/windows/windows.lua deleted file mode 100644 index 5a7b48c72..000000000 --- a/xmake/scripts/platform/windows/windows.lua +++ /dev/null @@ -1,87 +0,0 @@ ---!The Automatic Cross-platform Build Tool --- --- XMake is free software; you can redistribute it and/or modify --- it under the terms of the GNU Lesser General Public License as published by --- the Free Software Foundation; either version 2.1 of the License, or --- (at your option) any later version. --- --- XMake is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public License --- along with XMake; --- If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a> --- --- Copyright (C) 2009 - 2015, ruki All rights reserved. --- --- @author ruki --- @file _windows.lua --- - --- define module: _windows -local _windows = _windows or {} - --- load modules -local config = require("base/config") - --- init host -_windows._HOST = "windows" - --- init architectures -_windows._ARCHS = {"x86", "x64"} - --- make configure -function _windows.make(configs) - - -- init the file formats - configs.formats = {} - configs.formats.static = {"", ".lib"} - configs.formats.object = {"", ".obj"} - configs.formats.shared = {"", ".dll"} - configs.formats.binary = {"", ".exe"} - - -- init the toolchains - configs.tools = {} - configs.tools.make = "nmake" - - -- init the compiler - configs.compiler = {} - configs.compiler.cc = config.get("cc") or "cl.exe" - configs.compiler.cxx = config.get("cxx") or "cl.exe" - - -- init the linker - configs.linker = {} - configs.linker.binary = config.get("ld") or "link.exe" - configs.linker.static = config.get("ar") or "link.exe" - configs.linker.shared = config.get("sh") or "link.exe" - -end - --- get the option menu for action: xmake config or global -function _windows.menu(action) - - -- init config option menu - _windows._MENU_CONFIG = _windows._MENU_CONFIG or - { {} - , {nil, "vs", "kv", "auto", "The Microsoft Visual Studio" } - , } - - -- init global option menu - _windows._MENU_GLOBAL = _windows._MENU_GLOBAL or - { {} - , {nil, "vs", "kv", "auto", "The Microsoft Visual Studio" } - , } - - -- get the option menu - if action == "config" then - return _windows._MENU_CONFIG - elseif action == "global" then - return _windows._MENU_GLOBAL - end -end - - --- return module: _windows -return _windows |
