зеркало из https://github.com/mozilla/pjs.git
bug 323551 make the in-tree cairo compile on beos (if a system-installed
freetype and fontconfig is present) r=bsmedberg,vlad
This commit is contained in:
Родитель
b13a6f69c6
Коммит
c1023d97c6
|
@ -437,7 +437,10 @@ MOZ_TOOLKIT_REGISTRY_CFLAGS = \
|
|||
-DGFXWIN_DLL=@GFXWIN_DLL@ \
|
||||
$(TK_CFLAGS)
|
||||
|
||||
CAIRO_FT_CFLAGS = @CAIRO_FT_CFLAGS@
|
||||
|
||||
MOZ_ENABLE_CAIRO_GFX = @MOZ_ENABLE_CAIRO_GFX@
|
||||
MOZ_ENABLE_CAIRO_FT = @MOZ_ENABLE_CAIRO_FT@
|
||||
MOZ_ENABLE_GLITZ = @MOZ_ENABLE_GLITZ@
|
||||
MOZ_ENABLE_GTK = @MOZ_ENABLE_GTK@
|
||||
MOZ_ENABLE_GTK2 = @MOZ_ENABLE_GTK2@
|
||||
|
|
11
configure.in
11
configure.in
|
@ -6585,6 +6585,7 @@ if test "$MOZ_SVG_RENDERER_CAIRO" -o "$MOZ_ENABLE_CANVAS" -o "$MOZ_ENABLE_CAIRO_
|
|||
if test "$MOZ_X11"; then
|
||||
XLIB_SURFACE_FEATURE="#define CAIRO_HAS_XLIB_SURFACE 1"
|
||||
FT_FONT_FEATURE="#define CAIRO_HAS_FT_FONT 1"
|
||||
MOZ_ENABLE_CAIRO_FT=1
|
||||
fi
|
||||
if test "$MOZ_WIDGET_TOOLKIT" = "mac" -o "$MOZ_WIDGET_TOOLKIT" = "cocoa"; then
|
||||
QUARTZ_SURFACE_FEATURE="#define CAIRO_HAS_QUARTZ_SURFACE 1"
|
||||
|
@ -6597,6 +6598,14 @@ if test "$MOZ_SVG_RENDERER_CAIRO" -o "$MOZ_ENABLE_CANVAS" -o "$MOZ_ENABLE_CAIRO_
|
|||
if test "$MOZ_ENABLE_GLITZ"; then
|
||||
GLITZ_SURFACE_FEATURE="#define CAIRO_HAS_GLITZ_SURFACE 1"
|
||||
fi
|
||||
if test "$MOZ_WIDGET_TOOLKIT" = "beos"; then
|
||||
PKG_CHECK_MODULES(CAIRO_FT, fontconfig freetype2)
|
||||
BEOS_SURFACE_FEATURE="#define CAIRO_HAS_BEOS_SURFACE 1"
|
||||
FT_FONT_FEATURE="#define CAIRO_HAS_FT_FONT 1"
|
||||
MOZ_ENABLE_CAIRO_FT=1
|
||||
fi
|
||||
AC_SUBST(MOZ_ENABLE_CAIRO_FT)
|
||||
AC_SUBST(CAIRO_FT_CFLAGS)
|
||||
|
||||
if test "$MOZ_DEBUG"; then
|
||||
SANITY_CHECKING_FEATURE="#define CAIRO_DO_SANITY_CHECKING 1"
|
||||
|
@ -6627,7 +6636,7 @@ if test "$MOZ_SVG_RENDERER_CAIRO" -o "$MOZ_ENABLE_CANVAS" -o "$MOZ_ENABLE_CAIRO_
|
|||
MOZ_CAIRO_LIBS="$MOZ_CAIRO_LIBS $(DIST)/lib/mozglitz.lib $(DIST)/lib/mozglitzwgl.lib"
|
||||
fi
|
||||
else
|
||||
MOZ_CAIRO_LIBS="-lmozcairo -lmozlibpixman"
|
||||
MOZ_CAIRO_LIBS="-lmozcairo -lmozlibpixman $CAIRO_FT_LIBS"
|
||||
|
||||
if test "$MOZ_X11"; then
|
||||
MOZ_CAIRO_LIBS="$MOZ_CAIRO_LIBS $XLDFLAGS -lXrender -lfreetype -lfontconfig"
|
||||
|
|
|
@ -651,7 +651,7 @@ nsCanvasRenderingContext2D::UpdateImageFrame()
|
|||
*outrowrgb++ = 0;
|
||||
#endif
|
||||
|
||||
#ifdef XP_WIN
|
||||
#if defined(XP_WIN) || defined(XP_OS2) || defined(XP_BEOS) || defined(MOZ_WIDGET_PHOTON)
|
||||
// On windows, RGB_A8 is really BGR_A8.
|
||||
// in fact, BGR_A8 is also BGR_A8.
|
||||
*outrowrgb++ = b;
|
||||
|
|
|
@ -422,7 +422,7 @@ nsHTMLCanvasElement::UpdateImageContainer(PRBool forceCreate)
|
|||
if (!mImageFrame)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
#ifdef XP_WIN
|
||||
#if defined(XP_WIN) || defined(XP_OS2) || defined(XP_BEOS) || defined(MOZ_WIDGET_PHOTON)
|
||||
rv = mImageFrame->Init(0, 0, sz.width, sz.height, gfxIFormats::BGR_A8, 24);
|
||||
#else
|
||||
rv = mImageFrame->Init(0, 0, sz.width, sz.height, gfxIFormats::RGB_A8, 24);
|
||||
|
|
|
@ -107,6 +107,10 @@ CSRCS += cairo-quartz-surface.c \
|
|||
EXPORTS += cairo-quartz.h cairo-atsui.h
|
||||
endif
|
||||
|
||||
ifeq ($(MOZ_GFX_TOOLKIT),beos)
|
||||
CPPSRCS += cairo-beos-surface.cpp
|
||||
EXPORTS += cairo-beos.h
|
||||
endif
|
||||
|
||||
ifdef BUILD_CAIRO_PDF
|
||||
CSRCS += cairo-font-subset.c \
|
||||
|
@ -122,12 +126,17 @@ endif
|
|||
|
||||
ifdef MOZ_X11
|
||||
CSRCS += cairo-xlib-surface.c \
|
||||
cairo-xlib-screen.c \
|
||||
cairo-ft-font.c
|
||||
EXPORTS += cairo-xlib.h cairo-xlib-xrender.h cairo-ft.h
|
||||
LOCAL_INCLUDES += $(FT2_CFLAGS)
|
||||
cairo-xlib-screen.c
|
||||
EXPORTS += cairo-xlib.h cairo-xlib-xrender.h
|
||||
endif
|
||||
|
||||
ifdef MOZ_ENABLE_CAIRO_FT
|
||||
CSRCS += cairo-ft-font.c
|
||||
EXPORTS += cairo-ft.h
|
||||
LOCAL_INCLUDES += $(CAIRO_FT_CFLAGS)
|
||||
endif
|
||||
|
||||
|
||||
ifdef MOZ_ENABLE_GLITZ
|
||||
REQUIRES += glitz
|
||||
CSRCS += cairo-glitz-surface.c
|
||||
|
|
|
@ -75,10 +75,6 @@ ifeq ($(MOZ_GFX_TOOLKIT),cocoa)
|
|||
DIRS += mac
|
||||
endif
|
||||
|
||||
ifneq (,$(filter beos os2 mac,$(MOZ_GFX_TOOLKIT)))
|
||||
DIRS += $(MOZ_GFX_TOOLKIT)
|
||||
endif
|
||||
|
||||
# Build xlibrgb only for X toolkits and/or Xprint
|
||||
ifneq (,$(filter xlib,$(MOZ_WIDGET_TOOLKIT))$(MOZ_ENABLE_XLIB)$(MOZ_ENABLE_XPRINT))
|
||||
DIRS += xlibrgb
|
||||
|
@ -109,6 +105,10 @@ else
|
|||
ifeq ($(MOZ_GFX_TOOLKIT),windows)
|
||||
DIRS += windows
|
||||
endif
|
||||
ifneq (,$(filter beos os2 mac,$(MOZ_GFX_TOOLKIT)))
|
||||
DIRS += $(MOZ_GFX_TOOLKIT)
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
CPPSRCS = \
|
||||
|
|
Загрузка…
Ссылка в новой задаче