#
# 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@

include $(DEPTH)/config/autoconf.mk

MODULE		= layout
LIBRARY_NAME	= gksvgbase_s
LIBXUL_LIBRARY	= 1
FAIL_ON_WARNINGS = 1


CPPSRCS		= \
		nsSVGAFrame.cpp \
		nsSVGClipPathFrame.cpp \
		nsSVGContainerFrame.cpp \
		nsSVGEffects.cpp \
		nsSVGFilterFrame.cpp \
		nsSVGFilterInstance.cpp \
		nsSVGForeignObjectFrame.cpp \
		nsSVGGFrame.cpp \
		nsSVGGenericContainerFrame.cpp \
		nsSVGGeometryFrame.cpp \
		nsSVGGlyphFrame.cpp \
		nsSVGGradientFrame.cpp \
		nsSVGImageFrame.cpp \
		nsSVGInnerSVGFrame.cpp \
		nsSVGIntegrationUtils.cpp \
		SVGFEContainerFrame.cpp \
		SVGFEImageFrame.cpp \
		SVGFELeafFrame.cpp \
		SVGFEUnstyledLeafFrame.cpp \
		nsSVGMarkerFrame.cpp \
		nsSVGMaskFrame.cpp \
		nsSVGOuterSVGFrame.cpp \
		nsSVGPaintServerFrame.cpp \
		nsSVGPathGeometryFrame.cpp \
		nsSVGPatternFrame.cpp \
		nsSVGStopFrame.cpp \
		nsSVGSwitchFrame.cpp \
		nsSVGTextContainerFrame.cpp \
		nsSVGTextFrame.cpp \
		nsSVGTextPathFrame.cpp \
		nsSVGTSpanFrame.cpp \
		nsSVGUseFrame.cpp \
		nsSVGUtils.cpp \
		$(NULL)

include $(topsrcdir)/config/config.mk

# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

EXPORTS = \
	nsSVGEffects.h \
	nsSVGFilterInstance.h \
	nsSVGForeignObjectFrame.h \
	nsSVGIntegrationUtils.h \
	nsSVGUtils.h \
	$(NULL)

include $(topsrcdir)/config/rules.mk

LOCAL_INCLUDES	= \
		-I$(srcdir)/../../../base \
		-I$(srcdir)/../../../generic \
		-I$(srcdir)/../../../style \
		-I$(srcdir)/../../../xul/base/src \
		-I$(srcdir)/../../../../content/svg/content/src \
		-I$(srcdir)/../../../../content/base/src \
		-I$(srcdir)/../../../../content/smil \
		$(NULL)

libs::
	$(INSTALL) $(srcdir)/svg.css $(DIST)/bin/res

install::
	$(SYSINSTALL) $(IFLAGS1) $(srcdir)/svg.css $(DESTDIR)$(mozappdir)/res


DEFINES += -D_IMPL_NS_LAYOUT
