]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: disable export-dbus-interfaces target when cross-compiling
authorLuca Boccassi <bluca@debian.org>
Tue, 8 Feb 2022 13:19:52 +0000 (13:19 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 9 Feb 2022 13:31:44 +0000 (14:31 +0100)
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.

meson.build

index b8b01e0deb7a4b2c62e7270177c464f17ce34b61..428ebb2102ecebce486bc1612e59b390097df721 100644 (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
 
 ############################################################