[gnome-online-accounts/wip/modules: 2/4] build: Groundwork for splitting the providers into loadable modules



commit fde6c2646d5359262aacd8f033d2985ec2c2f345
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Apr 29 16:51:30 2014 +0200

    build: Groundwork for splitting the providers into loadable modules
    
    Fixes: https://bugzilla.gnome.org/729173

 configure.ac               |    3 +++
 src/goabackend/Makefile.am |   10 ++++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7f1c5ed..f37d08a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -147,6 +147,9 @@ if test "$enable_inspector" != "no"; then
   AC_DEFINE(GOA_INSPECTOR_ENABLED, 1, [Enable a WebKitWebInspector for the embedded web view])
 fi
 
+GOA_MODULE_DIR='${libdir}/goa-1.0/modules'
+AC_SUBST(GOA_MODULE_DIR)
+
 # service providers
 #
 
diff --git a/src/goabackend/Makefile.am b/src/goabackend/Makefile.am
index ab41d6d..dac5819 100644
--- a/src/goabackend/Makefile.am
+++ b/src/goabackend/Makefile.am
@@ -2,6 +2,8 @@
 NULL =
 CLEANFILES =
 EXTRA_DIST =
+goamodule_LTLIBRARIES =
+goamoduledir = $(GOA_MODULE_DIR)
 
 AM_CPPFLAGS =                                                  \
        -I$(top_builddir)/src -I$(top_srcdir)/src               \
@@ -23,6 +25,14 @@ AM_CPPFLAGS =                                                        \
        $(WARN_CFLAGS)                                          \
        $(NULL)
 
+module_flags =                                                         \
+       -export-dynamic                                                 \
+       -avoid-version                                                  \
+       -module                                                         \
+       -no-undefined                                                   \
+       -export-symbols-regex '^g_io_module_(load|unload|query)'        \
+       $(NULL)
+
 # ----------------------------------------------------------------------------------------------------
 
 goabackendenumtypes.h: goabackendenums.h goabackendenumtypes.h.template


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