diff options
| author | ruki <[email protected]> | 2021-06-24 22:45:39 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-06-24 22:45:39 +0800 |
| commit | 8301d69b636466b196f45c8f079d74a384c32b2c (patch) | |
| tree | a9330b4462f9611187ff299dde3aaa07132733b3 | |
| parent | 58907f76aae6bfa0cac16e534f611099130a4fc7 (diff) | |
add --build option for installing packages
| -rw-r--r-- | xmake/actions/require/xmake.lua | 3 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/install.lua | 1 |
2 files changed, 3 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.", diff --git a/xmake/modules/private/xrepo/action/install.lua b/xmake/modules/private/xrepo/action/install.lua index 4186e63ab..019edf7d3 100644 --- a/xmake/modules/private/xrepo/action/install.lua +++ b/xmake/modules/private/xrepo/action/install.lua @@ -66,6 +66,7 @@ function menu_options() {category = "Other Configuration" }, {nil, "force", "k", nil, "Force to reinstall all package dependencies."}, {nil, "shallow", "k", nil, "Does not install dependent packages."}, + {nil, "build", "k", nil, "Always build and install packages from source."}, {}, {nil, "packages", "vs", nil, "The packages list.", "e.g.", |
