summaryrefslogtreecommitdiff
path: root/xmake/scripts/action/_clean.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-19 16:23:29 +0800
committerruki <[email protected]>2015-06-19 16:23:29 +0800
commit1d041891edec9d99a1922fd7f4a4770b60412cfd (patch)
treee5cd7add5e44a873544859a6e17afc998ec75d54 /xmake/scripts/action/_clean.lua
parentc93c5254d82a621a116dbbcd0130b08f5e33ce2b (diff)
rebuild the main implementation
Diffstat (limited to 'xmake/scripts/action/_clean.lua')
-rw-r--r--xmake/scripts/action/_clean.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/xmake/scripts/action/_clean.lua b/xmake/scripts/action/_clean.lua
index 31b5209d3..a02eb3622 100644
--- a/xmake/scripts/action/_clean.lua
+++ b/xmake/scripts/action/_clean.lua
@@ -29,6 +29,19 @@ local config = require("base/config")
local project = require("base/project")
local platform = require("platform/platform")
+-- need access to the given file?
+function _clean.need(name)
+
+ -- check
+ assert(name)
+
+ -- the accessors
+ local accessors = { global = true, config = true, project = true, platform = true }
+
+ -- need it?
+ return accessors[name]
+end
+
-- done the given config
function _clean.done()