diff options
| author | ruki <[email protected]> | 2017-02-09 09:22:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-02-09 09:22:25 +0800 |
| commit | fd16730ec4846ea1acf8cb03d91f0a059d98fddf (patch) | |
| tree | 2e4b09d80a62b0edb2dd4ff0f1a035dd6e591503 /xmake/templates/objc++/console | |
| parent | 7bb2d3b070b62c5fce22276c92f342f2647b0a39 (diff) | |
add add_frameworks api
Diffstat (limited to 'xmake/templates/objc++/console')
| -rw-r--r-- | xmake/templates/objc++/console/project/xmake.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xmake/templates/objc++/console/project/xmake.lua b/xmake/templates/objc++/console/project/xmake.lua index d9d4a4ed0..7a56c9d69 100644 --- a/xmake/templates/objc++/console/project/xmake.lua +++ b/xmake/templates/objc++/console/project/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 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 |
