summaryrefslogtreecommitdiff
path: root/xmake/core/project/policy.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-28 23:07:44 +0800
committerruki <[email protected]>2022-05-28 23:07:44 +0800
commit5d70ef54c67908120159570254d2c194bb6c6f75 (patch)
treeef8b0e9d50a5435d5b2e0f653ae8619452062605 /xmake/core/project/policy.lua
parent5eeeca1a1b2f3a0ca5b4a7e5372398cb758af43f (diff)
add package policy
Diffstat (limited to 'xmake/core/project/policy.lua')
-rw-r--r--xmake/core/project/policy.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/core/project/policy.lua b/xmake/core/project/policy.lua
index 775ecef63..e8921cefb 100644
--- a/xmake/core/project/policy.lua
+++ b/xmake/core/project/policy.lua
@@ -53,6 +53,10 @@ function policy.policies()
["package.requires_lock"] = {description = "Enable xmake-requires.lock to lock required packages.", default = false, type = "boolean"},
-- enable the precompiled packages, it will be enabled by default
["package.precompiled"] = {description = "Enable precompiled packages.", default = true, type = "boolean"},
+ -- only fetch packages on system
+ ["package.fetch_only"] = {description = "Only fetch packages on system.", type = "boolean"},
+ -- only install packages from remote
+ ["package.install_only"] = {description = "Only install packages from remote.", type = "boolean"},
-- inherit the configs from the external command arguments, e.g. toolchains, `xmake f --toolchain=`
["package.inherit_external_configs"] = {description = "Inherit the configs from the external command arguments.", default = true, type = "boolean"}
}