summaryrefslogtreecommitdiff
path: root/xmake/core/action/debug.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-01-25 21:19:13 +0800
committerruki <[email protected]>2016-02-15 19:10:26 +0800
commite1c814493e1b884b4e35a0ff337ed5742ea96caf (patch)
tree6afe59b0001928e2ab9d22de42a837bd007ee9f2 /xmake/core/action/debug.lua
parent80f231295375a965495885e015963ad563d2935a (diff)
rename action filename
Diffstat (limited to 'xmake/core/action/debug.lua')
-rw-r--r--xmake/core/action/debug.lua89
1 files changed, 89 insertions, 0 deletions
diff --git a/xmake/core/action/debug.lua b/xmake/core/action/debug.lua
new file mode 100644
index 000000000..c5d657196
--- /dev/null
+++ b/xmake/core/action/debug.lua
@@ -0,0 +1,89 @@
+--!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 action_debug.lua
+--
+
+-- define module: action_debug
+local action_debug = action_debug or {}
+
+-- load modules
+local utils = require("base/utils")
+local config = require("base/config")
+local platform = require("base/platform")
+
+-- need access to the given file?
+function action_debug.need(name)
+
+ -- check
+ assert(name)
+
+ -- the accessors
+ local accessors = { config = true, global = true, project = true, platform = true }
+
+ -- need it?
+ return accessors[name]
+end
+
+-- done
+function action_debug.done()
+
+ -- TODO
+ print("not implement!")
+
+ -- ok
+ return true
+end
+
+-- the menu
+function action_debug.menu()
+
+ return {
+ -- xmake d
+ shortname = 'd'
+
+ -- usage
+ , usage = "xmake debug|d [options] [target]"
+
+ -- description
+ , description = "Debug target."
+
+ -- options
+ , options =
+ {
+ {'f', "file", "kv", "xmake.lua", "Create a given xmake.lua file." }
+ , {'P', "project", "kv", nil, "Create from the given project directory."
+ , "Search priority:"
+ , " 1. The Given Command Argument"
+ , " 2. The Envirnoment Variable: XMAKE_PROJECT_DIR"
+ , " 3. The Current Directory" }
+
+ , {}
+ , {'v', "verbose", "k", nil, "Print lots of verbose information." }
+ , {nil, "version", "k", nil, "Print the version number and exit." }
+ , {'h', "help", "k", nil, "Print this help message and exit." }
+
+ , {}
+ , {nil, "target", "v", nil, "Debug a given target" }
+ }
+ }
+end
+
+-- return module: action_debug
+return action_debug