| 1 |
project('self-contained', meson_version : '>= 1.3.0') |
| 2 |
|
| 3 |
if not add_languages('c', native : false, required : false) |
| 4 |
error('MESON_SKIP_TEST clang not installed') |
| 5 |
endif |
| 6 |
|
| 7 |
if not add_languages('rust', native : false, required : false) |
| 8 |
error('MESON_SKIP_TEST Rust x86_64-unknown-linux-musl target not installed') |
| 9 |
endif |
| 10 |
|
| 11 |
if meson.get_compiler('c').find_library('libunwind', required : false).found() |
| 12 |
error('MESON_SKIP_TEST libunwind is installed globally') |
| 13 |
endif |
| 14 |
|
| 15 |
lib = static_library('rust', 'lib.rs', rust_abi : 'c') |
| 16 |
|
| 17 |
executable('exe', 'main.c', link_with : lib) |