diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-06-19 00:25:15 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-06-19 00:25:15 +0300 |
commit | 7b4595e07c6da1c147a6d0f5df8c2bd24b6b46ae (patch) | |
tree | dba2b9ff376c4ab023695e0e0cbc6570fcd412fb /test cases/rust | |
parent | bf4708eb832538189b1e878cd11cb7888d7f2c70 (diff) | |
download | meson-7b4595e07c6da1c147a6d0f5df8c2bd24b6b46ae.zip meson-7b4595e07c6da1c147a6d0f5df8c2bd24b6b46ae.tar.gz meson-7b4595e07c6da1c147a6d0f5df8c2bd24b6b46ae.tar.bz2 |
Set up dependencies for Rust linking. Does not work fully yet.
Diffstat (limited to 'test cases/rust')
-rw-r--r-- | test cases/rust/2 sharedlib/meson.build | 2 | ||||
-rw-r--r-- | test cases/rust/2 sharedlib/prog.rs | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test cases/rust/2 sharedlib/meson.build b/test cases/rust/2 sharedlib/meson.build index 88a0623..563ef15 100644 --- a/test cases/rust/2 sharedlib/meson.build +++ b/test cases/rust/2 sharedlib/meson.build @@ -1,3 +1,5 @@ project('rust shared library', 'rust') l = shared_library('stuff', 'stuff.rs') +e = executable('prog', 'prog.rs', link_with : l) +test('linktest', e) diff --git a/test cases/rust/2 sharedlib/prog.rs b/test cases/rust/2 sharedlib/prog.rs new file mode 100644 index 0000000..fbf3181 --- /dev/null +++ b/test cases/rust/2 sharedlib/prog.rs @@ -0,0 +1,3 @@ +extern crate stuff; + +fn main() { println!("printing: {}", stuff::explore()); } |