diff options
| author | ruki <[email protected]> | 2017-07-17 21:24:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-07-17 21:24:15 +0800 |
| commit | 33144e73eae59ee7d934fd77673aac5a5a5cb0d1 (patch) | |
| tree | b8aa2925c9c7e44184c5288d5e7fffab715a5f36 /xmake/core/project/config.lua | |
| parent | 90c118045794457feb9c5e7a36c9625a25841cb1 (diff) | |
move global to base module
Diffstat (limited to 'xmake/core/project/config.lua')
| -rw-r--r-- | xmake/core/project/config.lua | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/xmake/core/project/config.lua b/xmake/core/project/config.lua index 8fb1c160d..6d5925c42 100644 --- a/xmake/core/project/config.lua +++ b/xmake/core/project/config.lua @@ -32,12 +32,9 @@ local path = require("base/path") local table = require("base/table") local utils = require("base/utils") local option = require("base/option") -local global = require("project/global") -- get the configure file function config._file() - - -- get it return path.join(config.directory(), "xmake.conf") end @@ -95,7 +92,6 @@ function config.set(name, value) -- set it configs[name] = value - end -- get all options @@ -138,9 +134,7 @@ end -- get the configure directory function config.directory() - - -- get it - return path.join(xmake._PROJECT_DIR, ".xmake") + return path.join(os.projectdir(), ".xmake") end -- load the project configure @@ -218,10 +212,7 @@ end -- init the config function config.init() - - -- clear it config._CONFIGS = {} - end -- dump the configure |
