Make MOZ_GFX_TOOLKIT in Makefiles be the same thing that it is in configure. b=369409 r=vlad

This commit is contained in:
dbaron%dbaron.org 2007-02-08 19:23:25 +00:00
parent 9a2f5780e9
commit afc56e1eb0
17 changed files with 41 additions and 41 deletions

View File

@ -80,7 +80,7 @@ endif
MOZ_CHROME_FILE_FORMAT = @MOZ_CHROME_FILE_FORMAT@
MOZ_WIDGET_TOOLKIT = @MOZ_WIDGET_TOOLKIT@
MOZ_GFX_TOOLKIT = $(MOZ_WIDGET_TOOLKIT)
MOZ_GFX_TOOLKIT = @MOZ_GFX_TOOLKIT@
MOZ_X11 = @MOZ_X11@
MOZ_JS_LIBS = @MOZ_JS_LIBS@

View File

@ -101,7 +101,7 @@ include $(topsrcdir)/config/rules.mk
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(TK_CFLAGS)
ifndef MOZ_ENABLE_CAIRO_GFX
ifneq (,$(filter mac cocoa,$(MOZ_GFX_TOOLKIT)))
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
# needed for nsDrawingSurfaceMac.h
CXXFLAGS += -I$(topsrcdir)/gfx/src/mac
endif

View File

@ -118,7 +118,7 @@ SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)profilesharingsetup_s.$(LIB_SUFF
LOCAL_INCLUDES += -I$(srcdir)/../profilesharingsetup/src
endif
ifeq ($(MOZ_GFX_TOOLKIT),os2)
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
LOCAL_INCLUDES += -I$(srcdir)/../printingui/src/os2
endif
@ -126,7 +126,7 @@ ifneq (,$(filter gtk gtk2 xlib beos photon qt, $(MOZ_WIDGET_TOOLKIT)))
LOCAL_INCLUDES += -I$(srcdir)/../printingui/src/unixshared
endif
ifeq ($(MOZ_GFX_TOOLKIT),windows)
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
LOCAL_INCLUDES += -I$(srcdir)/../printingui/src/win
ifneq ($(OS_ARCH), WINCE)
OS_LIBS += $(call EXPAND_LIBNAME,winspool comdlg32)

View File

@ -140,7 +140,7 @@ GLITZ_CSRCS += \
$(NULL)
endif
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),mac cocoa))
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),mac cocoa))
endif
CSRCS = $(GLITZ_CSRCS) \
@ -177,7 +177,7 @@ ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
EXTRA_DSO_LDOPTS += opengl32.lib glu32.lib
endif
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),mac cocoa))
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),mac cocoa))
endif
EXTRA_DSO_LDOPTS += $(LIBS_DIR) $(EXTRA_DSO_LIBS)

View File

@ -84,7 +84,7 @@ ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
DIRS += wgl
endif
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),mac cocoa))
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),mac cocoa))
DIRS += agl
endif

View File

@ -101,11 +101,11 @@ else
ifdef MOZ_ENABLE_PHOTON
DIRS += photon
endif
ifeq ($(MOZ_GFX_TOOLKIT),cocoa)
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
DIRS += mac
endif
ifneq (,$(filter windows beos os2 mac,$(MOZ_GFX_TOOLKIT)))
DIRS += $(MOZ_GFX_TOOLKIT)
ifneq (,$(filter windows beos os2 mac,$(MOZ_WIDGET_TOOLKIT)))
DIRS += $(MOZ_WIDGET_TOOLKIT)
endif
endif

View File

@ -124,7 +124,7 @@ ifeq ($(MOZ_WIDGET_TOOLKIT),beos)
CPPSRCS += nsSystemFontsBeOS.cpp
endif
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),mac cocoa))
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),mac cocoa))
CPPSRCS += nsSystemFontsMac.cpp
ifdef MOZ_ENABLE_GLITZ
REQUIRES += glitzagl

View File

