summaryrefslogtreecommitdiff
path: root/tests/console_rust/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-02-23 13:42:08 +0800
committerruki <[email protected]>2017-02-23 13:42:17 +0800
commit009c17b89cd33cf7915f82d0d994233238a6bc4c (patch)
tree3ab555773f156f2e55971a4b1015516fb87cc024 /tests/console_rust/xmake.lua
parent3ed1f42166dbe310aa245678adfc95a2de1f2f14 (diff)
add rust tools and language
Diffstat (limited to 'tests/console_rust/xmake.lua')
-rwxr-xr-xtests/console_rust/xmake.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/console_rust/xmake.lua b/tests/console_rust/xmake.lua
new file mode 100755
index 000000000..3e6996767
--- /dev/null
+++ b/tests/console_rust/xmake.lua
@@ -0,0 +1,32 @@
+-- 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("console_dlang")
+
+ -- set kind
+ set_kind("binary")
+
+ -- add files
+ add_files("src/*.rs")
+