summaryrefslogtreecommitdiff
path: root/tests/projects/objc/bundle/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-04 15:27:24 +0800
committerruki <[email protected]>2020-04-04 15:27:24 +0800
commitdd8d60cd3a0ebde713fea7010926ab034243f884 (patch)
tree8e61580c5783afaef8fd2a37b5be8e07408fc0d7 /tests/projects/objc/bundle/xmake.lua
parentdadee422f340ce6e96a7adbd64aa3941a2d31707 (diff)
improve xcode.framework rule
Diffstat (limited to 'tests/projects/objc/bundle/xmake.lua')
-rw-r--r--tests/projects/objc/bundle/xmake.lua24
1 files changed, 6 insertions, 18 deletions
diff --git a/tests/projects/objc/bundle/xmake.lua b/tests/projects/objc/bundle/xmake.lua
index 5073b3b0f..e8d0738ce 100644
--- a/tests/projects/objc/bundle/xmake.lua
+++ b/tests/projects/objc/bundle/xmake.lua
@@ -1,22 +1,10 @@
--- add rules
add_rules("mode.debug", "mode.release")
--- add frameworks
-add_frameworks("Foundation", "CoreFoundation")
+target("test")
+ add_rules("xcode.bundle")
+ add_files("src/test.m")
--- for macosx or ios
-if is_os("macosx", "ios") then
-
- -- enable arc?
- add_mxflags("-fobjc-arc")
-end
-
--- add target
-target("console_objc")
-
- -- set kind
+target("demo")
set_kind("binary")
-
- -- add files
- add_files("src/*.m")
-
+ add_deps("test")
+ add_files("src/main.m")