summaryrefslogtreecommitdiff
path: root/xmake/actions/package/local/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-06 22:36:10 +0800
committerruki <[email protected]>2022-09-06 22:36:10 +0800
commit1fb9ef1571ded01ffe2077edcee0057bf4ced911 (patch)
tree6e212c8de704c9d63b47e5fcff5200f0fb7f55fd /xmake/actions/package/local/main.lua
parent10d142571fc619051f83d116393ab86a29fcaee2 (diff)
rename linkdeps to librarydeps
Diffstat (limited to 'xmake/actions/package/local/main.lua')
-rw-r--r--xmake/actions/package/local/main.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/xmake/actions/package/local/main.lua b/xmake/actions/package/local/main.lua
index 1a51e56f9..e1049419e 100644
--- a/xmake/actions/package/local/main.lua
+++ b/xmake/actions/package/local/main.lua
@@ -26,16 +26,16 @@ import("core.project.config")
import("core.project.project")
import("core.base.bit")
--- get link deps
-function _get_linkdeps(target)
- local linkdeps = {}
+-- get library deps
+function _get_librarydeps(target)
+ local librarydeps = {}
for _, depname in ipairs(target:get("deps")) do
local dep = project.target(depname)
if not ((target:is_binary() or target:is_shared()) and dep:is_static()) then
- table.insert(linkdeps, dep:name())
+ table.insert(librarydeps, dep:name())
end
end
- return linkdeps
+ return librarydeps
end
-- package binary
@@ -55,7 +55,7 @@ function _package_binary(target)
-- generate xmake.lua
local file = io.open(path.join(packagedir, "xmake.lua"), "w")
if file then
- local deps = _get_linkdeps(target)
+ local deps = _get_librarydeps(target)
file:print("package(\"%s\")", packagename)
local homepage = option.get("homepage")
if homepage then
@@ -129,7 +129,7 @@ function _package_library(target)
-- generate xmake.lua
local file = io.open(path.join(packagedir, "xmake.lua"), "w")
if file then
- local deps = _get_linkdeps(target)
+ local deps = _get_librarydeps(target)
file:print("package(\"%s\")", packagename)
local homepage = option.get("homepage")
if homepage then
@@ -193,7 +193,7 @@ function _package_headeronly(target)
-- generate xmake.lua
local file = io.open(path.join(packagedir, "xmake.lua"), "w")
if file then
- local deps = _get_linkdeps(target)
+ local deps = _get_librarydeps(target)
file:print("package(\"%s\")", packagename)
local homepage = option.get("homepage")
if homepage then