From 33f1ec40fdfdcba4e2ae1e40d0050868ca4dca76 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 4 Sep 2023 23:51:00 +0800 Subject: get librarydeps with private --- xmake/core/package/package.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'xmake/core/package/package.lua') 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 -- cgit v1.3.1