@ -34,7 +34,7 @@ REQUIRES += glitz
EXPORTS += gfxGlitzSurface.h
endif
ifeq ($(MOZ_GFX_TOOLKIT),windows)
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
EXPORTS += gfxWindowsFonts.h \
gfxWindowsPlatform.h \
gfxWindowsSurface.h
@ -44,7 +44,7 @@ REQUIRES += glitzwgl
endif
endif
ifeq ($(MOZ_GFX_TOOLKIT),gtk2)
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
EXPORTS += gfxXlibSurface.h gfxPlatformGtk.h gfxXlibNativeRenderer.h
EXPORTS += gfxPangoFonts.h
EXPORTS += gfxPDFSurface.h gfxPSSurface.h
@ -54,20 +54,20 @@ REQUIRES += glitzglx
endif
endif
ifeq ($(MOZ_GFX_TOOLKIT),os2)
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
EXPORTS += gfxOS2Surface.h \
gfxOS2Platform.h \
gfxOS2Fonts.h \
$(NULL)
endif
ifeq ($(MOZ_GFX_TOOLKIT),beos)
ifeq ($(MOZ_WIDGET_TOOLKIT),beos)
EXPORTS += gfxBeOSSurface.h gfxBeOSPlatform.h
EXPORTS += gfxPangoFonts.h
EXPORTS += gfxPDFSurface.h
endif
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),mac cocoa))
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),mac cocoa))
EXPORTS += gfxPlatformMac.h \
gfxQuartzSurface.h \
gfxQuartzPDFSurface.h \

View File

@ -52,7 +52,7 @@ EXTRA_DSO_LDOPTS += \
$(NULL)
ifeq ($(MOZ_GFX_TOOLKIT),windows)
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
CPPSRCS += gfxWindowsFonts.cpp \
gfxWindowsPlatform.cpp \
gfxWindowsSurface.cpp \
@ -68,7 +68,7 @@ OS_LIBS += $(call EXPAND_LIBNAME,$(_OS_LIBS))
ACDEFINES += -UWIN32_LEAN_AND_MEAN
endif
ifeq ($(MOZ_GFX_TOOLKIT),os2)
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
CPPSRCS += gfxOS2Fonts.cpp \
gfxOS2Platform.cpp \
gfxOS2Surface.cpp \
@ -78,7 +78,7 @@ EXTRA_DSO_LDOPTS += $(MOZ_CAIRO_LIBS)
REQUIRES += uconv
endif
ifeq ($(MOZ_GFX_TOOLKIT),gtk2)
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
CPPSRCS += gfxXlibSurface.cpp gfxPlatformGtk.cpp gfxXlibNativeRenderer.cpp
CPPSRCS += gfxPangoFonts.cpp
CPPSRCS += gfxPDFSurface.cpp gfxPSSurface.cpp
@ -88,7 +88,7 @@ CSRCS = cairo-xlib-utils.c
EXTRA_DSO_LDOPTS += $(MOZ_PANGO_LIBS) $(ZLIB_LIBS) $(MOZ_XFT_LIBS) $(XLDFLAGS) $(XLIBS)
endif
ifeq ($(MOZ_GFX_TOOLKIT),beos)
ifeq ($(MOZ_WIDGET_TOOLKIT),beos)
CPPSRCS += gfxBeOSSurface.cpp gfxBeOSPlatform.cpp
CPPSRCS += gfxPangoFonts.cpp
#CPPSRCS += gfxPDFSurface.cpp
@ -98,7 +98,7 @@ EXTRA_DSO_LDOPTS += $(MOZ_PANGO_LIBS) $(CAIRO_FT_LIBS) -lfontconfig -lpangocairo
endif
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),mac cocoa))
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),mac cocoa))
CPPSRCS += gfxQuartzSurface.cpp gfxQuartzPDFSurface.cpp gfxPlatformMac.cpp gfxAtsuiFonts.cpp
#CPPSRCS += gfxPDFSurface.cpp
@ -114,18 +114,18 @@ CPPSRCS += gfxGlitzSurface.cpp
SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)mozglitz.$(LIB_SUFFIX)
ifeq ($(MOZ_GFX_TOOLKIT),windows)
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
REQUIRES += glitzwgl
SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)mozglitzwgl.$(LIB_SUFFIX)
OS_LIBS += opengl32.lib
endif
ifeq ($(MOZ_GFX_TOOLKIT),gtk2)
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
REQUIRES += glitzglx
SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)mozglitzglx.$(LIB_SUFFIX)
endif
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),mac cocoa))
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),mac cocoa))
REQUIRES += glitzagl
SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)mozglitzagl.$(LIB_SUFFIX)
endif
@ -145,6 +145,6 @@ ifdef MOZ_ENABLE_PANGO
CXXFLAGS += $(MOZ_PANGO_CFLAGS)
endif
ifeq ($(MOZ_GFX_TOOLKIT),beos)
ifeq ($(MOZ_WIDGET_TOOLKIT),beos)
CXXFLAGS += $(CAIRO_FT_CFLAGS)
endif

