From b00f05dd421c8fd8aab0cc6716ecedf185fe32e4 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 13 Apr 2021 23:12:08 +0800 Subject: add package directory envs --- xmake/plugins/show/lists/envs.lua | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'xmake/plugins/show') 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]) -- cgit v1.3.1