[empathy] Move account plugins to their own dir



commit b73b93e7cfb16579ef6ec18ef01acdac2c6c24f3
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Sep 6 09:49:10 2012 +0200

    Move account plugins to their own dir
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683415

 configure.ac                                       |    1 +
 ubuntu-online-accounts/cc-plugins/Makefile.am      |  228 +-------------------
 .../cc-plugins/account-plugins/Makefile.am         |  225 +++++++++++++++++++
 .../empathy-accounts-plugin-aim.c                  |    0
 .../empathy-accounts-plugin-aim.h                  |    0
 .../empathy-accounts-plugin-gadugadu.c             |    0
 .../empathy-accounts-plugin-gadugadu.h             |    0
 .../empathy-accounts-plugin-groupwise.c            |    0
 .../empathy-accounts-plugin-groupwise.h            |    0
 .../empathy-accounts-plugin-icq.c                  |    0
 .../empathy-accounts-plugin-icq.h                  |    0
 .../empathy-accounts-plugin-irc.c                  |    0
 .../empathy-accounts-plugin-irc.h                  |    0
 .../empathy-accounts-plugin-jabber.c               |    0
 .../empathy-accounts-plugin-jabber.h               |    0
 .../empathy-accounts-plugin-local-xmpp.c           |    0
 .../empathy-accounts-plugin-local-xmpp.h           |    0
 .../empathy-accounts-plugin-mxit.c                 |    0
 .../empathy-accounts-plugin-mxit.h                 |    0
 .../empathy-accounts-plugin-myspace.c              |    0
 .../empathy-accounts-plugin-myspace.h              |    0
 .../empathy-accounts-plugin-sametime.c             |    0
 .../empathy-accounts-plugin-sametime.h             |    0
 .../empathy-accounts-plugin-sip.c                  |    0
 .../empathy-accounts-plugin-sip.h                  |    0
 .../empathy-accounts-plugin-widget.c               |    0
 .../empathy-accounts-plugin-widget.h               |    0
 .../empathy-accounts-plugin-yahoo.c                |    0
 .../empathy-accounts-plugin-yahoo.h                |    0
 .../empathy-accounts-plugin-yahoojp.c              |    0
 .../empathy-accounts-plugin-yahoojp.h              |    0
 .../empathy-accounts-plugin-zephyr.c               |    0
 .../empathy-accounts-plugin-zephyr.h               |    0
 .../empathy-accounts-plugin.c                      |    0
 .../empathy-accounts-plugin.h                      |    0
 .../cc-plugins/generate-plugins.py                 |   33 ++--
 36 files changed, 242 insertions(+), 245 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 45acac2..904f454 100644
