diff options
| author | ruki <[email protected]> | 2017-02-28 10:18:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-02-28 10:18:42 +0800 |
| commit | d5145e76c8ef2480dbf43ece33925bcd97fe598c (patch) | |
| tree | 36aacc4636e645209ed52dd2d8638e4c24ff9a09 /xmake/templates/rust/console/project/xmake.lua | |
| parent | fc68d8521d388daa8c6e3a21919feca864f7b741 (diff) | |
add golang and rust templates
Diffstat (limited to 'xmake/templates/rust/console/project/xmake.lua')
| -rwxr-xr-x | xmake/templates/rust/console/project/xmake.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/xmake/templates/rust/console/project/xmake.lua b/xmake/templates/rust/console/project/xmake.lua new file mode 100755 index 000000000..0e4bd709d --- /dev/null +++ b/xmake/templates/rust/console/project/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("[targetname]") + + -- set kind + set_kind("binary") + + -- add files + add_files("src/*.rs") + |
