summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-16 23:07:03 +0800
committerruki <[email protected]>2024-07-16 23:07:03 +0800
commitcaa96b31a9657b79e110af6eba75b3ed664f4932 (patch)
tree6da3a1f586939d0e31ac05fae3f35cb9f3d992e2
parentd888f279d4a370e8dc913c43ba8f61596873d927 (diff)
rename utils.symbols.depend
-rw-r--r--xmake/modules/target/action/install/main.lua2
-rw-r--r--xmake/modules/target/action/uninstall/main.lua2
-rw-r--r--xmake/modules/utils/binary/deplibs.lua (renamed from xmake/modules/utils/symbols/depend.lua)12
-rw-r--r--xmake/plugins/pack/batchcmds.lua2
4 files changed, 9 insertions, 9 deletions
diff --git a/xmake/modules/target/action/install/main.lua b/xmake/modules/target/action/install/main.lua
index 3c1a12a8e..82a6eea8d 100644
--- a/xmake/modules/target/action/install/main.lua
+++ b/xmake/modules/target/action/install/main.lua
@@ -21,7 +21,7 @@
-- imports
import("core.base.option")
import("core.base.hashset")
-import("utils.symbols.depend", {alias = "get_depend_libraries"})
+import("utils.binary.deplibs", {alias = "get_depend_libraries"})
function _get_target_package_libfiles(target, opt)
if option.get("nopkgs") then
diff --git a/xmake/modules/target/action/uninstall/main.lua b/xmake/modules/target/action/uninstall/main.lua
index 73c28f02c..8b8662f90 100644
--- a/xmake/modules/target/action/uninstall/main.lua
+++ b/xmake/modules/target/action/uninstall/main.lua
@@ -21,7 +21,7 @@
-- imports
import("core.base.option")
import("core.base.hashset")
-import("utils.symbols.depend", {alias = "get_depend_libraries"})
+import("utils.binary.deplibs", {alias = "get_depend_libraries"})
import("private.action.clean.remove_files")
function _get_target_package_libfiles(target, opt)
diff --git a/xmake/modules/utils/symbols/depend.lua b/xmake/modules/utils/binary/deplibs.lua
index c9101f6d0..36e54d4af 100644
--- a/xmake/modules/utils/symbols/depend.lua
+++ b/xmake/modules/utils/binary/deplibs.lua
@@ -15,7 +15,7 @@
-- Copyright (C) 2015-present, TBOOX Open Source Group.
--
-- @author ruki
--- @file depend.lua
+-- @file deplibs.lua
--
-- imports
@@ -27,7 +27,7 @@ function _get_all_depends_by_dumpbin(binaryfile, opt)
local depends
local plat = opt.plat or os.host()
local arch = opt.arch or os.arch()
- local cachekey = "utils.symbols.depend"
+ local cachekey = "utils.binary.deplibs"
local msvc = toolchain.load("msvc", {plat = plat, arch = arch})
if msvc:check() then
local dumpbin = find_tool("dumpbin", {cachekey = cachekey, envs = msvc:runenvs()})
@@ -52,7 +52,7 @@ function _get_all_depends_by_objdump(binaryfile, opt)
local depends
local plat = opt.plat or os.host()
local arch = opt.arch or os.arch()
- local cachekey = "utils.symbols.depend"
+ local cachekey = "utils.binary.deplibs"
local objdump = find_tool("llvm-objdump", {cachekey = cachekey}) or find_tool("objdump", {cachekey = cachekey})
if objdump then
local binarydir = path.directory(binaryfile)
@@ -109,7 +109,7 @@ function _get_all_depends_by_ldd(binaryfile, opt)
return
end
local depends
- local cachekey = "utils.symbols.depend"
+ local cachekey = "utils.binary.deplibs"
local ldd = find_tool("ldd", {cachekey = cachekey})
if ldd then
local binarydir = path.directory(binaryfile)
@@ -150,7 +150,7 @@ function _get_all_depends_by_readelf(binaryfile, opt)
return
end
local depends
- local cachekey = "utils.symbols.depend"
+ local cachekey = "utils.binary.deplibs"
local readelf = find_tool("readelf", {cachekey = cachekey})
if readelf then
local binarydir = path.directory(binaryfile)
@@ -185,7 +185,7 @@ function _get_all_depends_by_otool(binaryfile, opt)
return
end
local depends
- local cachekey = "utils.symbols.depend"
+ local cachekey = "utils.binary.deplibs"
local otool = find_tool("otool", {cachekey = cachekey})
if otool then
local binarydir = path.directory(binaryfile)
diff --git a/xmake/plugins/pack/batchcmds.lua b/xmake/plugins/pack/batchcmds.lua
index 26ab4f7b0..e745cd19d 100644
--- a/xmake/plugins/pack/batchcmds.lua
+++ b/xmake/plugins/pack/batchcmds.lua
@@ -22,7 +22,7 @@
import("core.base.option")
import("core.base.hashset")
import("utils.archive")
-import("utils.symbols.depend", {alias = "get_depend_libraries"})
+import("utils.binary.deplibs", {alias = "get_depend_libraries"})
import("private.utils.batchcmds")
function _get_target_bindir(package, target)