| 1 |
project('staticlib link staticlib', 'c', 'rust') |
| 2 |
|
| 3 |
leaf = static_library('leaf', 'leaf.rs', rust_crate_type : 'rlib') |
| 4 |
# Even though leaf is linked using link_with, this gets implicitly promoted to link_whole because |
| 5 |
# it is an internal Rust project. |
| 6 |
branch = static_library('branch', 'branch.rs', link_with: leaf, rust_crate_type : 'staticlib', rust_dependency_map : { 'leaf' : 'myleaf' }, install : true) |
| 7 |
e = executable('prog', 'prog.c', link_with : branch, install : true) |
| 8 |
test('linktest', e) |