summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-15 22:55:46 +0800
committerruki <[email protected]>2024-07-15 12:21:42 +0800
commit28e075556101cd683f38e010229ea04dad3decf1 (patch)
tree1654a9adf2f22ec431dbbe8a57ffb7724b9eb687
parent729a9c2602a64f4d2fa5151355e8c63ff1a326ab (diff)
enable nopkgs
-rw-r--r--xmake/modules/target/action/install/main.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/target/action/install/main.lua b/xmake/modules/target/action/install/main.lua
index b78c8bb54..4308a525f 100644
--- a/xmake/modules/target/action/install/main.lua
+++ b/xmake/modules/target/action/install/main.lua
@@ -24,6 +24,9 @@ import("core.base.hashset")
import("utils.symbols.depend", {alias = "get_depend_libraries"})
function _get_target_package_libfiles(target, opt)
+ if option.get("nopkgs") then
+ return {}
+ end
local libfiles = {}
for _, pkg in ipairs(target:orderpkgs(opt)) do
if pkg:enabled() and pkg:get("libfiles") then