diff options
| author | ruki <[email protected]> | 2016-04-21 11:21:50 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-04-21 11:21:50 +0800 |
| commit | 6f8d1fe8d6451d403e6c2ec72b630bb500b10b4d (patch) | |
| tree | 63dbdf458f9c2b200fe6e1ff2c5e751a50e10e04 /xmake/actions/config/xmake.lua | |
| parent | 655f4fc9f27d19bb02eb6f131412f88db42f4253 (diff) | |
reimpl platform and it's menu
Diffstat (limited to 'xmake/actions/config/xmake.lua')
| -rwxr-xr-x | xmake/actions/config/xmake.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/xmake/actions/config/xmake.lua b/xmake/actions/config/xmake.lua index 57ab7062a..98b0f213e 100755 --- a/xmake/actions/config/xmake.lua +++ b/xmake/actions/config/xmake.lua @@ -17,7 +17,7 @@ -- Copyright (C) 2015 - 2016, ruki All rights reserved. -- -- @author ruki --- @file config.lua +-- @file xmake.lua -- -- define task @@ -51,12 +51,12 @@ task("config") -- show the description of all platforms , function () - -- import platform menu - import("core.platform.menu") + -- import platform + import("core.platform.platform") -- make description local description = {} - for i, plat in ipairs(menu.plats()) do + for i, plat in ipairs(platform.plats()) do description[i] = " - " .. plat end @@ -68,14 +68,14 @@ task("config") -- show the description of all architectures , function () - -- import platform menu - import("core.platform.menu") + -- import platform + import("core.platform.platform") -- make description local description = {} - for i, plat in ipairs(menu.plats()) do + for i, plat in ipairs(platform.plats()) do description[i] = " - " .. plat .. ":" - for _, arch in ipairs(menu.archs(plat)) do + for _, arch in ipairs(platform.archs(plat)) do description[i] = description[i] .. " " .. arch end end @@ -148,7 +148,7 @@ task("config") import("core.platform.menu") -- get config menu options - return menu.options_config() + return menu.options("config") end , {'o', "buildir", "kv", "build", "Set the build directory." } |
