diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-06-25 00:59:33 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-06-25 06:29:22 +0800 |
commit | f0d3f3afdfa314e1e8cd7d8da790878008a46aad (patch) | |
tree | 7116e2a18c7bd50633b2f8de42b5377af1e8172a /mail/importers | |
parent | 94302ea73cde0b470faad653f752406f19f202d7 (diff) | |
download | gsoc2013-evolution-f0d3f3afdfa314e1e8cd7d8da790878008a46aad.tar.gz gsoc2013-evolution-f0d3f3afdfa314e1e8cd7d8da790878008a46aad.tar.zst gsoc2013-evolution-f0d3f3afdfa314e1e8cd7d8da790878008a46aad.zip |
Radically reorganize source code.
- Collect all shell modules into a new top-level 'modules' directory:
$(top_srcdir)/modules/addressbook
$(top_srcdir)/modules/calendar
$(top_srcdir)/modules/mail
Nothing is allowed to link to these, not plugins nor other modules.
THIS SOLVES BUG #571275 AND OPENS THE DOOR TO PORTING TO MAC OS X.
- Mimic the libevolution-mail-shared library from master (except drop
the "shared" suffix) and have libevolution-mail-importers and all
mail-related plugins link to it.
- Discard the a11y subdirectories and have the files live alongside
their counterpart widgets.
Diffstat (limited to 'mail/importers')
-rw-r--r-- | mail/importers/Makefile.am | 33 | ||||
-rw-r--r-- | mail/importers/evolution-mbox-importer.c | 1 | ||||
-rw-r--r-- | mail/importers/mail-importer.c | 14 |
3 files changed, 39 insertions, 9 deletions
diff --git a/mail/importers/Makefile.am b/mail/importers/Makefile.am new file mode 100644 index 0000000000..ecd883cd8b --- /dev/null +++ b/mail/importers/Makefile.am @@ -0,0 +1,33 @@ +if OS_WIN32 +WIN32_BOOTSTRAP_LIBS = \ + $(top_builddir)/win32/libevolution-mail.la +endif + +privsolib_LTLIBRARIES = libevolution-mail-importers.la + +INCLUDES = -I.. \ + -I$(srcdir)/.. \ + -I$(top_srcdir) \ + -I$(top_srcdir)/widgets \ + $(EVOLUTION_MAIL_CFLAGS) \ + -DG_LOG_DOMAIN=\"evolution-mail-importer\" \ + -DEVOLUTION_PRIVDATADIR=\""$(privdatadir)"\" \ + $(IMPORTERS_CFLAGS) + +libevolution_mail_importers_la_SOURCES = \ + mail-importer.c \ + mail-importer.h \ + elm-importer.c \ + pine-importer.c \ + evolution-mbox-importer.c + +libevolution_mail_importers_la_LDFLAGS = $(NO_UNDEFINED) + +libevolution_mail_importers_la_LIBADD = \ + $(WIN32_BOOTSTRAP_LIBS) \ + $(top_builddir)/e-util/libeutil.la \ + $(top_builddir)/filter/libfilter.la \ + $(top_builddir)/mail/libevolution-mail.la \ + $(IMPORTERS_LIBS) + +-include $(top_srcdir)/git.mk diff --git a/mail/importers/evolution-mbox-importer.c b/mail/importers/evolution-mbox-importer.c index e44cf57fef..ade34526fc 100644 --- a/mail/importers/evolution-mbox-importer.c +++ b/mail/importers/evolution-mbox-importer.c @@ -42,7 +42,6 @@ #include "mail/e-mail-local.h" #include "mail/e-mail-store.h" -#include "mail/e-mail-shell-backend.h" #include "mail/em-folder-selection-button.h" #include "mail/em-folder-tree-model.h" #include "mail/mail-mt.h" diff --git a/mail/importers/mail-importer.c b/mail/importers/mail-importer.c index 1e1f423316..dd4de6370b 100644 --- a/mail/importers/mail-importer.c +++ b/mail/importers/mail-importer.c @@ -45,12 +45,12 @@ #include <camel/camel-stream-mem.h> #include "e-util/e-util-private.h" +#include "shell/e-shell-backend.h" -#include "mail/mail-mt.h" -#include "mail/mail-tools.h" - -#include "mail/e-mail-local.h" -#include "mail/e-mail-shell-backend.h" +#include "mail-mt.h" +#include "mail-tools.h" +#include "e-mail-local.h" +#include "em-utils.h" #include "mail-importer.h" @@ -358,7 +358,6 @@ struct _import_folders_data { static void import_folders_rec(struct _import_folders_data *m, const gchar *filepath, const gchar *folderparent) { - EShellBackend *shell_backend; GDir *dir; const gchar *d; struct stat st; @@ -370,8 +369,7 @@ import_folders_rec(struct _import_folders_data *m, const gchar *filepath, const if (dir == NULL) return; - shell_backend = E_SHELL_BACKEND (global_mail_shell_backend); - data_dir = e_shell_backend_get_data_dir (shell_backend); + data_dir = em_utils_get_data_dir (); utf8_filename = g_filename_to_utf8 (filepath, -1, NULL, NULL, NULL); camel_operation_start(NULL, _("Scanning %s"), utf8_filename); |