diff options
| author | ruki <[email protected]> | 2015-06-08 14:38:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-08 14:38:34 +0800 |
| commit | d3258129a4a1ba9886b7e8d773ba8e4ec956b4a6 (patch) | |
| tree | 23c4c9a6087148c0c65f720fd5e87742429e9108 /xmake/scripts/action | |
| parent | 4d2fbb049f34e5899d962a148bf5e560fe9d978c (diff) | |
make switches to configure file
Diffstat (limited to 'xmake/scripts/action')
| -rw-r--r-- | xmake/scripts/action/_config.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xmake/scripts/action/_config.lua b/xmake/scripts/action/_config.lua index 841e84fe2..7726be958 100644 --- a/xmake/scripts/action/_config.lua +++ b/xmake/scripts/action/_config.lua @@ -26,11 +26,16 @@ local _config = _config or {} -- load modules local utils = require("base/utils") local config = require("base/config") +local project = require("base/project") local makefile = require("base/makefile") -- done the given config function _config.done() + -- the options + local options = xmake._OPTIONS + assert(options) + -- dump config config.dump() @@ -41,6 +46,13 @@ function _config.done() return false end + -- make the configure file for the given target + if not project.makeconf(options.target) then + -- error + utils.error("make configure failed!") + return false + end + -- make makefile if not makefile.make() then -- error |
