diff options
| author | ruki <[email protected]> | 2015-06-19 16:23:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-19 16:23:29 +0800 |
| commit | 1d041891edec9d99a1922fd7f4a4770b60412cfd (patch) | |
| tree | e5cd7add5e44a873544859a6e17afc998ec75d54 /xmake/scripts/action/_build.lua | |
| parent | c93c5254d82a621a116dbbcd0130b08f5e33ce2b (diff) | |
rebuild the main implementation
Diffstat (limited to 'xmake/scripts/action/_build.lua')
| -rw-r--r-- | xmake/scripts/action/_build.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/xmake/scripts/action/_build.lua b/xmake/scripts/action/_build.lua index 9e031f380..b9bd05eef 100644 --- a/xmake/scripts/action/_build.lua +++ b/xmake/scripts/action/_build.lua @@ -31,6 +31,19 @@ local config = require("base/config") local project = require("base/project") local makefile = require("base/makefile") +-- need access to the given file? +function _build.need(name) + + -- check + assert(name) + + -- the accessors + local accessors = { config = true, global = true, project = true, platform = true } + + -- need it? + return accessors[name] +end + -- done the given config function _build.done() |
