summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/framework/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-08-31 00:11:13 +0800
committerruki <[email protected]>2022-08-31 00:11:13 +0800
commit20e5768e36de8c12314c2dacd344cf18807c66f9 (patch)
tree88145f036994f9aaaf23dae0d38cdb8acf323948 /xmake/rules/xcode/framework/xmake.lua
parent7f94e5c1d69edcbf1b9b0338e015bfc5e5275883 (diff)
improve to install frameworks
Diffstat (limited to 'xmake/rules/xcode/framework/xmake.lua')
-rw-r--r--xmake/rules/xcode/framework/xmake.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/rules/xcode/framework/xmake.lua b/xmake/rules/xcode/framework/xmake.lua
index 520ccf1b8..687b67208 100644
--- a/xmake/rules/xcode/framework/xmake.lua
+++ b/xmake/rules/xcode/framework/xmake.lua
@@ -165,13 +165,16 @@ rule("xcode.framework")
end)
on_install(function (target)
+ import("xcode.application.build", {alias = "appbuild", rootdir = path.join(os.programdir(), "rules")})
local bundledir = path.absolute(target:data("xcode.bundle.rootdir"))
local installdir = target:installdir()
if installdir then
if not os.isdir(installdir) then
os.mkdir(installdir)
end
- os.vcp(bundledir, installdir)
+ -- TODO we should improve os.cp to support symlink
+ --os.vcp(bundledir, installdir, {symlink = true})
+ appbuild.copy_frameworks(bundledir, installdir)
end
end)