mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-31 17:05:16 +00:00
e06beacec2
meson wraps python scripts already on win32, so we end up with these failing commands: [1/359] "C:/msys64/ucrt64/bin/meson" "--internal" "exe" "--capture" "src/util/virkeycodetable_atset1.h" "--" "sh" "C:/msys64/home/marca/src/libvirt/scripts/meson-python.sh" "C:/msys64/ucrt64/bin/python3.EXE" "python" "C:/msys64/home/marca/src/libvirt/src/keycodemapdb/tools/keymap-gen" "code-table" "--lang" "stdc" "--varname" "virKeyCodeTable_atset1" "C:/msys64/home/marca/src/libvirt/src/keycodemapdb/data/keymaps.csv" "atset1" FAILED: src/util/virkeycodetable_atset1.h "C:/msys64/ucrt64/bin/meson" "--internal" "exe" "--capture" "src/util/virkeycodetable_atset1.h" "--" "sh" "C:/msys64/home/marca/src/libvirt/scripts/meson-python.sh" "C:/msys64/ucrt64/bin/python3.EXE" "python" "C:/msys64/home/marca/src/libvirt/src/keycodemapdb/tools/keymap-gen" "code-table" "--lang" "stdc" "--varname" "virKeyCodeTable_atset1" "C:/msys64/home/marca/src/libvirt/src/keycodemapdb/data/keymaps.csv" "atset1" If LC_ALL, LANG and LC_CTYPE need to be set, it would probably be better to use a meson environment() instead. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
44 lines
814 B
Meson
44 lines
814 B
Meson
hyperv_sources = [
|
|
'hyperv_driver.c',
|
|
'hyperv_network_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: [
|
|
hyperv_wmi_generator_prog,
|
|
meson.project_source_root() / 'src',
|
|
meson.project_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
|