summaryrefslogtreecommitdiff
path: root/xmake/plugins
diff options
context:
space:
mode:
authorruki <[email protected]>2021-04-13 23:12:08 +0800
committerruki <[email protected]>2021-04-13 23:12:08 +0800
commitb00f05dd421c8fd8aab0cc6716ecedf185fe32e4 (patch)
tree06a8262ee98c34f9c56e9e46c17c8970809947fa /xmake/plugins
parent05f8db002c1fc6078c561e1d3b3329b7fc2aff5e (diff)
add package directory envs
Diffstat (limited to 'xmake/plugins')
-rw-r--r--xmake/plugins/show/lists/envs.lua20
1 files changed, 11 insertions, 9 deletions
diff --git a/xmake/plugins/show/lists/envs.lua b/xmake/plugins/show/lists/envs.lua
index 1f13b4cb1..f0ce9030a 100644
--- a/xmake/plugins/show/lists/envs.lua
+++ b/xmake/plugins/show/lists/envs.lua
@@ -27,15 +27,17 @@ import("core.project.project")
-- show all toolchains
function main()
- local envs = { XMAKE_PROGRAM_DIR = {"Set the program scripts directory of xmake.", os.programdir()},
- XMAKE_CONFIGDIR = {"Set the local config directory of project.", config.directory()},
- XMAKE_GLOBALDIR = {"Set the global config directory of xmake.", global.directory()},
- XMAKE_COLORTERM = {"Set the color terminal environment.", os.getenv("XMAKE_COLORTERM") or os.getenv("COLORTERM")},
- XMAKE_LOGFILE = {"Set the log output file path.", os.getenv("XMAKE_LOGFILE")},
- XMAKE_ROOT = {"Allow xmake to run under root.", os.getenv("XMAKE_ROOT")},
- XMAKE_RAMDIR = {"Set the ramdisk directory.", os.getenv("XMAKE_RAMDIR")},
- XMAKE_RCFILES = {"Set the runtime configuration files.", path.joinenv(project.rcfiles())},
- XMAKE_TMPDIR = {"Set the temporary directory.", os.tmpdir()}}
+ local envs = { XMAKE_PROGRAM_DIR = {"Set the program scripts directory of xmake.", os.programdir()},
+ XMAKE_CONFIGDIR = {"Set the local config directory of project.", config.directory()},
+ XMAKE_GLOBALDIR = {"Set the global config directory of xmake.", global.directory()},
+ XMAKE_COLORTERM = {"Set the color terminal environment.", os.getenv("XMAKE_COLORTERM") or os.getenv("COLORTERM")},
+ XMAKE_LOGFILE = {"Set the log output file path.", os.getenv("XMAKE_LOGFILE")},
+ XMAKE_ROOT = {"Allow xmake to run under root.", os.getenv("XMAKE_ROOT")},
+ XMAKE_RAMDIR = {"Set the ramdisk directory.", os.getenv("XMAKE_RAMDIR")},
+ XMAKE_RCFILES = {"Set the runtime configuration files.", path.joinenv(project.rcfiles())},
+ XMAKE_TMPDIR = {"Set the temporary directory.", os.tmpdir()},
+ XMAKE_PKG_CACHEDIR = {"Set the cache directory of packages.", os.getenv("XMAKE_PKG_CACHEDIR")},
+ XMAKE_PKG_INSTALLDIR = {"Set the install directory of packages.", os.getenv("XMAKE_PACKAGEDIR")}}
local width = 24
for name, env in pairs(envs) do
cprint("${color.dump.string}%s${clear}%s%s", name, (" "):rep(width - #name), env[1])