summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools
diff options
context:
space:
mode:
authorruki <[email protected]>2023-08-18 22:29:00 +0800
committerruki <[email protected]>2023-08-18 22:29:00 +0800
commitbdffbd192fa1f41da7945756b6f20e8ed8bbf080 (patch)
treec5b27d68f1cd495e21083b88369b0d3c86e9b532 /xmake/modules/package/tools
parent82e5bf7afb748b6d3436e2bb114418432f574dc3 (diff)
add policy for passing depconfs
Diffstat (limited to 'xmake/modules/package/tools')
-rw-r--r--xmake/modules/package/tools/xmake.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua
index 814b98279..338c3e761 100644
--- a/xmake/modules/package/tools/xmake.lua
+++ b/xmake/modules/package/tools/xmake.lua
@@ -393,6 +393,13 @@ end
-- get package depconfs envs
-- @see https://github.com/xmake-io/xmake/issues/3952
function _get_package_depconfs_envs(envs, package, opt)
+ local policy = package:policy("package.xmake.pass_depconfs")
+ if policy == nil then
+ policy = project.policy("package.xmake.pass_depconfs")
+ end
+ if policy == false then
+ return
+ end
local requireconfs = {}
for _, dep in ipairs(package:librarydeps()) do
local requireinfo = dep:requireinfo()