summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2018-04-13 22:39:50 +0800
committerruki <[email protected]>2018-04-13 09:59:00 +0800
commitd8a540a7e74e224d0a19dec874628a69766bcd98 (patch)
tree9e35ccf811eca836899f0a423de1f22e73f3eca7 /tests
parentf2c934d1370eed2e674a94c4f678a3cf3da812f0 (diff)
add debug and release rules
Diffstat (limited to 'tests')
-rw-r--r--tests/projects/console_c/xmake.lua23
-rw-r--r--tests/projects/qt_console/xmake.lua25
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")