diff options
| author | ruki <[email protected]> | 2017-07-20 14:01:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-07-20 14:01:06 +0800 |
| commit | a9a33cca711e2bc6d88594e2ab6b99921d5992f2 (patch) | |
| tree | d44c4e9b9afb04d3aa0baa5da98b8e66f428d59d /xmake/core/main.lua | |
| parent | e5d685f1fdba2977986950b13dc851682d3f7bcc (diff) | |
seperate task api from project and remove package module
Diffstat (limited to 'xmake/core/main.lua')
| -rw-r--r-- | xmake/core/main.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua index 87a4a7a87..2e860269a 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -34,6 +34,7 @@ local profiler = require("base/profiler") local deprecated = require("base/deprecated") local privilege = require("base/privilege") local task = require("project/task") +local project = require("project/project") local history = require("project/history") -- init the option menu @@ -155,6 +156,9 @@ function main._init() else os.addenv("PATH", os.programdir()) end + + -- define task and package apis first before loading project's xmake.lua - calling option.init() + project.define_apis(task.apis()) end -- the main function |
