meson: disable export-dbus-interfaces target when cross-compiling

ERROR:
Cannot use target systemd as a generator because it is built for the
host machine and no exe wrapper is defined or needs_exe_wrapper is
true. You might want to set `native: true` instead to build it for
the build machine.
This commit is contained in:
Luca Boccassi 2022-02-08 13:19:52 +00:00 committed by Zbigniew Jędrzejewski-Szmek
parent a5e6986ac0
commit 0628d48ec2

View file

@ -3967,12 +3967,14 @@ run_target(
alias_target('update-dbus-docs', update_dbus_docs)
alias_target('update-man-rules', update_man_rules)
custom_target(
'export-dbus-interfaces',
output : dbus_interfaces_dir_name,
install : dbus_interfaces_dir != 'no',
install_dir : dbus_interfaces_dir_parent,
command : [export_dbus_interfaces_py, '@OUTPUT@', dbus_programs])
if not meson.is_cross_build()
custom_target(
'export-dbus-interfaces',
output : dbus_interfaces_dir_name,
install : dbus_interfaces_dir != 'no',
install_dir : dbus_interfaces_dir_parent,
command : [export_dbus_interfaces_py, '@OUTPUT@', dbus_programs])
endif
############################################################