# 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

DIRS		= xbl-marquee

ifdef ENABLE_TESTS
TOOL_DIRS	= test
endif

MODULE		= layout
LIBRARY_NAME	= gkstyle_s
LIBXUL_LIBRARY	= 1

EXPORTS_NAMESPACES = mozilla/css

EXPORTS		= \
		AnimationCommon.h \
		nsAnimationManager.h \
		nsCSSAnonBoxList.h \
		nsCSSAnonBoxes.h \
		nsCSSFontDescList.h \
		nsCSSKeywordList.h \
		nsCSSKeywords.h \
		nsCSSParser.h \
		nsCSSPropAliasList.h \
		nsCSSPropList.h \
		nsCSSProperty.h \
		nsCSSProps.h \
		nsCSSPseudoClassList.h \
		nsCSSPseudoClasses.h \
		nsCSSPseudoElementList.h \
		nsCSSPseudoElements.h \
		nsCSSRuleProcessor.h \
		nsCSSStyleSheet.h \
		nsCSSValue.h \
		nsDOMCSSAttrDeclaration.h \
		nsDOMCSSDeclaration.h \
		nsDOMMediaQueryList.h \
		nsICSSDeclaration.h \
		nsICSSLoaderObserver.h \
		nsICSSPseudoComparator.h \
		nsICSSRuleList.h \
		nsICSSStyleRuleDOMWrapper.h \
		nsIStyleRule.h \
		nsIStyleRuleProcessor.h \
		nsIStyleSheet.h \
		nsLayoutStylesheetCache.h \
		nsRuleData.h \
		nsRuleNode.h \
		nsRuleProcessorData.h \
		nsRuleWalker.h \
		nsStyleAnimation.h \
		nsStyleContext.h \
		nsStyleCoord.h \
		nsStyleSet.h \
		nsStyleStruct.h \
		nsStyleStructFwd.h \
		nsStyleStructInlines.h \
		nsStyleStructList.h \
		nsStyleTransformMatrix.h \
		nsStyleUtil.h \
		$(NULL)

EXPORTS_mozilla/css = \
		Declaration.h \
		GroupRule.h \
		ImageLoader.h \
		ImportRule.h \
		Loader.h \
		NameSpaceRule.h \
		Rule.h \
		StyleRule.h \
		$(NULL)

CPPSRCS		= \
		AnimationCommon.cpp \
		nsCSSAnonBoxes.cpp \
		nsCSSDataBlock.cpp \
		Declaration.cpp \
		nsCSSKeywords.cpp \
		ImageLoader.cpp \
		Loader.cpp \
		nsAnimationManager.cpp \
		nsCSSParser.cpp \
		nsCSSProps.cpp \
		nsCSSPseudoClasses.cpp \
		nsCSSPseudoElements.cpp \
		nsCSSRuleProcessor.cpp \
		nsCSSRules.cpp \
		nsCSSScanner.cpp \
		nsCSSStyleSheet.cpp \
		nsCSSValue.cpp \
		nsComputedDOMStyle.cpp \
		nsDOMCSSAttrDeclaration.cpp \
		nsDOMCSSDeclaration.cpp \
		nsDOMCSSRGBColor.cpp \
		nsDOMCSSRect.cpp \
		nsDOMCSSValueList.cpp \
		nsDOMMediaQueryList.cpp \
		nsFontFaceLoader.cpp \
		nsHTMLCSSStyleSheet.cpp \
		nsHTMLStyleSheet.cpp \
		nsLayoutStylesheetCache.cpp \
		nsMediaFeatures.cpp \
		nsNthIndexCache.cpp \
		nsROCSSPrimitiveValue.cpp \
		nsRuleData.cpp \
		nsRuleNode.cpp \
		nsStyleAnimation.cpp \
		nsStyleContext.cpp \
		nsStyleCoord.cpp \
		nsStyleSet.cpp \
		nsStyleStruct.cpp \
		nsStyleTransformMatrix.cpp \
		nsStyleUtil.cpp \
		nsTransitionManager.cpp \
		StyleRule.cpp \
		$(NULL)

FORCE_STATIC_LIB = 1

include $(topsrcdir)/config/rules.mk

include $(topsrcdir)/ipc/chromium/chromium-config.mk

LOCAL_INCLUDES	+= \
		-I$(srcdir)/../base \
		-I$(srcdir)/../generic \
		-I$(srcdir)/../xul/base/src \
		-I$(srcdir)/../../content/base/src \
		-I$(srcdir)/../../content/html/content/src \
		-I$(srcdir)/../../content/xbl/src \
		-I$(srcdir)/../../content/xul/document/src \
		$(NULL)

_FILES	= \
	contenteditable.css \
	designmode.css \
	TopLevelImageDocument.css \
	TopLevelVideoDocument.css \
	$(NULL)

GARBAGE		+= $(addprefix $(DIST)/bin/res/,$(_FILES))

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

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

DEFINES += -D_IMPL_NS_LAYOUT
