summaryrefslogtreecommitdiff
path: root/xmake/templates/rust/static/project/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-09-19 00:55:37 +0800
committerruki <[email protected]>2019-09-18 23:33:46 +0800
commit336029c68e4d0fc58bb55dca3ce5fb62bfdbf41b (patch)
tree68072128ac59708b7f56615e626d87e30ed951e2 /xmake/templates/rust/static/project/xmake.lua
parentbb3455b845e0b776937283b3ddae4ae557eea52e (diff)
rewrite templates
Diffstat (limited to 'xmake/templates/rust/static/project/xmake.lua')
-rw-r--r--xmake/templates/rust/static/project/xmake.lua27
1 files changed, 2 insertions, 25 deletions
diff --git a/xmake/templates/rust/static/project/xmake.lua b/xmake/templates/rust/static/project/xmake.lua
index c3a5b497a..fcaaa55f7 100644
--- a/xmake/templates/rust/static/project/xmake.lua
+++ b/xmake/templates/rust/static/project/xmake.lua
@@ -1,26 +1,3 @@
--- 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 target
target("interfaces")
@@ -31,7 +8,7 @@ target("interfaces")
add_files("src/interfaces.rs")
-- add target
-target("[targetname]_demo")
+target("${TARGETNAME}_demo")
-- set kind
set_kind("binary")
@@ -45,4 +22,4 @@ target("[targetname]_demo")
-- add link directory
add_linkdirs("$(buildir)")
-
+${FAQ}