diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-06-23 20:53:20 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-06-23 20:53:20 +0300 |
commit | 2d23a44e6e6f5baf5d076015f583c61bebfd9fde (patch) | |
tree | 8b8554d722f46587a7710a5ac39cf51fd08004ca /test cases/rust | |
parent | 2366f822d23792fa618da91989cee8e6785960fe (diff) | |
download | meson-2d23a44e6e6f5baf5d076015f583c61bebfd9fde.zip meson-2d23a44e6e6f5baf5d076015f583c61bebfd9fde.tar.gz meson-2d23a44e6e6f5baf5d076015f583c61bebfd9fde.tar.bz2 |
Deal with Rust static libraries, too.
Diffstat (limited to 'test cases/rust')
-rw-r--r-- | test cases/rust/3 staticlib/installed_files.txt | 2 | ||||
-rw-r--r-- | test cases/rust/3 staticlib/meson.build | 5 | ||||
-rw-r--r-- | test cases/rust/3 staticlib/prog.rs | 3 | ||||
-rw-r--r-- | test cases/rust/3 staticlib/stuff.rs | 3 |
4 files changed, 13 insertions, 0 deletions
diff --git a/test cases/rust/3 staticlib/installed_files.txt b/test cases/rust/3 staticlib/installed_files.txt new file mode 100644 index 0000000..4c3dfed --- /dev/null +++ b/test cases/rust/3 staticlib/installed_files.txt @@ -0,0 +1,2 @@ +bin/prog +lib/libstuff-e4d2ee75-1.0.rlib diff --git a/test cases/rust/3 staticlib/meson.build b/test cases/rust/3 staticlib/meson.build new file mode 100644 index 0000000..6769564 --- /dev/null +++ b/test cases/rust/3 staticlib/meson.build @@ -0,0 +1,5 @@ +project('rust static library', 'rust') + +l = static_library('stuff', 'stuff.rs', install : true) +e = executable('prog', 'prog.rs', link_with : l, install : true) +test('linktest', e) diff --git a/test cases/rust/3 staticlib/prog.rs b/test cases/rust/3 staticlib/prog.rs new file mode 100644 index 0000000..fbf3181 --- /dev/null +++ b/test cases/rust/3 staticlib/prog.rs @@ -0,0 +1,3 @@ +extern crate stuff; + +fn main() { println!("printing: {}", stuff::explore()); } diff --git a/test cases/rust/3 staticlib/stuff.rs b/test cases/rust/3 staticlib/stuff.rs new file mode 100644 index 0000000..5e1dcc2 --- /dev/null +++ b/test cases/rust/3 staticlib/stuff.rs @@ -0,0 +1,3 @@ +#![crate_id = "stuff#1.0"] + +pub fn explore() -> &'static str { "librarystring" } |