--- a/configure.ac
+++ b/configure.ac
@@ -635,6 +635,7 @@ AC_CONFIG_FILES([
    ubuntu-online-accounts/Makefile
    ubuntu-online-accounts/mc-plugin/Makefile
    ubuntu-online-accounts/cc-plugins/Makefile
+   ubuntu-online-accounts/cc-plugins/account-plugins/Makefile
    ubuntu-online-accounts/cc-plugins/providers/Makefile
    ubuntu-online-accounts/cc-plugins/services/Makefile
    ubuntu-online-accounts/cc-plugins/app-plugin/Makefile
diff --git a/ubuntu-online-accounts/cc-plugins/Makefile.am b/ubuntu-online-accounts/cc-plugins/Makefile.am
index b87b19c..c8c3ce0 100644
--- a/ubuntu-online-accounts/cc-plugins/Makefile.am
+++ b/ubuntu-online-accounts/cc-plugins/Makefile.am
@@ -1,227 +1 @@
-# Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
-# Do NOT edit manually
-SUBDIRS = providers services app-plugin
-
-plugindir = $(ACCOUNTS_PROVIDER_PLUGIN_DIR)
-
-INCLUDES =					\
-	-I$(top_builddir)			\
-	-I$(top_srcdir)				\
-	-DLOCALEDIR=\""$(datadir)/locale"\"	\
-	$(UOA_CFLAGS)				\
-	$(WARN_CFLAGS)				\
-	$(ERROR_CFLAGS)				\
-	$(DISABLE_DEPRECATED)			\
-	$(EMPATHY_CFLAGS)
-
-plugin_LTLIBRARIES = \
-	libaim.la\
-	libgadugadu.la\
-	libgroupwise.la\
-	libicq.la\
-	libirc.la\
-	libjabber.la\
-	libmxit.la\
-	libmyspace.la\
-	libsip.la\
-	liblocal-xmpp.la\
-	libsametime.la\
-	libyahoojp.la\
-	libyahoo.la\
-	libzephyr.la \
-	$(NULL)
-
-libaim_la_SOURCES = \
-	empathy-accounts-plugin.c \
-	empathy-accounts-plugin.h \
-	empathy-accounts-plugin-aim.c \
-	empathy-accounts-plugin-aim.h \
-	empathy-accounts-plugin-widget.c \
-	empathy-accounts-plugin-widget.h
-libaim_la_LDFLAGS = -module -avoid-version
-libaim_la_LIBADD = \
-	$(UOA_LIBS)					\
-	$(top_builddir)/libempathy/libempathy.la \
-	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
-
-
-libgadugadu_la_SOURCES = \
-	empathy-accounts-plugin.c \
-	empathy-accounts-plugin.h \
-	empathy-accounts-plugin-gadugadu.c \
-	empathy-accounts-plugin-gadugadu.h \
-	empathy-accounts-plugin-widget.c \
-	empathy-accounts-plugin-widget.h
-libgadugadu_la_LDFLAGS = -module -avoid-version
-libgadugadu_la_LIBADD = \
-	$(UOA_LIBS)					\
-	$(top_builddir)/libempathy/libempathy.la \
-	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
-
-
-libgroupwise_la_SOURCES = \
-	empathy-accounts-plugin.c \
-	empathy-accounts-plugin.h \
-	empathy-accounts-plugin-groupwise.c \
-	empathy-accounts-plugin-groupwise.h \
-	empathy-accounts-plugin-widget.c \
-	empathy-accounts-plugin-widget.h
-libgroupwise_la_LDFLAGS = -module -avoid-version
-libgroupwise_la_LIBADD = \
-	$(UOA_LIBS)					\
-	$(top_builddir)/libempathy/libempathy.la \
-	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
-
-
-libicq_la_SOURCES = \
-	empathy-accounts-plugin.c \
-	empathy-accounts-plugin.h \
-	empathy-accounts-plugin-icq.c \
-	empathy-accounts-plugin-icq.h \
-	empathy-accounts-plugin-widget.c \
-	empathy-accounts-plugin-widget.h
-libicq_la_LDFLAGS = -module -avoid-version
-libicq_la_LIBADD = \
-	$(UOA_LIBS)					\
-	$(top_builddir)/libempathy/libempathy.la \
-	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
-
-
-libirc_la_SOURCES = \
-	empathy-accounts-plugin.c \
-	empathy-accounts-plugin.h \
-	empathy-accounts-plugin-irc.c \
-	empathy-accounts-plugin-irc.h \
-	empathy-accounts-plugin-widget.c \
-	empathy-accounts-plugin-widget.h
-libirc_la_LDFLAGS = -module -avoid-version
-libirc_la_LIBADD = \
-	$(UOA_LIBS)					\
-	$(top_builddir)/libempathy/libempathy.la \
-	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
-
-
-libjabber_la_SOURCES = \
-	empathy-accounts-plugin.c \
-	empathy-accounts-plugin.h \
-	empathy-accounts-plugin-jabber.c \
-	empathy-accounts-plugin-jabber.h \
-	empathy-accounts-plugin-widget.c \
-	empathy-accounts-plugin-widget.h
-libjabber_la_LDFLAGS = -module -avoid-version
-libjabber_la_LIBADD = \
-	$(UOA_LIBS)					\
-	$(top_builddir)/libempathy/libempathy.la \
-	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
-
-
-libmxit_la_SOURCES = \
-	empathy-accounts-plugin.c \
-	empathy-accounts-plugin.h \
-	empathy-accounts-plugin-mxit.c \
-	empathy-accounts-plugin-mxit.h \
-	empathy-accounts-plugin-widget.c \
-	empathy-accounts-plugin-widget.h
-libmxit_la_LDFLAGS = -module -avoid-version
-libmxit_la_LIBADD = \
-	$(UOA_LIBS)					\
-	$(top_builddir)/libempathy/libempathy.la \
-	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
-
-
-libmyspace_la_SOURCES = \
-	empathy-accounts-plugin.c \
-	empathy-accounts-plugin.h \
-	empathy-accounts-plugin-myspace.c \
-	empathy-accounts-plugin-myspace.h \
-	empathy-accounts-plugin-widget.c \
-	empathy-accounts-plugin-widget.h
-libmyspace_la_LDFLAGS = -module -avoid-version
-libmyspace_la_LIBADD = \
-	$(UOA_LIBS)					\
-	$(top_builddir)/libempathy/libempathy.la \
-	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
-
-
-libsip_la_SOURCES = \
-	empathy-accounts-plugin.c \
-	empathy-accounts-plugin.h \
-	empathy-accounts-plugin-sip.c \
-	empathy-accounts-plugin-sip.h \
-	empathy-accounts-plugin-widget.c \
-	empathy-accounts-plugin-widget.h
-libsip_la_LDFLAGS = -module -avoid-version
-libsip_la_LIBADD = \
-	$(UOA_LIBS)					\
-	$(top_builddir)/libempathy/libempathy.la \
-	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
-
-
-liblocal_xmpp_la_SOURCES = \
-	empathy-accounts-plugin.c \
-	empathy-accounts-plugin.h \
-	empathy-accounts-plugin-local-xmpp.c \
-	empathy-accounts-plugin-local-xmpp.h \
-	empathy-accounts-plugin-widget.c \
-	empathy-accounts-plugin-widget.h
-liblocal_xmpp_la_LDFLAGS = -module -avoid-version
-liblocal_xmpp_la_LIBADD = \
-	$(UOA_LIBS)					\
-	$(top_builddir)/libempathy/libempathy.la \
-	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
-
-
-libsametime_la_SOURCES = \
-	empathy-accounts-plugin.c \
-	empathy-accounts-plugin.h \
-	empathy-accounts-plugin-sametime.c \
-	empathy-accounts-plugin-sametime.h \
-	empathy-accounts-plugin-widget.c \
-	empathy-accounts-plugin-widget.h
-libsametime_la_LDFLAGS = -module -avoid-version
-libsametime_la_LIBADD = \
-	$(UOA_LIBS)					\
-	$(top_builddir)/libempathy/libempathy.la \
-	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
-
-
-libyahoojp_la_SOURCES = \
-	empathy-accounts-plugin.c \
-	empathy-accounts-plugin.h \
-	empathy-accounts-plugin-yahoojp.c \
-	empathy-accounts-plugin-yahoojp.h \
-	empathy-accounts-plugin-widget.c \
-	empathy-accounts-plugin-widget.h
-libyahoojp_la_LDFLAGS = -module -avoid-version
-libyahoojp_la_LIBADD = \
-	$(UOA_LIBS)					\
-	$(top_builddir)/libempathy/libempathy.la \
-	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
-
-
-libyahoo_la_SOURCES = \
-	empathy-accounts-plugin.c \
-	empathy-accounts-plugin.h \
-	empathy-accounts-plugin-yahoo.c \
-	empathy-accounts-plugin-yahoo.h \
-	empathy-accounts-plugin-widget.c \
-	empathy-accounts-plugin-widget.h
-libyahoo_la_LDFLAGS = -module -avoid-version
-libyahoo_la_LIBADD = \
-	$(UOA_LIBS)					\
-	$(top_builddir)/libempathy/libempathy.la \
-	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
-
-
-libzephyr_la_SOURCES = \
-	empathy-accounts-plugin.c \
-	empathy-accounts-plugin.h \
-	empathy-accounts-plugin-zephyr.c \
-	empathy-accounts-plugin-zephyr.h \
-	empathy-accounts-plugin-widget.c \
-	empathy-accounts-plugin-widget.h
-libzephyr_la_LDFLAGS = -module -avoid-version
-libzephyr_la_LIBADD = \
-	$(UOA_LIBS)					\
-	$(top_builddir)/libempathy/libempathy.la \
-	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
+SUBDIRS = account-plugins providers services app-plugin
diff --git a/ubuntu-online-accounts/cc-plugins/account-plugins/Makefile.am b/ubuntu-online-accounts/cc-plugins/account-plugins/Makefile.am
new file mode 100644
index 0000000..1d84b28
--- /dev/null
+++ b/ubuntu-online-accounts/cc-plugins/account-plugins/Makefile.am
@@ -0,0 +1,225 @@
+# Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
+# Do NOT edit manually
+plugindir = $(ACCOUNTS_PROVIDER_PLUGIN_DIR)
+
+INCLUDES =					\
+	-I$(top_builddir)			\
+	-I$(top_srcdir)				\
+	-DLOCALEDIR=\""$(datadir)/locale"\"	\
+	$(UOA_CFLAGS)				\
+	$(WARN_CFLAGS)				\
+	$(ERROR_CFLAGS)				\
+	$(DISABLE_DEPRECATED)			\
+	$(EMPATHY_CFLAGS)
+
+plugin_LTLIBRARIES = \
+	libaim.la\
+	libgadugadu.la\
+	libgroupwise.la\
+	libicq.la\
+	libirc.la\
+	libjabber.la\
+	libmxit.la\
+	libmyspace.la\
+	libsip.la\
+	liblocal-xmpp.la\
+	libsametime.la\
+	libyahoojp.la\
+	libyahoo.la\
+	libzephyr.la \
+	$(NULL)
+
+libaim_la_SOURCES = \
+	empathy-accounts-plugin.c \
+	empathy-accounts-plugin.h \
+	empathy-accounts-plugin-aim.c \
+	empathy-accounts-plugin-aim.h \
+	empathy-accounts-plugin-widget.c \
+	empathy-accounts-plugin-widget.h
+libaim_la_LDFLAGS = -module -avoid-version
+libaim_la_LIBADD = \
+	$(UOA_LIBS)					\
+	$(top_builddir)/libempathy/libempathy.la \
+	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
+
+
+libgadugadu_la_SOURCES = \
+	empathy-accounts-plugin.c \
+	empathy-accounts-plugin.h \
+	empathy-accounts-plugin-gadugadu.c \
+	empathy-accounts-plugin-gadugadu.h \
+	empathy-accounts-plugin-widget.c \
+	empathy-accounts-plugin-widget.h
+libgadugadu_la_LDFLAGS = -module -avoid-version
+libgadugadu_la_LIBADD = \
+	$(UOA_LIBS)					\
+	$(top_builddir)/libempathy/libempathy.la \
+	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
+
+
+libgroupwise_la_SOURCES = \
+	empathy-accounts-plugin.c \
+	empathy-accounts-plugin.h \
+	empathy-accounts-plugin-groupwise.c \
+	empathy-accounts-plugin-groupwise.h \
+	empathy-accounts-plugin-widget.c \
+	empathy-accounts-plugin-widget.h
+libgroupwise_la_LDFLAGS = -module -avoid-version
+libgroupwise_la_LIBADD = \
+	$(UOA_LIBS)					\
+	$(top_builddir)/libempathy/libempathy.la \
+	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
+
+
+libicq_la_SOURCES = \
+	empathy-accounts-plugin.c \
+	empathy-accounts-plugin.h \
+	empathy-accounts-plugin-icq.c \
+	empathy-accounts-plugin-icq.h \
+	empathy-accounts-plugin-widget.c \
+	empathy-accounts-plugin-widget.h
+libicq_la_LDFLAGS = -module -avoid-version
+libicq_la_LIBADD = \
+	$(UOA_LIBS)					\
+	$(top_builddir)/libempathy/libempathy.la \
+	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
+
+
+libirc_la_SOURCES = \
+	empathy-accounts-plugin.c \
+	empathy-accounts-plugin.h \
+	empathy-accounts-plugin-irc.c \
+	empathy-accounts-plugin-irc.h \
+	empathy-accounts-plugin-widget.c \
+	empathy-accounts-plugin-widget.h
+libirc_la_LDFLAGS = -module -avoid-version
+libirc_la_LIBADD = \
+	$(UOA_LIBS)					\
+	$(top_builddir)/libempathy/libempathy.la \
+	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
+
+
+libjabber_la_SOURCES = \
+	empathy-accounts-plugin.c \
+	empathy-accounts-plugin.h \
+	empathy-accounts-plugin-jabber.c \
+	empathy-accounts-plugin-jabber.h \
+	empathy-accounts-plugin-widget.c \
+	empathy-accounts-plugin-widget.h
+libjabber_la_LDFLAGS = -module -avoid-version
+libjabber_la_LIBADD = \
+	$(UOA_LIBS)					\
+	$(top_builddir)/libempathy/libempathy.la \
+	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
+
+
+libmxit_la_SOURCES = \
+	empathy-accounts-plugin.c \
+	empathy-accounts-plugin.h \
+	empathy-accounts-plugin-mxit.c \
+	empathy-accounts-plugin-mxit.h \
+	empathy-accounts-plugin-widget.c \
+	empathy-accounts-plugin-widget.h
+libmxit_la_LDFLAGS = -module -avoid-version
+libmxit_la_LIBADD = \
+	$(UOA_LIBS)					\
+	$(top_builddir)/libempathy/libempathy.la \
+	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
+
+
+libmyspace_la_SOURCES = \
+	empathy-accounts-plugin.c \
+	empathy-accounts-plugin.h \
+	empathy-accounts-plugin-myspace.c \
+	empathy-accounts-plugin-myspace.h \
+	empathy-accounts-plugin-widget.c \
+	empathy-accounts-plugin-widget.h
+libmyspace_la_LDFLAGS = -module -avoid-version
+libmyspace_la_LIBADD = \
+	$(UOA_LIBS)					\
+	$(top_builddir)/libempathy/libempathy.la \
+	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
+
+
+libsip_la_SOURCES = \
+	empathy-accounts-plugin.c \
+	empathy-accounts-plugin.h \
+	empathy-accounts-plugin-sip.c \
+	empathy-accounts-plugin-sip.h \
+	empathy-accounts-plugin-widget.c \
+	empathy-accounts-plugin-widget.h
+libsip_la_LDFLAGS = -module -avoid-version
+libsip_la_LIBADD = \
+	$(UOA_LIBS)					\
+	$(top_builddir)/libempathy/libempathy.la \
+	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
+
+
+liblocal_xmpp_la_SOURCES = \
+	empathy-accounts-plugin.c \
+	empathy-accounts-plugin.h \
+	empathy-accounts-plugin-local-xmpp.c \
+	empathy-accounts-plugin-local-xmpp.h \
+	empathy-accounts-plugin-widget.c \
+	empathy-accounts-plugin-widget.h
+liblocal_xmpp_la_LDFLAGS = -module -avoid-version
+liblocal_xmpp_la_LIBADD = \
+	$(UOA_LIBS)					\
+	$(top_builddir)/libempathy/libempathy.la \
+	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
+
+
+libsametime_la_SOURCES = \
+	empathy-accounts-plugin.c \
+	empathy-accounts-plugin.h \
+	empathy-accounts-plugin-sametime.c \
+	empathy-accounts-plugin-sametime.h \
+	empathy-accounts-plugin-widget.c \
+	empathy-accounts-plugin-widget.h
+libsametime_la_LDFLAGS = -module -avoid-version
+libsametime_la_LIBADD = \
+	$(UOA_LIBS)					\
+	$(top_builddir)/libempathy/libempathy.la \
+	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
+
+
+libyahoojp_la_SOURCES = \
+	empathy-accounts-plugin.c \
+	empathy-accounts-plugin.h \
+	empathy-accounts-plugin-yahoojp.c \
+	empathy-accounts-plugin-yahoojp.h \
+	empathy-accounts-plugin-widget.c \
+	empathy-accounts-plugin-widget.h
+libyahoojp_la_LDFLAGS = -module -avoid-version
+libyahoojp_la_LIBADD = \
+	$(UOA_LIBS)					\
+	$(top_builddir)/libempathy/libempathy.la \
+	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
+
+
+libyahoo_la_SOURCES = \
+	empathy-accounts-plugin.c \
+	empathy-accounts-plugin.h \
+	empathy-accounts-plugin-yahoo.c \
+	empathy-accounts-plugin-yahoo.h \
+	empathy-accounts-plugin-widget.c \
+	empathy-accounts-plugin-widget.h
+libyahoo_la_LDFLAGS = -module -avoid-version
+libyahoo_la_LIBADD = \
+	$(UOA_LIBS)					\
+	$(top_builddir)/libempathy/libempathy.la \
+	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
+
+
+libzephyr_la_SOURCES = \
+	empathy-accounts-plugin.c \
+	empathy-accounts-plugin.h \
+	empathy-accounts-plugin-zephyr.c \
+	empathy-accounts-plugin-zephyr.h \
+	empathy-accounts-plugin-widget.c \
+	empathy-accounts-plugin-widget.h
+libzephyr_la_LDFLAGS = -module -avoid-version
+libzephyr_la_LIBADD = \
+	$(UOA_LIBS)					\
+	$(top_builddir)/libempathy/libempathy.la \
+	$(top_builddir)/libempathy-gtk/libempathy-gtk.la
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-aim.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-aim.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-aim.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-aim.h
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-gadugadu.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-gadugadu.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-gadugadu.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-gadugadu.h
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-groupwise.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-groupwise.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-groupwise.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-groupwise.h
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-icq.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-icq.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-icq.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-icq.h
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-irc.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-irc.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-irc.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-irc.h
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-jabber.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-jabber.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-jabber.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-jabber.h
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-local-xmpp.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-local-xmpp.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-local-xmpp.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-local-xmpp.h
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-mxit.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-mxit.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-mxit.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-mxit.h
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-myspace.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-myspace.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-myspace.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-myspace.h
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sametime.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sametime.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sametime.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sametime.h
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sip.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sip.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sip.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sip.h
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.h
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoo.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoo.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoo.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoo.h
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoojp.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoojp.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoojp.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoojp.h
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-zephyr.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-zephyr.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-zephyr.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-zephyr.h
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.c
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.c
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.h
similarity index 100%
rename from ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.h
rename to ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.h
diff --git a/ubuntu-online-accounts/cc-plugins/generate-plugins.py b/ubuntu-online-accounts/cc-plugins/generate-plugins.py
index babe543..b3b54f6 100755
--- a/ubuntu-online-accounts/cc-plugins/generate-plugins.py
+++ b/ubuntu-online-accounts/cc-plugins/generate-plugins.py
@@ -25,7 +25,7 @@ class Plugin:
         self.protocol = protocol
         self.icon = icon
 
-##### The plugin itself #####
+##### account-plugins/ #####
 
 def magic_replace(text, protocol):
     p = protocol.replace('-', '_')
@@ -42,7 +42,7 @@ def magic_replace(text, protocol):
 
 def generate_plugin_header(p):
     # header
-    f = open('empathy-accounts-plugin-%s.h' % p.protocol, 'w')
+    f = open('account-plugins/empathy-accounts-plugin-%s.h' % p.protocol, 'w')
 
     tmp = '''/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
  * Do NOT edit manually */
@@ -124,7 +124,7 @@ G_END_DECLS
 
 def generate_plugin_code(p):
     # header
-    f = open('empathy-accounts-plugin-%s.c' % p.protocol, 'w')
+    f = open('account-plugins/empathy-accounts-plugin-%s.c' % p.protocol, 'w')
 
     tmp = '''/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
  * Do NOT edit manually */
@@ -175,12 +175,6 @@ ap_module_get_object_type (void)
 
     f.write(magic_replace (tmp, p.protocol))
 
-def generate_plugins(plugins):
-    '''empathy-accounts-plugin-$protocol.[ch]'''
-    for p in plugins:
-        generate_plugin_header(p)
-        generate_plugin_code(p)
-
 def generate_build_block(p):
     la = 'lib%s_la' % p.protocol.replace('-', '_')
 
@@ -200,24 +194,28 @@ def generate_build_block(p):
 
     return output
 
-def generate_makefile_am(plugins):
-    '''Generate Makefile.am'''
+
+def generate_account_plugins(plugins):
+    '''account-plugins/'''
     libs = []
     build_blocks = []
 
     for p in plugins:
+        # empathy-accounts-plugin-$protocol.[ch]'''
+        generate_plugin_header(p)
+        generate_plugin_code(p)
+
         name = '	lib%s.la' % p.protocol
         libs.append(name)
 
         build_blocks.append(generate_build_block(p))
 
-    f = open('Makefile.am', 'w')
+    # Makefile.am
+    f = open('account-plugins/Makefile.am', 'w')
 
     f.write(
 '''# Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
 # Do NOT edit manually
-SUBDIRS = providers services app-plugin
-
 plugindir = $(ACCOUNTS_PROVIDER_PLUGIN_DIR)
 
 INCLUDES =					\\
@@ -236,7 +234,7 @@ plugin_LTLIBRARIES = \\
 
 %s''' % ('\\\n'.join(libs), '\n\n'.join(build_blocks)))
 
-##### Providers #####
+##### providers/ #####
 
 def generate_provider_file(p):
     f = open('providers/%s.provider' % p.protocol, 'w')
@@ -274,7 +272,7 @@ providers_DATA = \\
 EXTRA_DIST = $(providers_DATA)
 ''' % ('\\\n'.join(providers)))
 
-##### Services #####
+##### services/ #####
 
 def generate_service_file(p):
     f = open('services/%s-im.service' % p.protocol, 'w')
@@ -333,8 +331,7 @@ def generate_all():
     for name, cm, protocol, icon in ALL:
         plugins.append(Plugin(name, cm, protocol, icon))
 
-    generate_plugins(plugins)
-    generate_makefile_am(plugins)
+    generate_account_plugins(plugins)
     generate_providers(plugins)
     generate_services(plugins)
 



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