diff options
| author | ruki <[email protected]> | 2024-08-28 00:49:59 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-08-28 00:49:59 +0800 |
| commit | b6ba63e94d5bb3c27131f76d85031aa275755bd4 (patch) | |
| tree | c4c0fe9f105f51bf240e008f545715dcc885b51d /xmake/rules/xcode/application/build.lua | |
| parent | 8dd37a697c4cb22223908adab6937f464f5caeda (diff) | |
fix install dylib for macos app #5515
Diffstat (limited to 'xmake/rules/xcode/application/build.lua')
| -rw-r--r-- | xmake/rules/xcode/application/build.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/rules/xcode/application/build.lua b/xmake/rules/xcode/application/build.lua index 736de948c..a06477069 100644 --- a/xmake/rules/xcode/application/build.lua +++ b/xmake/rules/xcode/application/build.lua @@ -56,14 +56,14 @@ function main (target, opt) -- copy dependent dynamic libraries and frameworks for _, dep in ipairs(target:orderdeps()) do if dep:kind() == "shared" then + if not os.isdir(frameworksdir) then + os.mkdir(frameworksdir) + end local frameworkdir = dep:data("xcode.bundle.rootdir") if dep:rule("xcode.framework") and frameworkdir then - if not os.isdir(frameworkdir) then - os.mkdir(frameworksdir) - end os.cp(frameworkdir, frameworksdir, {symlink = true}) else - os.vcp(dep:targetfile(), binarydir) + os.vcp(dep:targetfile(), frameworksdir) end end end |
