2020-07-27 06:24:55 +00:00
|
|
|
hyperv_sources = [
|
|
|
|
'hyperv_driver.c',
|
|
|
|
'hyperv_util.c',
|
|
|
|
'hyperv_wmi.c',
|
|
|
|
'hyperv_wmi_classes.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
hyperv_gen_sources = custom_target(
|
|
|
|
'virthypervgen',
|
|
|
|
input: [
|
|
|
|
'hyperv_wmi_generator.input',
|
|
|
|
],
|
|
|
|
output: [
|
|
|
|
'hyperv_wmi_classes.generated.c',
|
|
|
|
'hyperv_wmi_classes.generated.h',
|
|
|
|
'hyperv_wmi_classes.generated.typedef',
|
|
|
|
],
|
|
|
|
command: [
|
|
|
|
meson_python_prog, python3_prog.path(), hyperv_wmi_generator_prog.path(),
|
|
|
|
meson.source_root() / 'src',
|
|
|
|
meson.build_root() / 'src',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
if conf.has('WITH_HYPERV')
|
|
|
|
hyperv_lib = static_library(
|
|
|
|
'virt_driver_hyperv',
|
|
|
|
[
|
|
|
|
hyperv_sources,
|
|
|
|
hyperv_gen_sources[1],
|
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
openwsman_dep,
|
|
|
|
src_dep,
|
|
|
|
],
|
|
|
|
include_directories: [
|
|
|
|
conf_inc_dir,
|
|
|
|
]
|
|
|
|
)
|
2020-07-27 06:39:38 +00:00
|
|
|
|
|
|
|
libvirt_libs += hyperv_lib
|
2020-07-27 06:24:55 +00:00
|
|
|
endif
|