diff options
Diffstat (limited to 'tests/projects')
| -rw-r--r-- | tests/projects/console_c/xmake.lua | 23 | ||||
| -rw-r--r-- | tests/projects/qt_console/xmake.lua | 25 |
2 files changed, 5 insertions, 43 deletions
diff --git a/tests/projects/console_c/xmake.lua b/tests/projects/console_c/xmake.lua index 5bb1a2510..05d54fa63 100644 --- a/tests/projects/console_c/xmake.lua +++ b/tests/projects/console_c/xmake.lua @@ -1,25 +1,6 @@ --- 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 debug/release mode +add_rules("mode:debug", "mode:release") -- add target target("console_c") diff --git a/tests/projects/qt_console/xmake.lua b/tests/projects/qt_console/xmake.lua index d7151f790..81ce32842 100644 --- a/tests/projects/qt_console/xmake.lua +++ b/tests/projects/qt_console/xmake.lua @@ -1,31 +1,12 @@ --- 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 debug/release mode +add_rules("mode:debug", "mode:release") -- add target target("qt_console") -- add rules - add_rules("qt_console") + add_rules("qt:console") -- add files add_files("src/*.cpp") |
