summaryrefslogtreecommitdiff
path: root/tests/projects/c/shared_library/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-09-04 00:33:55 +0800
committerruki <[email protected]>2019-09-03 21:23:33 +0800
commitca20eae2af926af38bd19a539bd919f4cd1439cd (patch)
tree8a1a3214043a2759a569f3fa2fd80b14c7853483 /tests/projects/c/shared_library/xmake.lua
parent9f580d4e56f182c65b8402b7e4e5dd3e9c1612fd (diff)
add hybrid test project
Diffstat (limited to 'tests/projects/c/shared_library/xmake.lua')
-rw-r--r--tests/projects/c/shared_library/xmake.lua35
1 files changed, 1 insertions, 34 deletions
diff --git a/tests/projects/c/shared_library/xmake.lua b/tests/projects/c/shared_library/xmake.lua
index 50bad8879..48ccc67b3 100644
--- a/tests/projects/c/shared_library/xmake.lua
+++ b/tests/projects/c/shared_library/xmake.lua
@@ -1,45 +1,12 @@
--- the debug mode
-if is_mode("debug") then
-
- -- enable the debug symbols
- set_symbols("debug")
+add_rules("mode.release", "mode.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("shared_library_c")
-
- -- set kind
set_kind("shared")
-
- -- add files
add_files("src/interface.c")
--- add target
target("test")
-
- -- set kind
set_kind("binary")
-
- -- add deps
add_deps("shared_library_c")
-
- -- add files
add_files("src/test.c")