Bug 320316 - libxul doesn't compile with thebes

This commit is contained in:
benjamin%smedbergs.us 2006-02-27 21:18:41 +00:00
Родитель bcbeb8d599
Коммит 47550ad8e9
3 изменённых файлов: 82 добавлений и 54 удалений

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

@ -182,27 +182,26 @@ DEFINES += -DICON_DECODER
COMPONENT_LIBS += imgicon COMPONENT_LIBS += imgicon
endif endif
endif endif
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
COMPONENT_LIBS += gkgfxwin gkwidget
endif
ifeq (beos,$(MOZ_WIDGET_TOOLKIT))
COMPONENT_LIBS += gfx_beos widget_beos
endif
ifeq (os2,$(MOZ_WIDGET_TOOLKIT))
COMPONENT_LIBS += gfx_os2 wdgtos2
endif
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
COMPONENT_LIBS += gfx_mac widget_mac
endif
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
COMPONENT_LIBS += widget_qt
endif
ifdef MOZ_ENABLE_CAIRO_GFX ifdef MOZ_ENABLE_CAIRO_GFX
DEFINES += -DMOZ_ENABLE_CAIRO_GFX COMPONENT_LIBS += gkgfxthebes
COMPONENT_LIBS += gkgfxcairo else # Platform-specific GFX layer
else ifeq (windows,$(MOZ_GFX_TOOLKIT))
ifneq (,$(MOZ_ENABLE_GTK)$(MOZ_ENABLE_GTK2)) COMPONENT_LIBS += gkgfxwin
endif
ifeq (beos,$(MOZ_GFX_TOOLKIT))
COMPONENT_LIBS += gfx_beos
endif
ifeq (os2,$(MOZ_GFX_TOOLKIT))
COMPONENT_LIBS += gfx_os2
endif
ifneq (,$(filter mac cocoa,$(MOZ_GFX_TOOLKIT)))
COMPONENT_LIBS += gfx_mac
endif
ifeq (qt,$(MOZ_GFX_TOOLKIT))
COMPONENT_LIBS += widget_qt
endif
ifneq (,$(filter gtk gtk2,$(MOZ_GFX_TOOLKIT)))
COMPONENT_LIBS += gfx_gtk COMPONENT_LIBS += gfx_gtk
endif endif
ifdef MOZ_ENABLE_QT ifdef MOZ_ENABLE_QT
@ -216,6 +215,22 @@ else
endif endif
endif endif
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
COMPONENT_LIBS += gkwidget
endif
ifeq (beos,$(MOZ_WIDGET_TOOLKIT))
COMPONENT_LIBS += widget_beos
endif
ifeq (os2,$(MOZ_WIDGET_TOOLKIT))
COMPONENT_LIBS += wdgtos2
endif
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
COMPONENT_LIBS += widget_mac
endif
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
COMPONENT_LIBS += widget_qt
endif
ifdef MOZ_ENABLE_XLIB ifdef MOZ_ENABLE_XLIB
COMPONENT_LIBS += widget_xlib COMPONENT_LIBS += widget_xlib
endif endif

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

@ -70,6 +70,17 @@ DEFINES += \
-D_IMPL_NS_WIDGET \ -D_IMPL_NS_WIDGET \
$(NULL) $(NULL)
ifdef MOZ_ENABLE_CAIRO_GFX
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
OS_LIBS += usp10.lib
endif
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),mac cocoa))
ifdef MOZ_ENABLE_GLITZ
EXTRA_DSO_LDOPTS += -lmozglitzagl -framework OpenGL -framework AGL
endif
endif
endif # MOZ_ENABLE_CAIRO_GFX
ifdef MOZ_SVG_RENDERER_GDIPLUS ifdef MOZ_SVG_RENDERER_GDIPLUS
OS_LIBS += Gdiplus.lib OS_LIBS += Gdiplus.lib
endif endif

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

