summaryrefslogtreecommitdiff
path: root/tests/projects/objc/bundle/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/objc/bundle/xmake.lua')
-rw-r--r--tests/projects/objc/bundle/xmake.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/projects/objc/bundle/xmake.lua b/tests/projects/objc/bundle/xmake.lua
new file mode 100644
index 000000000..5073b3b0f
--- /dev/null
+++ b/tests/projects/objc/bundle/xmake.lua
@@ -0,0 +1,22 @@
+-- add rules
+add_rules("mode.debug", "mode.release")
+
+-- add frameworks
+add_frameworks("Foundation", "CoreFoundation")
+
+-- for macosx or ios
+if is_os("macosx", "ios") then
+
+ -- enable arc?
+ add_mxflags("-fobjc-arc")
+end
+
+-- add target
+target("console_objc")
+
+ -- set kind
+ set_kind("binary")
+
+ -- add files
+ add_files("src/*.m")
+