From ec6fd4eeca3fa468cffb25b472eb349c1fed06aa Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 22 Feb 2016 08:49:20 +0800 Subject: modify tests script --- tests/console_swift/xmake.lua | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 tests/console_swift/xmake.lua (limited to 'tests/console_swift/xmake.lua') diff --git a/tests/console_swift/xmake.lua b/tests/console_swift/xmake.lua new file mode 100755 index 000000000..68f822d8f --- /dev/null +++ b/tests/console_swift/xmake.lua @@ -0,0 +1,32 @@ +-- the debug mode +if is_mode("debug") then + + -- enable the debug symbols + set_symbols("debug") + + -- disable optimization + set_optimize("none") +end + +-- the release mode +if is_mode("release") then + + -- set the symbols visibility: hidden + set_symbols("hidden") + + -- enable fastest optimization + set_optimize("fastest") + + -- strip all symbols + set_strip("all") +end + +-- add target +target("swift_console") + + -- set kind + set_kind("binary") + + -- add files + add_files("src/*.swift") + -- cgit v1.3.1