From fd16730ec4846ea1acf8cb03d91f0a059d98fddf Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 9 Feb 2017 09:22:25 +0800 Subject: add add_frameworks api --- tests/console_objc++/xmake.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/console_objc++/xmake.lua') diff --git a/tests/console_objc++/xmake.lua b/tests/console_objc++/xmake.lua index 00884ee70..a9229c7f3 100755 --- a/tests/console_objc++/xmake.lua +++ b/tests/console_objc++/xmake.lua @@ -21,13 +21,12 @@ if is_mode("release") then set_strip("all") end +-- add frameworks +add_frameworks("Foundation", "CoreFoundation") + -- for macosx or ios if is_os("macosx", "ios") then - -- add framework - add_mxflags("-framework Foundation", "-framework CoreFoundation") - add_ldflags("-framework Foundation", "-framework CoreFoundation") - -- enable arc? add_mxflags("-fobjc-arc") end -- cgit v1.3.1