2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
DEPTH = ../../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = thebes
|
|
|
|
LIBRARY_NAME = thebes
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
|
|
|
|
REQUIRES = \
|
|
|
|
cairo \
|
|
|
|
libpixman \
|
|
|
|
string \
|
|
|
|
pref \
|
|
|
|
xpcom \
|
|
|
|
unicharutil \
|
2007-07-23 15:02:17 -07:00
|
|
|
$(LCMS_REQUIRES) \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CPPSRCS = \
|
|
|
|
gfxASurface.cpp \
|
|
|
|
gfxAlphaRecovery.cpp \
|
|
|
|
gfxContext.cpp \
|
|
|
|
gfxImageSurface.cpp \
|
|
|
|
gfxFont.cpp \
|
2007-04-16 13:18:32 -07:00
|
|
|
gfxFontMissingGlyphs.cpp \
|
2007-03-22 10:30:00 -07:00
|
|
|
gfxFontTest.cpp \
|
2007-12-27 17:28:26 -08:00
|
|
|
gfxFontUtils.cpp \
|
2007-03-22 10:30:00 -07:00
|
|
|
gfxMatrix.cpp \
|
2007-04-16 13:18:32 -07:00
|
|
|
gfxPath.cpp \
|
2007-03-22 10:30:00 -07:00
|
|
|
gfxPattern.cpp \
|
|
|
|
gfxPlatform.cpp \
|
|
|
|
gfxRect.cpp \
|
|
|
|
gfxSkipChars.cpp \
|
|
|
|
gfxTextRunCache.cpp \
|
2007-06-12 13:56:04 -07:00
|
|
|
gfxTextRunWordCache.cpp \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
2007-07-18 08:52:41 -07:00
|
|
|
$(MOZ_CAIRO_LIBS) \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(MOZ_UNICHARUTIL_LIBS) \
|
|
|
|
$(XPCOM_LIBS) \
|
|
|
|
$(NSPR_LIBS) \
|
|
|
|
$(ZLIB_LIBS) \
|
2007-07-23 15:02:17 -07:00
|
|
|
$(LCMS_LIBS) \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
CPPSRCS += gfxWindowsFonts.cpp \
|
|
|
|
gfxWindowsPlatform.cpp \
|
|
|
|
gfxWindowsSurface.cpp \
|
|
|
|
gfxWindowsNativeDrawing.cpp \
|
|
|
|
nsUnicodeRange.cpp \
|
|
|
|
$(NULL)
|
|
|
|
CPPSRCS += gfxPDFSurface.cpp
|
|
|
|
|
2007-09-20 12:24:47 -07:00
|
|
|
_OS_LIBS = usp10 msimg32
|
2007-03-22 10:30:00 -07:00
|
|
|
ifdef GNU_CXX
|
|
|
|
_OS_LIBS += uuid
|
|
|
|
endif
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,$(_OS_LIBS))
|
|
|
|
|
|
|
|
ACDEFINES += -UWIN32_LEAN_AND_MEAN
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
|
|
|
CPPSRCS += gfxOS2Fonts.cpp \
|
|
|
|
gfxOS2Platform.cpp \
|
|
|
|
gfxOS2Surface.cpp \
|
|
|
|
nsUnicodeRange.cpp \
|
2007-05-20 06:28:09 -07:00
|
|
|
gfxFontconfigUtils.cpp \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
2007-12-11 13:49:27 -08:00
|
|
|
CPPSRCS += gfxPDFSurface.cpp
|
2007-03-22 10:30:00 -07:00
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_CAIRO_LIBS)
|
|
|
|
REQUIRES += uconv
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
|
|
|
|
CPPSRCS += gfxXlibSurface.cpp gfxPlatformGtk.cpp gfxXlibNativeRenderer.cpp
|
|
|
|
CPPSRCS += gfxPangoFonts.cpp
|
|
|
|
CPPSRCS += gfxPDFSurface.cpp gfxPSSurface.cpp
|
|
|
|
CPPSRCS += gfxFontconfigUtils.cpp
|
|
|
|
CPPSRCS += nsUnicodeRange.cpp
|
|
|
|
CSRCS = cairo-xlib-utils.c
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_PANGO_LIBS) $(ZLIB_LIBS) $(MOZ_XFT_LIBS) $(XLDFLAGS) $(XLIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),beos)
|
|
|
|
CPPSRCS += gfxBeOSSurface.cpp gfxBeOSPlatform.cpp
|
|
|
|
CPPSRCS += gfxPangoFonts.cpp
|
|
|
|
#CPPSRCS += gfxPDFSurface.cpp
|
|
|
|
CPPSRCS += gfxFontconfigUtils.cpp
|
|
|
|
CPPSRCS += nsUnicodeRange.cpp
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_PANGO_LIBS) $(CAIRO_FT_LIBS) -lfontconfig -lpangocairo-1.0
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),mac cocoa))
|
|
|
|
CPPSRCS += gfxQuartzSurface.cpp gfxQuartzPDFSurface.cpp gfxPlatformMac.cpp gfxAtsuiFonts.cpp
|
|
|
|
#CPPSRCS += gfxPDFSurface.cpp
|
2007-07-18 07:22:06 -07:00
|
|
|
CPPSRCS += nsUnicodeRange.cpp
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
CMMSRCS = gfxQuartzFontCache.mm
|
|
|
|
|
|
|
|
# Always link with OpenGL/AGL
|
|
|
|
EXTRA_DSO_LDOPTS += -framework OpenGL -framework AGL -framework Cocoa -framework QuickTime
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_GLITZ
|
|
|
|
REQUIRES += glitz
|
|
|
|
CPPSRCS += gfxGlitzSurface.cpp
|
|
|
|
|
|
|
|
SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)mozglitz.$(LIB_SUFFIX)
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
REQUIRES += glitzwgl
|
|
|
|
SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)mozglitzwgl.$(LIB_SUFFIX)
|
|
|
|
OS_LIBS += opengl32.lib
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
|
|
|
|
REQUIRES += glitzglx
|
|
|
|
SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)mozglitzglx.$(LIB_SUFFIX)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),mac cocoa))
|
|
|
|
REQUIRES += glitzagl
|
|
|
|
SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)mozglitzagl.$(LIB_SUFFIX)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DSO_LDOPTS += $(TK_LIBS)
|
|
|
|
|
|
|
|
DEFINES += -DIMPL_THEBES
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
|
|
|
|
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(TK_CFLAGS)
|
|
|
|
CFLAGS += $(MOZ_CAIRO_CFLAGS) $(TK_CFLAGS)
|
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_PANGO
|
|
|
|
CXXFLAGS += $(MOZ_PANGO_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),beos)
|
|
|
|
CXXFLAGS += $(CAIRO_FT_CFLAGS)
|
|
|
|
endif
|
2007-05-20 06:28:09 -07:00
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
|
|
|
CXXFLAGS += $(CAIRO_FT_CFLAGS)
|
|
|
|
endif
|