diff options
| author | ruki <[email protected]> | 2015-05-25 11:13:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-05-25 11:13:04 +0800 |
| commit | d3afea28dfea3709fde2296a090cf94598271047 (patch) | |
| tree | 954d26f9ffd3ebd29a64cc9ecb585542d9d8d0fa /xmake/scripts/platform/windows/_windows.lua | |
| parent | 99582c402d5580877247344cca1f708f15e16d7b (diff) | |
custom option menu for platform
Diffstat (limited to 'xmake/scripts/platform/windows/_windows.lua')
| -rw-r--r-- | xmake/scripts/platform/windows/_windows.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/xmake/scripts/platform/windows/_windows.lua b/xmake/scripts/platform/windows/_windows.lua index 56304ee51..7a31eabaa 100644 --- a/xmake/scripts/platform/windows/_windows.lua +++ b/xmake/scripts/platform/windows/_windows.lua @@ -39,6 +39,31 @@ function _windows.init(configs) configs.archs.x64 = {} 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 directory" } + , {nil, "vs_sdk", "kv", "auto", "The Microsoft Visual Studio SDK directory" } + , } + + -- init global option menu + _windows._MENU_GLOBAL = _windows._MENU_GLOBAL or + { {} + , {nil, "vs", "kv", "auto", "The Microsoft Visual Studio directory" } + , {nil, "vs_sdk", "kv", "auto", "The Microsoft Visual Studio SDK directory" } + , } + + -- 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 |
