#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@
FAIL_ON_WARNINGS = 1

include $(DEPTH)/config/autoconf.mk

MODULE		= editor
LIBRARY_NAME	= composer
EXPORT_LIBRARY = 1
IS_COMPONENT	= 1
MODULE_NAME	= nsComposerModule
LIBXUL_LIBRARY	= 1


CPPSRCS  = \
           nsComposeTxtSrvFilter.cpp            \
           nsComposerController.cpp       \
           nsComposerCommands.cpp         \
           nsComposerDocumentCommands.cpp \
           nsComposerRegistration.cpp     \
           nsEditingSession.cpp	          \
           nsComposerCommandsUpdater.cpp  \
           nsEditorSpellCheck.cpp         \
           $(NULL)

include $(topsrcdir)/config/rules.mk

INCLUDES        += \
	$(NULL)

_FILES = \
	$(srcdir)/res/EditorOverride.css \
	$(srcdir)/res/grabber.gif \
	$(srcdir)/res/table-add-column-after-active.gif \
	$(srcdir)/res/table-add-column-after-hover.gif \
	$(srcdir)/res/table-add-column-after.gif \
	$(srcdir)/res/table-add-column-before-active.gif \
	$(srcdir)/res/table-add-column-before-hover.gif \
	$(srcdir)/res/table-add-column-before.gif \
	$(srcdir)/res/table-add-row-after-active.gif \
	$(srcdir)/res/table-add-row-after-hover.gif \
	$(srcdir)/res/table-add-row-after.gif \
	$(srcdir)/res/table-add-row-before-active.gif \
	$(srcdir)/res/table-add-row-before-hover.gif \
	$(srcdir)/res/table-add-row-before.gif \
	$(srcdir)/res/table-remove-column-active.gif \
	$(srcdir)/res/table-remove-column-hover.gif \
	$(srcdir)/res/table-remove-column.gif \
	$(srcdir)/res/table-remove-row-active.gif \
	$(srcdir)/res/table-remove-row-hover.gif \
	$(srcdir)/res/table-remove-row.gif \
	$(NULL)

libs::
	$(INSTALL) $(_FILES) $(DIST)/bin/res

install::
	$(SYSINSTALL) $(IFLAGS1) $(_FILES) $(DESTDIR)$(mozappdir)/res