@ -71,56 +71,58 @@
#define POSTSCRIPT_MODULES #define POSTSCRIPT_MODULES
#endif #endif
#ifdef XP_WIN #ifdef MOZ_CAIRO_GFX
# define GFX_MODULES MODULE(nsGfxModule) # define GFX_MODULES MODULE(nsGfxModule)
# define WIDGET_MODULES MODULE(nsWidgetModule)
#elif defined(XP_MACOSX)
# define GFX_MODULES MODULE(nsGfxMacModule)
# define WIDGET_MODULES MODULE(nsWidgetMacModule)
#elif defined(XP_BEOS)
# define GFX_MODULES MODULE(nsGfxBeOSModule)
# define WIDGET_MODULES MODULE(nsWidgetBeOSModule)
#elif defined(XP_OS2)
# define GFX_MODULES MODULE(nsGfxOS2Module)
# define WIDGET_MODULES MODULE(nsWidgetOS2Module)
#endif
#ifdef MOZ_ENABLE_CAIRO_GFX
#define GFX_MODULES MODULE(nsGfxModule)
#else #else
# if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_GTK2) # if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_GTK2)
# define GFX_MODULES MODULE(nsGfxGTKModule) # define GFX_MODULES MODULE(nsGfxGTKModule)
# elif defined(MOZ_WIDGET_QT) # elif defined(MOZ_WIDGET_QT)
# define GFX_MODULES MODULE(nsGfxQtModule) # define GFX_MODULES MODULE(nsGfxQtModule)
# elif defined(MOZ_WIDGET_XLIB) # elif defined(MOZ_WIDGET_XLIB)
# define GFX_MODULES MODULE(nsGfxXlibModule) # define GFX_MODULES MODULE(nsGfxXlibModule)
# elif defined(MOZ_WIDGET_PHOTON) # elif defined(MOZ_WIDGET_PHOTON)
# define GFX_MODULES MODULE(nsGfxPhModule) # define GFX_MODULES MODULE(nsGfxPhModule)
# elif defined(XP_WIN)
# define GFX_MODULES MODULE(nsGfxModule)
# elif defined(XP_MACOSX)
# define GFX_MODULES MODULE(nsGfxMacModule)
# elif defined(XP_BEOS)
# define GFX_MODULES MODULE(nsGfxBeOSModule)
# elif defined(XP_OS2)
# define GFX_MODULES MODULE(nsGfxOS2Module)
# else
# error Unknown GFX module.
# endif # endif
#endif #endif
#ifdef XP_WIN
# define WIDGET_MODULES MODULE(nsWidgetModule)
#elif defined(XP_MACOSX)
# define WIDGET_MODULES MODULE(nsWidgetMacModule)
#elif defined(XP_BEOS)
# define WIDGET_MODULES MODULE(nsWidgetBeOSModule)
#elif defined(XP_OS2)
# define WIDGET_MODULES MODULE(nsWidgetOS2Module)
#elif defined(MOZ_WIDGET_GTK)
# define WIDGET_MODULES MODULE(nsWidgetGTKModule)
#elif defined(MOZ_WIDGET_GTK2)
# define WIDGET_MODULES MODULE(nsWidgetGtk2Module)
#elif defined(MOZ_WIDGET_XLIB)
# define WIDGET_MODULES MODULE(nsWidgetXLIBModule)
#elif defined(MOZ_WIDGET_PHOTON)
# define WIDGET_MODULES MODULE(nsWidgetPhModule)
#elif defined(MOZ_WIDGET_QT)
# define WIDGET_MODULES MODULE(nsWidgetQtModule)
#else
# error Unknown widget module.
#endif
#ifdef ICON_DECODER #ifdef ICON_DECODER
#define ICON_MODULE MODULE(nsIconDecoderModule) #define ICON_MODULE MODULE(nsIconDecoderModule)
#else #else
#define ICON_MODULE #define ICON_MODULE
#endif #endif
#ifdef MOZ_WIDGET_GTK
#define WIDGET_MODULES MODULE(nsWidgetGTKModule)
#endif
#ifdef MOZ_WIDGET_GTK2
#define WIDGET_MODULES MODULE(nsWidgetGtk2Module)
#endif
#ifdef MOZ_WIDGET_XLIB
#define WIDGET_MODULES MODULE(nsWidgetXLIBModule)
#endif
#ifdef MOZ_WIDGET_PHOTON
#define WIDGET_MODULES MODULE(nsWidgetPhModule)
#endif
#ifdef MOZ_WIDGET_QT
#define WIDGET_MODULES MODULE(nsWidgetQtModule)
#endif
#ifdef MOZ_ENABLE_XPRINT #ifdef MOZ_ENABLE_XPRINT
#define XPRINT_MODULES MODULE(nsGfxXprintModule) #define XPRINT_MODULES MODULE(nsGfxXprintModule)
#else #else