summaryrefslogtreecommitdiff
path: root/xmake/actions/config/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-03-15 11:53:09 +0800
committerruki <[email protected]>2016-03-15 11:53:09 +0800
commitbc40eac3e633a4120313e95abb54da103fc48c39 (patch)
tree25efc1557fdd45617b1bbb6d11bacc6244cec198 /xmake/actions/config/main.lua
parent27ee91d65fe054439195781808da6cb57316238e (diff)
load config for task
Diffstat (limited to 'xmake/actions/config/main.lua')
-rwxr-xr-xxmake/actions/config/main.lua31
1 files changed, 30 insertions, 1 deletions
diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua
index b213e5e7d..6e60c4793 100755
--- a/xmake/actions/config/main.lua
+++ b/xmake/actions/config/main.lua
@@ -20,8 +20,37 @@
-- @file main.lua
--
+-- imports
+import("core.base.option")
+import("core.project.config")
+
+-- main
function main()
- print("main")
+ -- clean the cached configure?
+ if option.get("clean") then
+
+ -- clean it
+ config.clean()
+ end
+
+ --[[
+ -- merge the options
+ for name, value in pairs(option.options()) do
+ if name ~= "verbose" and name ~= "clean" then
+ config.set(name, value)
+ end
+ end
+
+ -- merge the default options
+ for name, value in pairs(option.defaults()) do
+ if name ~= "verbose" and name ~= "clean" then
+ config.set(name, value)
+ end
+ end
+ ]]
+
+ -- probe the configure with value: "auto"
+-- config.probe()
end