Upstream: https://gitlab.com/qemu-project/qemu.git Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
37 lines
643 B
Meson
37 lines
643 B
Meson
if not have_system
|
|
subdir_done()
|
|
else
|
|
message('Rust enabled but it is only used by system emulators.')
|
|
endif
|
|
|
|
cargo_ws = import('rust').workspace()
|
|
|
|
genrs = []
|
|
|
|
subdir('qemu-macros')
|
|
|
|
subdir('common')
|
|
subdir('bindings')
|
|
subdir('bits')
|
|
|
|
subdir('util')
|
|
subdir('bql')
|
|
subdir('migration')
|
|
subdir('qom')
|
|
subdir('chardev')
|
|
subdir('hw/core')
|
|
subdir('system')
|
|
subdir('tests')
|
|
subdir('trace')
|
|
subdir('hw')
|
|
|
|
cargo = find_program('cargo', required: false)
|
|
|
|
if cargo.found()
|
|
run_target('rustfmt',
|
|
command: [config_host['MESON'], 'devenv',
|
|
'--workdir', '@CURRENT_SOURCE_DIR@',
|
|
cargo, 'fmt'],
|
|
depends: genrs)
|
|
endif
|