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 | |
| parent | 42fd31e85dfbb8f1e916394bb2497fd0ee78f0d4 (diff) | |
fix tests
| -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 | ||||
| -rw-r--r-- | tests/projects/cuda/console/xmake.lua | 2 | ||||
| -rw-r--r-- | tests/projects/dlang/console/xmake.lua | 24 | ||||
| -rw-r--r-- | tests/projects/dlang/shared_library/xmake.lua | 24 | ||||
| -rw-r--r-- | tests/projects/dlang/static_library/xmake.lua | 24 | ||||
| -rw-r--r-- | tests/projects/go/console/xmake.lua | 24 | ||||
| -rw-r--r-- | tests/projects/go/static_library/xmake.lua | 24 | ||||
| -rw-r--r-- | tests/projects/objc++/console/xmake.lua | 24 | ||||
| -rw-r--r-- | tests/projects/objc/console/xmake.lua | 24 | ||||
| -rw-r--r-- | tests/projects/other/merge_object/xmake.lua | 24 | ||||
| -rw-r--r-- | tests/projects/other/merge_static_library/xmake.lua | 24 | ||||
| -rw-r--r-- | tests/projects/rust/console/xmake.lua | 24 | ||||
| -rw-r--r-- | tests/projects/rust/static_library/xmake.lua | 24 | ||||
| -rw-r--r-- | tests/projects/swift/console/xmake.lua | 24 |
17 files changed, 35 insertions, 330 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++") diff --git a/tests/projects/cuda/console/xmake.lua b/tests/projects/cuda/console/xmake.lua index d7267fb0d..bf69c8c1e 100644 --- a/tests/projects/cuda/console/xmake.lua +++ b/tests/projects/cuda/console/xmake.lua @@ -1,3 +1,5 @@ +-- add rules +add_rules("mode.debug", "mode.release") -- define target target("cuda_console") diff --git a/tests/projects/dlang/console/xmake.lua b/tests/projects/dlang/console/xmake.lua index 2f040a763..474c15ec2 100644 --- a/tests/projects/dlang/console/xmake.lua +++ b/tests/projects/dlang/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_dlang") diff --git a/tests/projects/dlang/shared_library/xmake.lua b/tests/projects/dlang/shared_library/xmake.lua index c7fac23ca..ced757e5e 100644 --- a/tests/projects/dlang/shared_library/xmake.lua +++ b/tests/projects/dlang/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("interfaces") diff --git a/tests/projects/dlang/static_library/xmake.lua b/tests/projects/dlang/static_library/xmake.lua index 1fd0d1ee9..238aa1197 100644 --- a/tests/projects/dlang/static_library/xmake.lua +++ b/tests/projects/dlang/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("interfaces") diff --git a/tests/projects/go/console/xmake.lua b/tests/projects/go/console/xmake.lua index d69c3d457..cae347a8d 100644 --- a/tests/projects/go/console/xmake.lua +++ b/tests/projects/go/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_go") diff --git a/tests/projects/go/static_library/xmake.lua b/tests/projects/go/static_library/xmake.lua index b0c3d20ce..560d67292 100644 --- a/tests/projects/go/static_library/xmake.lua +++ b/tests/projects/go/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("module") diff --git a/tests/projects/objc++/console/xmake.lua b/tests/projects/objc++/console/xmake.lua index a9229c7f3..8fba2d568 100644 --- a/tests/projects/objc++/console/xmake.lua +++ b/tests/projects/objc++/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 frameworks add_frameworks("Foundation", "CoreFoundation") diff --git a/tests/projects/objc/console/xmake.lua b/tests/projects/objc/console/xmake.lua index 146262351..440ce0ffb 100644 --- a/tests/projects/objc/console/xmake.lua +++ b/tests/projects/objc/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 frameworks add_frameworks("Foundation", "CoreFoundation") diff --git a/tests/projects/other/merge_object/xmake.lua b/tests/projects/other/merge_object/xmake.lua index b8f971536..39e41be3e 100644 --- a/tests/projects/other/merge_object/xmake.lua +++ b/tests/projects/other/merge_object/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("merge_object") diff --git a/tests/projects/other/merge_static_library/xmake.lua b/tests/projects/other/merge_static_library/xmake.lua index bd36a983a..729648ca2 100644 --- a/tests/projects/other/merge_static_library/xmake.lua +++ b/tests/projects/other/merge_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("add") diff --git a/tests/projects/rust/console/xmake.lua b/tests/projects/rust/console/xmake.lua index 57d18582b..b2c8efd39 100644 --- a/tests/projects/rust/console/xmake.lua +++ b/tests/projects/rust/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_rust") diff --git a/tests/projects/rust/static_library/xmake.lua b/tests/projects/rust/static_library/xmake.lua index d665e86e9..b873a4c9e 100644 --- a/tests/projects/rust/static_library/xmake.lua +++ b/tests/projects/rust/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("interfaces") diff --git a/tests/projects/swift/console/xmake.lua b/tests/projects/swift/console/xmake.lua index 8a368c0af..e792b81f0 100644 --- a/tests/projects/swift/console/xmake.lua +++ b/tests/projects/swift/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_swift") |
