summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2017-05-19 21:32:52 +0800
committerruki <[email protected]>2017-05-19 21:32:52 +0800
commitc6876982657c8bf65b7e2a05fc1206b3aacc0ff8 (patch)
tree222ed349745629e16a78b2dd12368a6a99ca2641 /tests
parent03b7d8b955d11895cc15332360eca7b14d6cf58f (diff)
remove rust share library test
Diffstat (limited to 'tests')
-rw-r--r--tests/projects/shared_library_rust/src/interfaces.rs5
-rw-r--r--tests/projects/shared_library_rust/src/main.rs7
-rwxr-xr-xtests/projects/shared_library_rust/xmake.lua48
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)")
-
-