gnome.genmarshal: Use --output when available

This is just cleaner and works around #1417
pull/1446/head
Patrick Griffis 8 years ago committed by Jussi Pakkanen
parent 293520f55f
commit a795ea3cd4
  1. 8
      mesonbuild/modules/gnome.py

@ -915,8 +915,14 @@ class GnomeModule(ExtensionModule):
custom_kwargs = {
'input': sources,
'capture': True,
}
# https://github.com/GNOME/glib/commit/0fbc98097fac4d3e647684f344e508abae109fdf
if mesonlib.version_compare(self._get_native_glib_version(state), '>= 2.51.0'):
cmd += ['--output', '@OUTPUT@']
else:
custom_kwargs['capture'] = True
for arg in known_custom_target_kwargs:
if arg in kwargs:
custom_kwargs[arg] = kwargs[arg]

Loading…
Cancel
Save