summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-29 23:52:17 +0800
committerruki <[email protected]>2020-04-29 17:13:44 +0800
commitdcb9bf2b3ad1248fbe1ac472a4b851dc841067a9 (patch)
treedf0ded62efcfb04b9676536217ad66ba26d2de5b /tests
parentcf92ed9d8ed9d833458ffcb94466f7b7c32c91b7 (diff)
fix os.args
Diffstat (limited to 'tests')
-rw-r--r--tests/projects/c/static library with spaces/xmake.lua42
1 files changed, 5 insertions, 37 deletions
diff --git a/tests/projects/c/static library with spaces/xmake.lua b/tests/projects/c/static library with spaces/xmake.lua
index b35709072..3febc19f3 100644
--- a/tests/projects/c/static library with spaces/xmake.lua
+++ b/tests/projects/c/static library with spaces/xmake.lua
@@ -1,45 +1,13 @@
--- 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("static_library_c")
-
- -- set kind
+target("test")
set_kind("static")
-
- -- add files
add_files("s r c/interface.c")
+ add_includedirs("$(projectdir)/s r c", {public = true})
--- add target
-target("test")
-
- -- set kind
+target("demo")
set_kind("binary")
-
- -- add deps
- add_deps("static_library_c")
-
- -- add files
+ add_deps("test")
add_files("s r c/test.c")