xref: /qemu/rust/meson.build (revision 1563f287dc9c4bc6a50d380095e966ac039ac24a)
1subproject('anyhow-1-rs', required: true)
2subproject('bilge-0.2-rs', required: true)
3subproject('bilge-impl-0.2-rs', required: true)
4subproject('foreign-0.3-rs', required: true)
5subproject('libc-0.2-rs', required: true)
6
7anyhow_rs = dependency('anyhow-1-rs')
8bilge_rs = dependency('bilge-0.2-rs')
9bilge_impl_rs = dependency('bilge-impl-0.2-rs')
10foreign_rs = dependency('foreign-0.3-rs')
11libc_rs = dependency('libc-0.2-rs')
12
13subproject('proc-macro2-1-rs', required: true)
14subproject('quote-1-rs', required: true)
15subproject('syn-2-rs', required: true)
16
17quote_rs_native = dependency('quote-1-rs', native: true)
18syn_rs_native = dependency('syn-2-rs', native: true)
19proc_macro2_rs_native = dependency('proc-macro2-1-rs', native: true)
20
21qemuutil_rs = qemuutil.partial_dependency(link_args: true, links: true)
22
23genrs = []
24
25subdir('qemu-api-macros')
26subdir('bits')
27subdir('qemu-api')
28
29subdir('hw')
30
31cargo = find_program('cargo', required: false)
32
33if cargo.found()
34  run_target('rustfmt',
35    command: [config_host['MESON'], 'devenv',
36              '--workdir', '@CURRENT_SOURCE_DIR@',
37              cargo, 'fmt'],
38    depends: genrs)
39endif
40