[gnome-online-accounts/wip/rishi/issue-73: 1/2] build: Support the use of g_autolist with GoaObject



commit 883cfaed498db16f8cc5fdc73a57fc98de3901ba
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Aug 19 17:07:32 2019 +0200

    build: Support the use of g_autolist with GoaObject
    
    https://gitlab.gnome.org/GNOME/gnome-online-accounts/issues/73

 src/goa/Makefile.am | 1 +
 src/goa/meson.build | 1 +
 2 files changed, 2 insertions(+)
---
diff --git a/src/goa/Makefile.am b/src/goa/Makefile.am
index aa0bcf35..30392360 100644
--- a/src/goa/Makefile.am
+++ b/src/goa/Makefile.am
@@ -41,6 +41,7 @@ BUILT_SOURCES += $(dbus_built_sources)
 $(dbus_built_sources) : Makefile.am $(top_srcdir)/data/dbus-interfaces.xml
        $(AM_V_GEN) gdbus-codegen                                                                       \
                --interface-prefix org.gnome.OnlineAccounts.                            \
+               --c-generate-autocleanup all                                            \
                --c-namespace Goa                                                       \
                --c-generate-object-manager                                             \
                --generate-c-code goa-generated                                         \
diff --git a/src/goa/meson.build b/src/goa/meson.build
index 5f1ab2ab..87fae82c 100644
--- a/src/goa/meson.build
+++ b/src/goa/meson.build
@@ -36,6 +36,7 @@ dbus_sources = gnome.gdbus_codegen(
   sources: dbus_ifaces,
   interface_prefix: 'org.gnome.OnlineAccounts.',
   namespace: goa_ns,
+  autocleanup: 'all',
   object_manager: true,
   docbook: dbus + '-doc',
   install_header: true,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]