diff options
| author | ruki <[email protected]> | 2023-11-24 22:34:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-24 22:34:15 +0800 |
| commit | afbbacc9085b29e39cc13e00d5673202a70f7645 (patch) | |
| tree | 6c5bbad30be4b526500989de84c617f0a0af1f40 /xmake/plugins/pack/main.lua | |
| parent | 9217b528138fe4384403c0b573e8617bdcc18358 (diff) | |
add sourcefiles for xpack
Diffstat (limited to 'xmake/plugins/pack/main.lua')
| -rw-r--r-- | xmake/plugins/pack/main.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xmake/plugins/pack/main.lua b/xmake/plugins/pack/main.lua index 3f145cf86..f89c84835 100644 --- a/xmake/plugins/pack/main.lua +++ b/xmake/plugins/pack/main.lua @@ -80,9 +80,11 @@ end function _build_targets() local targetnames = {} for _, package in ipairs(xpack.packages()) do - local targets = package:get("targets") - if targets then - table.join2(targetnames, targets) + if package:from_binary() then + local targets = package:get("targets") + if targets then + table.join2(targetnames, targets) + end end end if #targetnames > 0 then |
