[OS/2] Bug 407524: Enable PDF surface on OS/2, r=ted.mielczarek

This commit is contained in:
mozilla@weilbacher.org 2007-12-11 13:49:27 -08:00
Родитель 7b2e2e327d
Коммит cb1e19b584
5 изменённых файлов: 12 добавлений и 1 удалений

Просмотреть файл

@ -6992,6 +6992,7 @@ if test "$MOZ_SVG" -o "$MOZ_ENABLE_CANVAS" -o "$MOZ_ENABLE_CAIRO_GFX" ; then
if test "$MOZ_WIDGET_TOOLKIT" = "os2"; then if test "$MOZ_WIDGET_TOOLKIT" = "os2"; then
OS2_SURFACE_FEATURE="#define CAIRO_HAS_OS2_SURFACE 1" OS2_SURFACE_FEATURE="#define CAIRO_HAS_OS2_SURFACE 1"
FT_FONT_FEATURE="#define CAIRO_HAS_FT_FONT 1" FT_FONT_FEATURE="#define CAIRO_HAS_FT_FONT 1"
PDF_SURFACE_FEATURE="#define CAIRO_HAS_PDF_SURFACE 1"
MOZ_ENABLE_CAIRO_FT=1 MOZ_ENABLE_CAIRO_FT=1
CAIRO_FT_CFLAGS="-I${MZFTCFGFT2}/include" CAIRO_FT_CFLAGS="-I${MZFTCFGFT2}/include"
CAIRO_FT_LIBS="-L${MZFTCFGFT2}/lib -lmozft -lmzfntcfg" CAIRO_FT_LIBS="-L${MZFTCFGFT2}/lib -lmozft -lmzfntcfg"

Просмотреть файл

@ -138,6 +138,13 @@ endif
ifeq ($(MOZ_WIDGET_TOOLKIT),os2) ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
CSRCS += cairo-os2-surface.c CSRCS += cairo-os2-surface.c
EXPORTS += cairo-os2.h cairo-os2-private.h EXPORTS += cairo-os2.h cairo-os2-private.h
CSRCS += cairo-base85-stream.c \
cairo-pdf-surface.c \
cairo-type1-subset.c \
cairo-type1-fallback.c \
cairo-truetype-subset.c \
cairo-cff-subset.c
EXPORTS += cairo-pdf.h
endif endif
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT))) ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))

Просмотреть файл

@ -76,6 +76,7 @@ static nsSystemFontsWin *gSystemFonts = nsnull;
#include <usp10.h> #include <usp10.h>
#elif defined(XP_OS2) #elif defined(XP_OS2)
#include "nsSystemFontsOS2.h" #include "nsSystemFontsOS2.h"
#include "gfxPDFSurface.h"
static nsSystemFontsOS2 *gSystemFonts = nsnull; static nsSystemFontsOS2 *gSystemFonts = nsnull;
#elif defined(XP_BEOS) #elif defined(XP_BEOS)
#include "nsSystemFontsBeOS.h" #include "nsSystemFontsBeOS.h"
@ -673,7 +674,7 @@ nsThebesDeviceContext::CalcPrintingSize()
size = reinterpret_cast<gfxImageSurface*>(mPrintingSurface.get())->GetSize(); size = reinterpret_cast<gfxImageSurface*>(mPrintingSurface.get())->GetSize();
break; break;
#if defined(MOZ_ENABLE_GTK2) || defined(XP_WIN) #if defined(MOZ_ENABLE_GTK2) || defined(XP_WIN) || defined(XP_OS2)
case gfxASurface::SurfaceTypePDF: case gfxASurface::SurfaceTypePDF:
inPoints = PR_TRUE; inPoints = PR_TRUE;
size = reinterpret_cast<gfxPDFSurface*>(mPrintingSurface.get())->GetSize(); size = reinterpret_cast<gfxPDFSurface*>(mPrintingSurface.get())->GetSize();

Просмотреть файл

@ -65,6 +65,7 @@ EXPORTS += gfxOS2Surface.h \
gfxOS2Platform.h \ gfxOS2Platform.h \
gfxOS2Fonts.h \ gfxOS2Fonts.h \
$(NULL) $(NULL)
EXPORTS += gfxPDFSurface.h
endif endif
ifeq ($(MOZ_WIDGET_TOOLKIT),beos) ifeq ($(MOZ_WIDGET_TOOLKIT),beos)

Просмотреть файл

@ -74,6 +74,7 @@ CPPSRCS += gfxOS2Fonts.cpp \
nsUnicodeRange.cpp \ nsUnicodeRange.cpp \
gfxFontconfigUtils.cpp \ gfxFontconfigUtils.cpp \
$(NULL) $(NULL)
CPPSRCS += gfxPDFSurface.cpp
EXTRA_DSO_LDOPTS += $(MOZ_CAIRO_LIBS) EXTRA_DSO_LDOPTS += $(MOZ_CAIRO_LIBS)
REQUIRES += uconv REQUIRES += uconv
endif endif