mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
100 lines
2.1 KiB
Meson
100 lines
2.1 KiB
Meson
|
qemu_driver_sources = [
|
||
|
'qemu_agent.c',
|
||
|
'qemu_alias.c',
|
||
|
'qemu_backup.c',
|
||
|
'qemu_block.c',
|
||
|
'qemu_blockjob.c',
|
||
|
'qemu_capabilities.c',
|
||
|
'qemu_cgroup.c',
|
||
|
'qemu_checkpoint.c',
|
||
|
'qemu_command.c',
|
||
|
'qemu_conf.c',
|
||
|
'qemu_dbus.c',
|
||
|
'qemu_domain.c',
|
||
|
'qemu_domain_address.c',
|
||
|
'qemu_domainjob.c',
|
||
|
'qemu_driver.c',
|
||
|
'qemu_extdevice.c',
|
||
|
'qemu_firmware.c',
|
||
|
'qemu_hostdev.c',
|
||
|
'qemu_hotplug.c',
|
||
|
'qemu_interface.c',
|
||
|
'qemu_interop_config.c',
|
||
|
'qemu_migration.c',
|
||
|
'qemu_migration_cookie.c',
|
||
|
'qemu_migration_params.c',
|
||
|
'qemu_monitor.c',
|
||
|
'qemu_monitor_json.c',
|
||
|
'qemu_monitor_text.c',
|
||
|
'qemu_process.c',
|
||
|
'qemu_qapi.c',
|
||
|
'qemu_security.c',
|
||
|
'qemu_slirp.c',
|
||
|
'qemu_tpm.c',
|
||
|
'qemu_validate.c',
|
||
|
'qemu_vhost_user.c',
|
||
|
'qemu_vhost_user_gpu.c',
|
||
|
'qemu_virtiofs.c',
|
||
|
]
|
||
|
|
||
|
qemu_dtrace_gen_headers = []
|
||
|
qemu_dtrace_gen_objects = []
|
||
|
|
||
|
if conf.has('WITH_DTRACE_PROBES')
|
||
|
infile = 'libvirt_qemu_probes.d'
|
||
|
out_h = 'libvirt_qemu_probes.h'
|
||
|
out_o = 'libvirt_qemu_probes.o'
|
||
|
out_stp = 'libvirt_qemu_probes.stp'
|
||
|
|
||
|
qemu_dtrace_gen_headers += custom_target(
|
||
|
out_h,
|
||
|
input: infile,
|
||
|
output: out_h,
|
||
|
command: [ dtrace_prog, '-o', '@OUTPUT@', '-h', '-s', '@INPUT@' ],
|
||
|
)
|
||
|
|
||
|
qemu_dtrace_gen_objects += custom_target(
|
||
|
out_o,
|
||
|
input: infile,
|
||
|
output: out_o,
|
||
|
command: [ dtrace_prog, '-o', '@OUTPUT@', '-G', '-s', '@INPUT@' ],
|
||
|
)
|
||
|
|
||
|
qemu_dtrace_gen_stp = custom_target(
|
||
|
out_stp,
|
||
|
input: infile,
|
||
|
output: out_stp,
|
||
|
command: [
|
||
|
meson_python_prog, python3_prog.path(), dtrace2systemtap_prog.path(),
|
||
|
bindir, sbindir, libdir, '@INPUT@',
|
||
|
],
|
||
|
capture: true,
|
||
|
install: conf.has('WITH_QEMU'),
|
||
|
install_dir: systemtap_dir,
|
||
|
)
|
||
|
endif
|
||
|
|
||
|
if conf.has('WITH_QEMU')
|
||
|
qemu_driver_impl = static_library(
|
||
|
'virt_driver_qemu_impl',
|
||
|
[
|
||
|
qemu_driver_sources,
|
||
|
qemu_dtrace_gen_headers,
|
||
|
],
|
||
|
dependencies: [
|
||
|
access_dep,
|
||
|
capng_dep,
|
||
|
gnutls_dep,
|
||
|
libnl_dep,
|
||
|
log_dep,
|
||
|
selinux_dep,
|
||
|
src_dep,
|
||
|
xdr_dep,
|
||
|
],
|
||
|
include_directories: [
|
||
|
conf_inc_dir,
|
||
|
hypervisor_inc_dir,
|
||
|
],
|
||
|
)
|
||
|
endif
|