diff options
Diffstat (limited to 'xmake/actions/config/main.lua')
| -rwxr-xr-x | xmake/actions/config/main.lua | 31 |
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 |
