diff options
| author | OpportunityLiu <[email protected]> | 2019-07-17 16:24:51 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-17 16:24:51 +0800 |
| commit | 509f75e87676bf3d95bc5dc8ccd3b731fdc055e4 (patch) | |
| tree | 8137bb26ff0f2584ffd538594f1b087607a54af4 /tests/projects/c++ | |
| parent | 42fd31e85dfbb8f1e916394bb2497fd0ee78f0d4 (diff) | |
fix tests
Diffstat (limited to 'tests/projects/c++')
| -rw-r--r-- | tests/projects/c++/console/xmake.lua | 24 | ||||
| -rw-r--r-- | tests/projects/c++/precompiled_header/xmake.lua | 3 | ||||
| -rw-r--r-- | tests/projects/c++/shared_library/xmake.lua | 24 | ||||
| -rw-r--r-- | tests/projects/c++/static_library/xmake.lua | 24 |
4 files changed, 9 insertions, 66 deletions
diff --git a/tests/projects/c++/console/xmake.lua b/tests/projects/c++/console/xmake.lua index 7f2076db5..f6beb31d8 100644 --- a/tests/projects/c++/console/xmake.lua +++ b/tests/projects/c++/console/xmake.lua @@ -1,25 +1,5 @@ --- 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 rules +add_rules("mode.debug", "mode.release") -- add target target("console_c++") diff --git a/tests/projects/c++/precompiled_header/xmake.lua b/tests/projects/c++/precompiled_header/xmake.lua index 337f7a7fe..3f4c34507 100644 --- a/tests/projects/c++/precompiled_header/xmake.lua +++ b/tests/projects/c++/precompiled_header/xmake.lua @@ -1,3 +1,6 @@ +-- add rules +add_rules("mode.debug", "mode.release") + -- define target target("main") diff --git a/tests/projects/c++/shared_library/xmake.lua b/tests/projects/c++/shared_library/xmake.lua index 6c2d4deea..cd423db3b 100644 --- a/tests/projects/c++/shared_library/xmake.lua +++ b/tests/projects/c++/shared_library/xmake.lua @@ -1,25 +1,5 @@ --- 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 rules +add_rules("mode.debug", "mode.release") -- add target target("shared_library_c++") diff --git a/tests/projects/c++/static_library/xmake.lua b/tests/projects/c++/static_library/xmake.lua index 2e3950d4a..b084aab18 100644 --- a/tests/projects/c++/static_library/xmake.lua +++ b/tests/projects/c++/static_library/xmake.lua @@ -1,25 +1,5 @@ --- 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 rules +add_rules("mode.debug", "mode.release") -- add target target("static_library_c++") |
