diff options
| -rw-r--r-- | tests/projects/shared_library_rust/src/interfaces.rs | 5 | ||||
| -rw-r--r-- | tests/projects/shared_library_rust/src/main.rs | 7 | ||||
| -rwxr-xr-x | tests/projects/shared_library_rust/xmake.lua | 48 |
3 files changed, 0 insertions, 60 deletions
diff --git a/tests/projects/shared_library_rust/src/interfaces.rs b/tests/projects/shared_library_rust/src/interfaces.rs deleted file mode 100644 index 277008ba4..000000000 --- a/tests/projects/shared_library_rust/src/interfaces.rs +++ /dev/null @@ -1,5 +0,0 @@ -pub fn add(a: i32, b: i32) -> i32 -{ - return a + b; -} - diff --git a/tests/projects/shared_library_rust/src/main.rs b/tests/projects/shared_library_rust/src/main.rs deleted file mode 100644 index 0cd4449d1..000000000 --- a/tests/projects/shared_library_rust/src/main.rs +++ /dev/null @@ -1,7 +0,0 @@ -extern crate interfaces; - -fn main() -{ - println!("hello xmake!"); - println!("add: {}", interfaces::add(1, 1)); -} diff --git a/tests/projects/shared_library_rust/xmake.lua b/tests/projects/shared_library_rust/xmake.lua deleted file mode 100755 index 3abd23640..000000000 --- a/tests/projects/shared_library_rust/xmake.lua +++ /dev/null @@ -1,48 +0,0 @@ --- 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") - - -- set kind - set_kind("shared") - - -- add files - add_files("src/interfaces.rs") - --- add target -target("test") - - -- set kind - set_kind("binary") - - -- add deps - add_deps("interfaces") - - -- add files - add_files("src/main.rs") - - -- add link directory - add_linkdirs("$(buildir)") - - |
