summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-04 23:51:00 +0800
committerruki <[email protected]>2023-09-04 23:51:00 +0800
commit33f1ec40fdfdcba4e2ae1e40d0050868ca4dca76 (patch)
tree39a8f3782460a6531e9628d4f235dd476b9945f5 /xmake/core/package/package.lua
parent40e70336ebbb4a6deb7c8277b7371d712cc2d621 (diff)
get librarydeps with private
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index fd1dce8ae..ed6042518 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -411,8 +411,12 @@ function _instance:plaindeps()
end
-- get library deps with correct link order
-function _instance:librarydeps()
- return self._LIBRARYDEPS
+function _instance:librarydeps(opt)
+ if opt and opt.private then
+ return self._LIBRARYDEPS_WITH_PRIVATE
+ else
+ return self._LIBRARYDEPS
+ end
end
-- get parents