summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/application/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-05 22:42:54 +0800
committerruki <[email protected]>2020-04-05 22:42:54 +0800
commit6a67eb4ca0b1b8f375b0aa190fb85bca8477b595 (patch)
tree61f75d988896f12096490e6c79d5146c27dfa5be /xmake/rules/xcode/application/xmake.lua
parent52086e64f363bfefc91688efa09ad20f485bcbea (diff)
update macapp tests
Diffstat (limited to 'xmake/rules/xcode/application/xmake.lua')
-rw-r--r--xmake/rules/xcode/application/xmake.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/rules/xcode/application/xmake.lua b/xmake/rules/xcode/application/xmake.lua
index 724018da2..781ece19f 100644
--- a/xmake/rules/xcode/application/xmake.lua
+++ b/xmake/rules/xcode/application/xmake.lua
@@ -38,6 +38,13 @@ rule("xcode.application")
target:set("targetdir", appdir)
end
+ -- add frameworks
+ if is_plat("macosx") then
+ target:add("frameworks", "AppKit")
+ else
+ target:add("frameworks", "UIKit")
+ end
+
-- register clean files for `xmake clean`
target:add("cleanfiles", appdir)
end)