summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/framework/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-14 23:29:49 +0800
committerruki <[email protected]>2020-04-14 14:58:58 +0800
commit0b6acd9b56235ad1e9d0cb60d6698288961ad18a (patch)
tree351d4bdef74c22f9ceb1ccec4d6ecab6cf1354d7 /xmake/rules/xcode/framework/xmake.lua
parentef386648e53a46dedf78e859f48cf136ce36121b (diff)
improve xcode.framework
Diffstat (limited to 'xmake/rules/xcode/framework/xmake.lua')
-rw-r--r--xmake/rules/xcode/framework/xmake.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/rules/xcode/framework/xmake.lua b/xmake/rules/xcode/framework/xmake.lua
index 7be68cbd0..fdca2a4d7 100644
--- a/xmake/rules/xcode/framework/xmake.lua
+++ b/xmake/rules/xcode/framework/xmake.lua
@@ -39,7 +39,9 @@ rule("xcode.framework")
target:data_set("xcode.bundle.resourcesdir", resourcesdir)
-- set target info for framework
- target:set("kind", "shared")
+ if not target:get("kind") then
+ target:set("kind", "shared")
+ end
target:set("filename", target:basename())
target:set("targetdir", contentsdir)