diff options
| author | ruki <[email protected]> | 2016-02-15 09:32:38 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-02-15 19:10:28 +0800 |
| commit | b78baf22ac0e25d2b18add81d42f733e0cd35620 (patch) | |
| tree | d950c7c372227e300c8bfd780eea6371a4633692 /tests/objc++_console/xmake.lua | |
| parent | 202ceb6b071c7a1e95482dcb8bb7b48f24cd5bdc (diff) | |
add some tests
Diffstat (limited to 'tests/objc++_console/xmake.lua')
| -rwxr-xr-x | tests/objc++_console/xmake.lua | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/objc++_console/xmake.lua b/tests/objc++_console/xmake.lua new file mode 100755 index 000000000..c277fe8af --- /dev/null +++ b/tests/objc++_console/xmake.lua @@ -0,0 +1,43 @@ +-- the debug mode +if modes("debug") then + + -- enable the debug symbols + set_symbols("debug") + + -- disable optimization + set_optimize("none") +end + +-- the release mode +if modes("release") then + + -- set the symbols visibility: hidden + set_symbols("hidden") + + -- enable fastest optimization + set_optimize("fastest") + + -- strip all symbols + set_strip("all") +end + +-- 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 + +-- add target +def_target("objcpp_console") + + -- set kind + set_kind("binary") + + -- add files + add_files("src/*.mm") + |
