diff options
| author | ruki <[email protected]> | 2022-08-23 09:36:29 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-08-23 09:36:29 +0800 |
| commit | 006390def621247c8d3857495afaa4e7038a32fa (patch) | |
| tree | aa0bb46561ded824fd53999d0d6884fa803ba942 /xmake/rules/xcode/framework/xmake.lua | |
| parent | 5a9631ba93e7a677a8c1e9769b17e392cdbb61af (diff) | |
| parent | 2019daea91cb6ad5eda1a38fab3b515e261ea698 (diff) | |
Merge pull request #2707 from xmake-io/framework
improve frameworks
Diffstat (limited to 'xmake/rules/xcode/framework/xmake.lua')
| -rw-r--r-- | xmake/rules/xcode/framework/xmake.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/rules/xcode/framework/xmake.lua b/xmake/rules/xcode/framework/xmake.lua index de7d7c93c..520ccf1b8 100644 --- a/xmake/rules/xcode/framework/xmake.lua +++ b/xmake/rules/xcode/framework/xmake.lua @@ -105,6 +105,13 @@ rule("xcode.framework") end os.vcp(target:targetfile(), contentsdir) + -- change rpath + -- @see https://github.com/xmake-io/xmake/issues/2679#issuecomment-1221839215 + local filename = path.filename(target:targetfile()) + local targetfile = path.join(contentsdir, filename) + local rpath = path.relative(contentsdir, path.directory(bundledir)) + os.vrunv("install_name_tool", {"-id", path.join("@rpath", rpath, filename), targetfile}) + -- move header files os.tryrm(headersdir) os.mv(path.join(contentsdir, "Headers.tmp", target:basename()), headersdir) |