View File

@ -60,13 +60,13 @@ MAIN_CPPSRCS = $(NULL)
MAIN_CPPSRCS += gfxSurfaceRefCountTest.cpp
# mac and win32 for now
ifneq (,$(filter windows cocoa,$(MOZ_GFX_TOOLKIT)))
ifneq (,$(filter windows cocoa,$(MOZ_WIDGET_TOOLKIT)))
MAIN_CPPSRCS += gfxFontSelectionTest.cpp
endif
CPPSRCS = $(MAIN_CPPSRCS)
ifeq ($(MOZ_GFX_TOOLKIT),cocoa)
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
CMMSRCS = gfxTestCocoaHelper.mm
HELPER_OBJS = gfxTestCocoaHelper.$(OBJ_SUFFIX)
EXTRA_DEPS += gfxTestCocoaHelper.$(OBJ_SUFFIX)
@ -85,12 +85,12 @@ LIBS = $(HELPER_OBJS) \
$(ZLIB_LIBS) \
$(NULL)
ifeq ($(MOZ_GFX_TOOLKIT),windows)
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
_OS_LIBS += usp10
OS_LIBS += $(call EXPAND_LIBNAME,$(_OS_LIBS))
endif
ifeq ($(MOZ_GFX_TOOLKIT),cocoa)
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
OS_LIBS += -framework Cocoa
endif

View File

@ -154,7 +154,7 @@ ifeq ($(OS_ARCH),OS2)
CPPSRCS += nsMessengerOS2Integration.cpp
endif
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),gtk gtk2))
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),gtk gtk2))
CPPSRCS += nsMessengerUnixIntegration.cpp
endif

View File

@ -44,7 +44,7 @@ include $(DEPTH)/config/autoconf.mk
DIRS = public
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),windows gtk gtk2))
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),windows gtk gtk2))
DIRS += src
endif

View File

@ -50,7 +50,7 @@ IS_COMPONENT = 1
MODULE_NAME = nsToolkitCompsModule
LIBXUL_LIBRARY = 1
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),windows gtk gtk2))
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),windows gtk gtk2))
ALERTS_SERVICE=1
DEFINES += -DALERTS_SERVICE
endif

View File

@ -284,22 +284,22 @@ STATIC_LIBS += thebes
COMPONENT_LIBS += gkgfxthebes
else # Platform-specific GFX layer
ifeq (windows,$(MOZ_GFX_TOOLKIT))
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
COMPONENT_LIBS += gkgfxwin
endif
ifeq (beos,$(MOZ_GFX_TOOLKIT))
ifeq (beos,$(MOZ_WIDGET_TOOLKIT))
COMPONENT_LIBS += gfx_beos
endif
ifeq (os2,$(MOZ_GFX_TOOLKIT))
ifeq (os2,$(MOZ_WIDGET_TOOLKIT))
COMPONENT_LIBS += gfx_os2
endif
ifneq (,$(filter mac cocoa,$(MOZ_GFX_TOOLKIT)))
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
COMPONENT_LIBS += gfx_mac
endif
ifeq (qt,$(MOZ_GFX_TOOLKIT))
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
COMPONENT_LIBS += widget_qt
endif
ifneq (,$(filter gtk gtk2,$(MOZ_GFX_TOOLKIT)))
ifneq (,$(filter gtk gtk2,$(MOZ_WIDGET_TOOLKIT)))
COMPONENT_LIBS += gfx_gtk
endif
ifdef MOZ_ENABLE_QT

View File

@ -73,7 +73,7 @@ ifdef MOZ_ENABLE_CAIRO_GFX
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
OS_LIBS += $(call EXPAND_LIBNAME,usp10)
endif
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),mac cocoa))
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),mac cocoa))
EXTRA_DSO_LDOPTS += -lcups
ifdef MOZ_ENABLE_GLITZ
EXTRA_DSO_LDOPTS += -lmozglitzagl -framework OpenGL -framework AGL

View File

@ -44,7 +44,7 @@ include $(DEPTH)/config/autoconf.mk
DIRS = public
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),windows gtk gtk2))
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),windows gtk gtk2))
DIRS += src
endif

View File

@ -53,7 +53,7 @@ PACKAGE_FILE = appcomps.pkg
PACKAGE_VARS += MOZ_PHOENIX
ifndef MOZ_XUL_APP
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),windows gtk gtk2))
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),windows gtk gtk2))
ALERTS_SERVICE=1
DEFINES += -DALERTS_SERVICE
endif