diff options
| author | ruki <[email protected]> | 2016-04-05 09:49:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-04-05 09:49:33 +0800 |
| commit | ee1293db712b47706496da86e0564010bafdaaa9 (patch) | |
| tree | 3d39b3830789da4a4d9e7c9b1abfca71ba27b205 /xmake/actions/global/xmake.lua | |
| parent | fedf748ddd3353f6065dc2502eaec2e396bc2c2a (diff) | |
adjust global priority
Diffstat (limited to 'xmake/actions/global/xmake.lua')
| -rwxr-xr-x | xmake/actions/global/xmake.lua | 47 |
1 files changed, 1 insertions, 46 deletions
diff --git a/xmake/actions/global/xmake.lua b/xmake/actions/global/xmake.lua index 748866e27..9f5123fb2 100755 --- a/xmake/actions/global/xmake.lua +++ b/xmake/actions/global/xmake.lua @@ -27,52 +27,7 @@ task("global") set_task_category("action") -- on run - on_task_run(function () - - -- imports - import("core.base.option") - import("core.project.global") - - -- load configure - -- - -- priority: option > config_check > global_cache > option_default - -- - global.load() - - -- clean the cached configure? - if option.get("clean") then - - -- clean it - global.clean() - end - - -- merge the default options - for name, value in pairs(option.defaults()) do - if name ~= "verbose" and name ~= "clean" and global.get(name) == nil then - global.set(name, value) - end - end - - -- override the checked configure - global.probe() - - -- override the option configure - for name, value in pairs(option.options()) do - if name ~= "verbose" and name ~= "clean" then - global.set(name, value) - end - end - - -- save it - global.save() - - -- dump it - global.dump() - - -- trace - print("configure ok!") - - end) + on_task_run("main") -- set menu set_task_menu({ |
