1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-04 21:47:31 +03:00

Disable exporting D-Bus Introspection XML if cross-compiling

This is a soft disable. Passing `dbus-interfaces-dir` build option
will with path or 'yes' enable exports again even when cross
compiling. (maybe your environment will allow to execute
cross compiled binaries)
This commit is contained in:
igo95862 2021-12-11 13:59:17 +03:00 committed by Luca Boccassi
parent b5d3138f91
commit 2e081f18d6

View File

@ -1719,7 +1719,14 @@ public_programs = []
dbus_programs = [] dbus_programs = []
dbus_interfaces_dir = get_option('dbus-interfaces-dir') dbus_interfaces_dir = get_option('dbus-interfaces-dir')
if dbus_interfaces_dir == '' if dbus_interfaces_dir == ''
dbus_interfaces_dir = get_option('datadir') + '/dbus-1' if not meson.is_cross_build()
dbus_interfaces_dir = datadir / 'dbus-1'
else
message('D-Bus interfaces export is disabled during cross build. Pass path or yes to force enable.')
dbus_interfaces_dir = 'no'
endif
elif dbus_interfaces_dir == 'yes'
dbus_interfaces_dir = datadir / 'dbus-1'
endif endif
basic_includes = include_directories( basic_includes = include_directories(