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/android/_android.lua | |
| parent | 99582c402d5580877247344cca1f708f15e16d7b (diff) | |
custom option menu for platform
Diffstat (limited to 'xmake/scripts/platform/android/_android.lua')
| -rw-r--r-- | xmake/scripts/platform/android/_android.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/xmake/scripts/platform/android/_android.lua b/xmake/scripts/platform/android/_android.lua index d79236a28..b91aa4eca 100644 --- a/xmake/scripts/platform/android/_android.lua +++ b/xmake/scripts/platform/android/_android.lua @@ -38,6 +38,30 @@ function _android.init(configs) configs.archs.armv6 = {} end +-- get the option menu for action: xmake config or global +function _android.menu(action) + + -- init config option menu + _android._MENU_CONFIG = _android._MENU_CONFIG or + { {} + , {nil, "ndk", "kv", nil, "The NDK directory" } + , {nil, "ndk_sdkver", "kv", "auto", "The SDK version for NDK" } + , } + + -- init global option menu + _android._MENU_GLOBAL = _android._MENU_GLOBAL or + { {} + , {nil, "ndk", "kv", nil, "The NDK directory" } + , {nil, "ndk_sdkver", "kv", "auto", "The SDK version for NDK" } + , } + + -- get the option menu + if action == "config" then + return _android._MENU_CONFIG + elseif action == "global" then + return _android._MENU_GLOBAL + end +end -- return module: _android return _android |
