
DEPTH		= ../../..
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

MODULE		= thebes

REQUIRES	= cairo \
			unicharutil \
			$(NULL)

EXPORTS		= 	gfxASurface.h \
			gfxAlphaRecovery.h \
			gfxBlur.h \
			gfxColor.h \
			gfxContext.h \
			gfxFont.h \
			gfxFontUtils.h \
			gfxImageSurface.h \
			gfxMatrix.h \
			gfxPath.h \
			gfxPattern.h \
			gfxPlatform.h \
			gfxPoint.h \
			gfxRect.h \
			gfxSkipChars.h \
			gfxTypes.h \
			gfxTextRunCache.h \
			gfxTextRunWordCache.h \
			gfxUtils.h \
			gfxUserFontSet.h \
			$(NULL)

EXPORTS += gfxFontTest.h

ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
EXPORTS	+=	gfxWindowsPlatform.h \
		gfxWindowsSurface.h \
		gfxWindowsNativeDrawing.h \
		$(NULL)
EXPORTS +=	gfxPDFSurface.h

ifdef WINCE
EXPORTS +=	gfxFT2Fonts.h 
else
EXPORTS +=	gfxWindowsFonts.h 
endif

endif

ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)

ifdef MOZ_X11
EXPORTS += gfxXlibSurface.h
endif

ifdef MOZ_PANGO 
EXPORTS += gfxPangoFonts.h
else
EXPORTS += gfxFT2Fonts.h
endif

ifdef MOZ_DFB
EXPORTS += gfxDirectFBSurface.h
endif

EXPORTS +=  gfxPlatformGtk.h gfxGdkNativeRenderer.h
EXPORTS +=	gfxPDFSurface.h gfxPSSurface.h

endif

ifeq ($(MOZ_WIDGET_TOOLKIT),qt)
EXPORTS += gfxQtPlatform.h gfxQPainterSurface.h
EXPORTS += gfxXlibSurface.h gfxQtNativeRenderer.h
EXPORTS += gfxFT2Fonts.h
endif

ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
EXPORTS	+=	gfxOS2Surface.h \
		gfxOS2Platform.h \
		gfxOS2Fonts.h \
		$(NULL)
EXPORTS +=	gfxPDFSurface.h
endif

ifeq ($(MOZ_WIDGET_TOOLKIT),beos)
EXPORTS	+=	gfxBeOSSurface.h gfxBeOSPlatform.h
EXPORTS +=	gfxPangoFonts.h
EXPORTS +=	gfxPDFSurface.h
endif

ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),mac cocoa))
EXPORTS +=	gfxPlatformMac.h \
		gfxQuartzSurface.h \
		gfxQuartzImageSurface.h \
		gfxQuartzPDFSurface.h \
		gfxAtsuiFonts.h \
		gfxQuartzNativeDrawing.h \
		$(NULL)

endif

include $(topsrcdir)/config/rules.mk
