summaryrefslogtreecommitdiff
path: root/xmake/actions/require/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-06-24 22:45:39 +0800
committerruki <[email protected]>2021-06-24 22:45:39 +0800
commit8301d69b636466b196f45c8f079d74a384c32b2c (patch)
treea9330b4462f9611187ff299dde3aaa07132733b3 /xmake/actions/require/xmake.lua
parent58907f76aae6bfa0cac16e534f611099130a4fc7 (diff)
add --build option for installing packages
Diffstat (limited to 'xmake/actions/require/xmake.lua')
-rw-r--r--xmake/actions/require/xmake.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/actions/require/xmake.lua b/xmake/actions/require/xmake.lua
index 696658abe..a534fb99c 100644
--- a/xmake/actions/require/xmake.lua
+++ b/xmake/actions/require/xmake.lua
@@ -49,6 +49,7 @@ task("require")
, {'j', "jobs", "kv", tostring(math.ceil(os.cpuinfo().ncpu * 3 / 2)),
"Specifies the number of jobs to build simultaneously." }
, {nil, "shallow", "k", nil, "Does not install dependent packages." }
+ , {nil, "build", "k", nil, "Always build and install packages from source." }
, {'l', "list", "k", nil, "List all package dependencies in project.",
"e.g.",
" $ xmake require --list" }
@@ -87,7 +88,7 @@ task("require")
" $ xmake require --import tbox zlib",
" $ xmake require --import --packagedir=packagesdir zlib",
" $ xmake require --import --extra=\"{debug=true}\" tbox" }
- , {nil, "packagedir", "kv", "packages","Set the packages directory for exporting and importing." }
+ , {nil, "packagedir", "kv", "packages","Set the packages directory for exporting and importing." }
, {nil, "extra", "kv", nil, "Set the extra info of packages." }
, { }
, {nil, "requires", "vs", nil, "The package requires.",