From 0e8eba7f644571ea0beb40334d2a3d0b150ac4ef Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 5 Apr 2017 10:30:40 +0100 Subject: gnome: Allow modules to optionally generate ObjectManager boilerplate Fixes: https://github.com/mesonbuild/meson/issues/1539 --- authors.txt | 1 + mesonbuild/modules/gnome.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/authors.txt b/authors.txt index 8117d454e..467ab750d 100644 --- a/authors.txt +++ b/authors.txt @@ -78,3 +78,4 @@ Dylan Baker Aaron Plattner Jon Turney Wade Berrier +Richard Hughes diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 4b366bf23..55f1de0e0 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -766,6 +766,8 @@ class GnomeModule(ExtensionModule): cmd += ['--interface-prefix', kwargs.pop('interface_prefix')] if 'namespace' in kwargs: cmd += ['--c-namespace', kwargs.pop('namespace')] + if kwargs.get('object_manager', False): + cmd += ['--c-generate-object-manager'] # https://git.gnome.org/browse/glib/commit/?id=ee09bb704fe9ccb24d92dd86696a0e6bb8f0dc1a if mesonlib.version_compare(self._get_native_glib_version(state), '>= 2.51.3'): -- cgit v1.2.3