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