error_DATA = mail-composer.error
errordir = $(privdatadir)/errors

# provides error rule
@EVO_PLUGIN_RULE@

privsolib_LTLIBRARIES = libcomposer.la

libcomposerincludedir = $(privincludedir)/composer

libcomposerinclude_HEADERS = 			\
	e-composer-actions.h			\
	e-composer-activity.h			\
	e-composer-common.h			\
	e-composer-from-header.h		\
	e-composer-header-table.h		\
	e-composer-header.h			\
	e-composer-name-header.h		\
	e-composer-post-header.h		\
	e-composer-private.h			\
	e-composer-text-header.h		\
	e-msg-composer.h

libcomposer_la_CPPFLAGS =						\
	$(AM_CPPFLAGS)							\
	-I$(top_srcdir)							\
	-I$(top_builddir)						\
	-I$(top_builddir)/composer					\
	-I$(top_srcdir)/widgets						\
	-I$(top_builddir)/widgets					\
	-I$(top_srcdir)/widgets/misc					\
	-I$(top_builddir)/widgets/misc					\
	-I$(top_builddir)/shell						\
	-I$(top_srcdir)/shell						\
	-DEVOLUTION_DATADIR=\"$(datadir)\"				\
	-DEVOLUTION_IMAGESDIR=\"$(imagesdir)\"				\
	-DEVOLUTION_UIDIR=\"$(uidir)\"					\
	-DPREFIX=\"$(prefix)\"						\
	-DG_LOG_DOMAIN=\"composer\"					\
	$(GNOME_PLATFORM_CFLAGS)					\
	$(EVOLUTION_MAIL_CFLAGS)

libcomposer_la_SOURCES = 			\
	$(libcomposerinclude_HEADERS)		\
	e-composer-actions.c			\
	e-composer-activity.c			\
	e-composer-from-header.c		\
	e-composer-header-table.c		\
	e-composer-header.c			\
	e-composer-name-header.c		\
	e-composer-post-header.c		\
	e-composer-private.c			\
	e-composer-text-header.c		\
	e-msg-composer.c

libcomposer_la_LDFLAGS = $(NO_UNDEFINED)

libcomposer_la_LIBADD =					\
	$(top_builddir)/e-util/libeutil.la		\
	$(top_builddir)/widgets/misc/libemiscwidgets.la	\
	$(top_builddir)/shell/libeshell.la		\
	$(top_builddir)/em-format/libemformat.la	\
	$(top_builddir)/addressbook/gui/contact-editor/libecontacteditor.la		\
	$(top_builddir)/addressbook/gui/contact-list-editor/libecontactlisteditor.la	\
	$(EVOLUTION_MAIL_LIBS)				\
	$(GNOME_PLATFORM_LIBS)

ui_DATA = evolution-composer.ui

EXTRA_DIST =					\
	$(ui_DATA)				\
	mail-composer.error.xml

BUILT_SOURCES = $(error_DATA)
CLEANFILES = $(BUILT_SOURCES)

dist-hook:
	cd $(distdir); rm -f $(BUILT_SOURCES)

-include $(top_srcdir)/git.mk
