From: Luca Boccassi Date: Tue, 8 Feb 2022 13:19:52 +0000 (+0000) Subject: meson: disable export-dbus-interfaces target when cross-compiling X-Git-Tag: v251-rc1~320 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0628d48ec2af1c25bede6d94ae49107b17651b68;p=thirdparty%2Fsystemd.git 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. --- diff --git a/meson.build b/meson.build index b8b01e0deb7..428ebb2102e 100644 --- a/meson.build +++ b/meson.build @@ -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 ############################################################