libvirt/src/hyperv/meson.build
Daniel P. Berrangé 18c73a4c70 meson: drop use of .path() for python args
When using .path() for an argument to a python script meson will not
setup dependancies on the file. This means that changes to the generator
script will not trigger a rebiuld

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-11-09 16:32:55 +00:00

43 lines
802 B
Meson

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, hyperv_wmi_generator_prog,
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,
]
)
libvirt_libs += hyperv_lib
endif