diff options
Diffstat (limited to 'xmake/scripts/action/_config.lua')
| -rw-r--r-- | xmake/scripts/action/_config.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/xmake/scripts/action/_config.lua b/xmake/scripts/action/_config.lua index 449d2bc03..c014d3bc7 100644 --- a/xmake/scripts/action/_config.lua +++ b/xmake/scripts/action/_config.lua @@ -30,6 +30,19 @@ local project = require("base/project") local makefile = require("base/makefile") local platform = require("platform/platform") +-- need access to the given file? +function _config.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 _config.done() |
