diff options
author | Richard Hughes <richard@hughsie.com> | 2017-04-05 10:30:40 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-04-09 18:56:26 +0300 |
commit | 0e8eba7f644571ea0beb40334d2a3d0b150ac4ef (patch) | |
tree | 3b787e5682025406ad8e9e33f57ab6163df1f051 | |
parent | b89af8b6dd0efc97867be96e91630d8a1c4d3316 (diff) | |
download | meson-0e8eba7f644571ea0beb40334d2a3d0b150ac4ef.zip meson-0e8eba7f644571ea0beb40334d2a3d0b150ac4ef.tar.gz meson-0e8eba7f644571ea0beb40334d2a3d0b150ac4ef.tar.bz2 |
gnome: Allow modules to optionally generate ObjectManager boilerplate
Fixes: https://github.com/mesonbuild/meson/issues/1539
-rw-r--r-- | authors.txt | 1 | ||||
-rw-r--r-- | mesonbuild/modules/gnome.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/authors.txt b/authors.txt index 8117d45..467ab75 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 4b366bf..55f1de0 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'): |