test cases/rust/30 rlib link subdir/meson.build
raw| 1 | project( |
| 2 | 'rlib-link-subdir', |
| 3 | ['c', 'rust'], |
| 4 | default_options: ['rust_std=2021'] |
| 5 | ) |
| 6 | |
| 7 | subdir('cdep') |
| 8 | f_sys = static_library( |
| 9 | 'f_sys', |
| 10 | 'f-sys.rs', |
| 11 | link_with: cdep, |
| 12 | rust_abi: 'rust', |
| 13 | ) |
| 14 | |
| 15 | exe = executable( |
| 16 | 'main', |
| 17 | 'main.rs', |
| 18 | link_with: f_sys, |
| 19 | ) |
| 20 | |
| 21 | test('basic', exe) |