summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/linux/_linux.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-05-25 11:13:04 +0800
committerruki <[email protected]>2015-05-25 11:13:04 +0800
commitd3afea28dfea3709fde2296a090cf94598271047 (patch)
tree954d26f9ffd3ebd29a64cc9ecb585542d9d8d0fa /xmake/scripts/platform/linux/_linux.lua
parent99582c402d5580877247344cca1f708f15e16d7b (diff)
custom option menu for platform
Diffstat (limited to 'xmake/scripts/platform/linux/_linux.lua')
-rw-r--r--xmake/scripts/platform/linux/_linux.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/xmake/scripts/platform/linux/_linux.lua b/xmake/scripts/platform/linux/_linux.lua
index 2bc54e4c1..8aba6d7ec 100644
--- a/xmake/scripts/platform/linux/_linux.lua
+++ b/xmake/scripts/platform/linux/_linux.lua
@@ -38,6 +38,26 @@ function _linux.init(configs)
configs.archs.x64 = {}
end
+-- get the option menu for action: xmake config or global
+function _linux.menu(action)
+
+ -- init config option menu
+ _linux._MENU_CONFIG = _linux._MENU_CONFIG or
+ { {}
+ , {nil, "ar", "kv", "ar", "The library creator" }
+ , {nil, "arflags", "kv", nil, "The library creator flags" }
+ }
+
+ -- init global option menu
+ _linux._MENU_GLOBAL = _linux._MENU_GLOBAL or {}
+
+ -- get the option menu
+ if action == "config" then
+ return _linux._MENU_CONFIG
+ elseif action == "global" then
+ return _linux._MENU_GLOBAL
+ end
+end
-- return module: _linux
return _linux