summaryrefslogtreecommitdiff
path: root/xmake/core/project/policy.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-02-04 10:32:59 +0800
committerruki <[email protected]>2023-02-04 10:32:59 +0800
commit33f3591b69efa70eb77211cc7c937e0cde054de9 (patch)
tree2e34856609d96aefd158433039b51289113128ce /xmake/core/project/policy.lua
parent1d916603e8ab705f4af9b0a14d9fa2bfc620dfaf (diff)
add http header to package
Diffstat (limited to 'xmake/core/project/policy.lua')
-rw-r--r--xmake/core/project/policy.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/core/project/policy.lua b/xmake/core/project/policy.lua
index 1a466aa68..52f13c9b7 100644
--- a/xmake/core/project/policy.lua
+++ b/xmake/core/project/policy.lua
@@ -76,6 +76,8 @@ function policy.policies()
["package.install_only"] = {description = "Only install packages from remote.", type = "boolean"},
-- always install packages every time
["package.install_always"] = {description = "Always install packages every time.", type = "boolean"},
+ -- set custom headers when downloading package
+ ["package.download.http_headers"] = {description = "Set the custom http headers when downloading package."},
-- use includes as external header files? e.g. -isystem ..
["package.include_external_headers"] = {description = "Use includes as external headers.", type = "boolean"},
-- inherit the configs from the external command arguments, e.g. toolchains, `xmake f --toolchain=`