Skip to content

Commit

Permalink
meson: disable export-dbus-interfaces target when cross-compiling
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bluca authored and keszybz committed Feb 9, 2022
1 parent a5e6986 commit 0628d48
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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

############################################################

Expand Down

0 comments on commit 0628d48

Please sign in to comment.