test cases/rust/37 apple framework/meson.build
raw| 1 | project('rust apple framework', ['c', 'rust'], meson_version: '>=1.3.0') |
| 2 | |
| 3 | if host_machine.system() != 'darwin' |
| 4 | error('MESON_SKIP_TEST: this test is only for macOS') |
| 5 | endif |
| 6 | |
| 7 | foundation = dependency('appleframeworks', modules: 'Foundation') |
| 8 | |
| 9 | timelib = static_library('timelib', 'lib.rs', dependencies: foundation, rust_abi: 'rust') |
| 10 | alias_target('timelib', timelib) |
| 11 | |
| 12 | exe = executable('main', 'main.rs', link_with: timelib) |
| 13 | test('main', exe) |