diff options
| author | ruki <[email protected]> | 2025-08-11 23:11:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-08-11 23:11:24 +0800 |
| commit | 5d22e5c5919dddcf298af07d5bfe98f0dd8790a3 (patch) | |
| tree | 15f478e32450d0fc6259cb07c75c5d3d5de47a00 | |
| parent | 87ab617a9baffa4e6d4d8a8a7560fa683c9a3995 (diff) | |
fix install for macos
| -rw-r--r-- | xmake/modules/target/action/install/main.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/modules/target/action/install/main.lua b/xmake/modules/target/action/install/main.lua index ac731a3a8..e4f48ddfa 100644 --- a/xmake/modules/target/action/install/main.lua +++ b/xmake/modules/target/action/install/main.lua @@ -82,7 +82,7 @@ function _get_target_package_libfiles(target, opt) end -- get target libraries -function _get_target_libfiles(target, libfiles, binaryfile, refs) +function _get_target_libfiles(target, libfiles, binaryfile, refs, opt) if not refs[target] then local plaindeps = target:get("deps") if plaindeps then @@ -94,14 +94,14 @@ function _get_target_libfiles(target, libfiles, binaryfile, refs) if os.isfile(depfile) then table.insert(libfiles, depfile) end - _get_target_libfiles(dep, libfiles, dep:targetfile(), refs) + _get_target_libfiles(dep, libfiles, dep:targetfile(), refs, opt) elseif dep:is_library() then - _get_target_libfiles(dep, libfiles, binaryfile, refs) + _get_target_libfiles(dep, libfiles, binaryfile, refs, opt) end end end end - table.join2(libfiles, _get_target_package_libfiles(target, {binaryfile = binaryfile})) + table.join2(libfiles, _get_target_package_libfiles(target, table.join({binaryfile = binaryfile}, opt))) refs[target] = true end end @@ -162,7 +162,7 @@ function _install_shared_libraries(target, opt) -- get all dependent shared libraries local libfiles = {} - _get_target_libfiles(target, libfiles, target:targetfile(), {}) + _get_target_libfiles(target, libfiles, target:targetfile(), {}, opt) libfiles = table.unique(libfiles) -- do install |
