From dadee422f340ce6e96a7adbd64aa3941a2d31707 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 4 Apr 2020 13:01:11 +0800 Subject: improve objc/objc++ build rules --- tests/projects/objc/framework/xmake.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/projects/objc/framework/xmake.lua (limited to 'tests/projects/objc/framework/xmake.lua') diff --git a/tests/projects/objc/framework/xmake.lua b/tests/projects/objc/framework/xmake.lua new file mode 100644 index 000000000..2e1de864c --- /dev/null +++ b/tests/projects/objc/framework/xmake.lua @@ -0,0 +1,15 @@ +add_rules("mode.debug", "mode.release") +add_frameworks("Foundation", "CoreFoundation") + +if is_os("macosx", "ios") then + add_mxflags("-fobjc-arc") +end + +target("test") + set_kind("shared") + add_files("src/test.m") + +target("demo") + set_kind("binary") + add_deps("test") + add_files("src/main.m") -- cgit v1.3.1