summaryrefslogtreecommitdiff
path: root/xmake/scripts/action
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-10 11:10:25 +0800
committerruki <[email protected]>2015-06-10 11:10:25 +0800
commit177400e62e74d5ad3539573cfd3143cd19d3d30f (patch)
treeb6fa15adda822c3cb1d6b8c2967bb2c6690e572c /xmake/scripts/action
parent7a2f8c098db24b46c37ab0db79d6e511b1681a77 (diff)
add project menu
Diffstat (limited to 'xmake/scripts/action')
-rw-r--r--xmake/scripts/action/_config.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/xmake/scripts/action/_config.lua b/xmake/scripts/action/_config.lua
index 9ef333abe..027c22288 100644
--- a/xmake/scripts/action/_config.lua
+++ b/xmake/scripts/action/_config.lua
@@ -117,15 +117,13 @@ function _config.menu()
, " - debug"
, " - release"
, " - profile" }
- , {'-', "host", "kv", xmake._HOST, "The current host environment." }
+ , {nil, "host", "kv", xmake._HOST, "The current host environment." }
- , {}
- , {'o', "buildir", "kv", "build", "Set the build directory." }
- , {'k', "packages", "kv", "pkg", "Set the packages directory." }
+ -- the options for project
+ , function () return project.menu() end
, {}
- , {nil, "ccache", "kv", "auto", "Enable or disable the c/c++ compiler cache."
- , " --ccache=[y|n]" }
+ , {nil, "ccache", "kv", "auto", "Enable or disable the c/c++ compiler cache." }
, {}
, {nil, "cross", "kv", nil, "The cross toolchains prefix"
@@ -167,6 +165,7 @@ function _config.menu()
, " 1. The Given Command Argument"
, " 2. The Envirnoment Variable: XMAKE_PROJECT_DIR"
, " 3. The Current Directory" }
+ , {'o', "buildir", "kv", "build", "Set the build directory." }
, {}