1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

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.

(cherry picked from commit 0628d48ec2)

Conflicts:
	meson.build
This commit is contained in:
Luca Boccassi 2022-02-08 13:19:52 +00:00
parent 5a9113cb0b
commit 2e323d198d

View File

@ -3889,12 +3889,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 : 'interfaces',
install : dbus_interfaces_dir != 'no',
install_dir : dbus_interfaces_dir,
command : [export_dbus_interfaces_py, '@OUTPUT@', dbus_programs])
if not meson.is_cross_build()
custom_target(
'export-dbus-interfaces',
output : 'interfaces',
install : dbus_interfaces_dir != 'no',
install_dir : dbus_interfaces_dir,
command : [export_dbus_interfaces_py, '@OUTPUT@', dbus_programs])
endif
############################################################