summaryrefslogtreecommitdiff
path: root/xmake/templates/objc/console
diff options
context:
space:
mode:
authorruki <[email protected]>2018-04-14 00:55:46 +0800
committerruki <[email protected]>2018-04-13 23:34:39 +0800
commita8a05178346e5efb902aaef8c55264e130389e00 (patch)
treedac9887f08aee7fb5b86bf0b001debf422cf2f24 /xmake/templates/objc/console
parent7467328ac81ac59a95125420b4dbca1bc3abc5f3 (diff)
improve some templates
Diffstat (limited to 'xmake/templates/objc/console')
-rw-r--r--xmake/templates/objc/console/project/xmake.lua23
1 files changed, 2 insertions, 21 deletions
diff --git a/xmake/templates/objc/console/project/xmake.lua b/xmake/templates/objc/console/project/xmake.lua
index e7724adb5..9b2fb3343 100644
--- a/xmake/templates/objc/console/project/xmake.lua
+++ b/xmake/templates/objc/console/project/xmake.lua
@@ -1,25 +1,6 @@
--- the debug mode
-if is_mode("debug") then
-
- -- enable the debug symbols
- set_symbols("debug")
- -- disable optimization
- set_optimize("none")
-end
-
--- the release mode
-if is_mode("release") then
-
- -- set the symbols visibility: hidden
- set_symbols("hidden")
-
- -- enable fastest optimization
- set_optimize("fastest")
-
- -- strip all symbols
- set_strip("all")
-end
+-- add modes: debug and release
+add_rules("mode:debug", "mode:release")
-- add frameworks
add_frameworks("Foundation", "CoreFoundation")