qemu/tests/migration/meson.build
Paolo Bonzini 2564dcbf51 meson: do not unnecessarily use cmake for dependencies
Both gvnc and sysprof-capture come with pkg-config files, so specify
the method to find them.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2023-09-07 13:32:14 +02:00

19 lines
527 B
Meson

sysprof = dependency('sysprof-capture-4', method: 'pkg-config', required: false)
glib_static = dependency('glib-2.0', version: glib_req_ver, required: false,
method: 'pkg-config', static: true)
stress = executable(
'stress',
files('stress.c'),
dependencies: [glib_static, sysprof],
link_args: ['-static'],
build_by_default: false,
)
custom_target(
'initrd-stress.img',
output: 'initrd-stress.img',
input: stress,
command: [find_program('initrd-stress.sh'), '@OUTPUT@', '@INPUT@']
)