diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-06 16:12:44 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-06 16:59:52 +0800 |
commit | d001dd2ca3436cae899456994230b22e1c6ec6c7 (patch) | |
tree | 0a9f3d936b8eb38c106a2eba4d1e5ed5fe9a147f /ubuntu-online-accounts/cc-plugins/generate-plugins.py | |
parent | b73b93e7cfb16579ef6ec18ef01acdac2c6c24f3 (diff) | |
download | gsoc2013-empathy-d001dd2ca3436cae899456994230b22e1c6ec6c7.tar gsoc2013-empathy-d001dd2ca3436cae899456994230b22e1c6ec6c7.tar.gz gsoc2013-empathy-d001dd2ca3436cae899456994230b22e1c6ec6c7.tar.bz2 gsoc2013-empathy-d001dd2ca3436cae899456994230b22e1c6ec6c7.tar.lz gsoc2013-empathy-d001dd2ca3436cae899456994230b22e1c6ec6c7.tar.xz gsoc2013-empathy-d001dd2ca3436cae899456994230b22e1c6ec6c7.tar.zst gsoc2013-empathy-d001dd2ca3436cae899456994230b22e1c6ec6c7.zip |
UOA account plugins: move shared code to a shared lib
Avoid to redefine existing symbols when different plugins are loaded.
https://bugzilla.gnome.org/show_bug.cgi?id=683415
Diffstat (limited to 'ubuntu-online-accounts/cc-plugins/generate-plugins.py')
-rwxr-xr-x | ubuntu-online-accounts/cc-plugins/generate-plugins.py | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/ubuntu-online-accounts/cc-plugins/generate-plugins.py b/ubuntu-online-accounts/cc-plugins/generate-plugins.py index b3b54f6e2..a5acab488 100755 --- a/ubuntu-online-accounts/cc-plugins/generate-plugins.py +++ b/ubuntu-online-accounts/cc-plugins/generate-plugins.py @@ -179,15 +179,11 @@ def generate_build_block(p): la = 'lib%s_la' % p.protocol.replace('-', '_') output = '''%s_SOURCES = \\ - empathy-accounts-plugin.c \\ - empathy-accounts-plugin.h \\ empathy-accounts-plugin-%s.c \\ - empathy-accounts-plugin-%s.h \\ - empathy-accounts-plugin-widget.c \\ - empathy-accounts-plugin-widget.h + empathy-accounts-plugin-%s.h %s_LDFLAGS = -module -avoid-version %s_LIBADD = \\ - $(UOA_LIBS) \\ + libempathy-uoa-account-plugin.la \\ $(top_builddir)/libempathy/libempathy.la \\ $(top_builddir)/libempathy-gtk/libempathy-gtk.la ''' % (la, p.protocol, p.protocol, la, la) @@ -228,6 +224,23 @@ INCLUDES = \\ $(DISABLE_DEPRECATED) \\ $(EMPATHY_CFLAGS) +pkglib_LTLIBRARIES = libempathy-uoa-account-plugin.la + +# this API is not stable and will never be, so use -release to make the +# SONAME of the plugin library change with every Empathy release. +libempathy_uoa_account_plugin_la_LDFLAGS = \\ + -no-undefined \\ + -release $(VERSION) + +libempathy_uoa_account_plugin_la_SOURCES = \\ + empathy-accounts-plugin.c \\ + empathy-accounts-plugin.h \\ + empathy-accounts-plugin-widget.c \\ + empathy-accounts-plugin-widget.h + +libempathy_uoa_account_plugin_la_LIBADD = \\ + $(UOA_LIBS) + plugin_LTLIBRARIES = \\ %s \\ $(NULL) |