summaryrefslogtreecommitdiff
path: root/xmake/scripts/action/_global.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/_global.lua
parentc93c5254d82a621a116dbbcd0130b08f5e33ce2b (diff)
rebuild the main implementation
Diffstat (limited to 'xmake/scripts/action/_global.lua')
-rw-r--r--xmake/scripts/action/_global.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/xmake/scripts/action/_global.lua b/xmake/scripts/action/_global.lua
index 2ae54483c..24dfe9567 100644
--- a/xmake/scripts/action/_global.lua
+++ b/xmake/scripts/action/_global.lua
@@ -28,9 +28,28 @@ local utils = require("base/utils")
local global = require("base/global")
local platform = require("platform/platform")
+-- need access to the given file?
+function _global.need(name)
+
+ -- check
+ assert(name)
+
+ -- the accessors
+ local accessors = { global = true }
+
+ -- need it?
+ return accessors[name]
+end
+
-- done the given config
function _global.done()
+ -- probe the global platform configure
+ platform.probe(true)
+
+ -- clear up the global configure
+ global.clearup()
+
-- save the global configure
if not global.save() then
-- error