Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 380196: Kill QT graphics code, p=sciguyryan, r/sr=roc
Browse files Browse the repository at this point in the history
  • Loading branch information
p2ww committed Jun 10, 2007
1 parent 29d7a77 commit dd18ca6
Show file tree
Hide file tree
Showing 124 changed files with 14 additions and 19,754 deletions.
5 changes: 0 additions & 5 deletions allmakefiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ gfx/src/ps/Makefile
gfx/src/psshared/Makefile
gfx/src/photon/Makefile
gfx/src/mac/Makefile
gfx/src/qt/Makefile
gfx/src/os2/Makefile
gfx/src/xlibrgb/Makefile
gfx/src/windows/Makefile
Expand Down Expand Up @@ -566,7 +565,6 @@ widget/src/Makefile
widget/src/beos/Makefile
widget/src/build/Makefile
widget/src/gtkxtbin/Makefile
widget/src/qt/Makefile
widget/src/photon/Makefile
widget/src/mac/Makefile
widget/src/cocoa/Makefile
Expand Down Expand Up @@ -765,9 +763,6 @@ embedding/browser/webBrowser/Makefile
embedding/browser/gtk/Makefile
embedding/browser/gtk/src/Makefile
embedding/browser/gtk/tests/Makefile
embedding/browser/qt/Makefile
embedding/browser/qt/src/Makefile
embedding/browser/qt/tests/Makefile
embedding/browser/photon/Makefile
embedding/browser/photon/src/Makefile
embedding/browser/photon/tests/Makefile
Expand Down
7 changes: 0 additions & 7 deletions config/autoconf.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,6 @@ MOZ_ENABLE_CAIRO_GFX = @MOZ_ENABLE_CAIRO_GFX@
MOZ_ENABLE_CAIRO_FT = @MOZ_ENABLE_CAIRO_FT@
MOZ_ENABLE_GLITZ = @MOZ_ENABLE_GLITZ@
MOZ_ENABLE_GTK2 = @MOZ_ENABLE_GTK2@
MOZ_ENABLE_QT = @MOZ_ENABLE_QT@
MOZ_ENABLE_PHOTON = @MOZ_ENABLE_PHOTON@
MOZ_ENABLE_COCOA = @MOZ_ENABLE_COCOA@
MOZ_ENABLE_XREMOTE = @MOZ_ENABLE_XREMOTE@
Expand All @@ -469,9 +468,6 @@ MOZ_DBUS_GLIB_CFLAGS = @MOZ_DBUS_GLIB_CFLAGS@
MOZ_DBUS_GLIB_LIBS = @MOZ_DBUS_GLIB_LIBS@
MOZ_ENABLE_DBUS = @MOZ_ENABLE_DBUS@

MOZ_QT_CFLAGS = @MOZ_QT_CFLAGS@
MOZ_QT_LDFLAGS = @MOZ_QT_LDFLAGS@

MOZ_XPRINT_CFLAGS = @MOZ_XPRINT_CFLAGS@
MOZ_XPRINT_LDFLAGS = @MOZ_XPRINT_LDFLAGS@
MOZ_ENABLE_XPRINT = @MOZ_ENABLE_XPRINT@
Expand Down Expand Up @@ -540,9 +536,6 @@ MOZ_PSM=@MOZ_PSM@
GSSAPI_INCLUDES = @GSSAPI_INCLUDES@
USE_GSSAPI = @USE_GSSAPI@

# for Qt build
MOC=@MOC@

MOZILLA_OFFICIAL = @MOZILLA_OFFICIAL@
BUILD_OFFICIAL = @BUILD_OFFICIAL@
MOZ_MILESTONE_RELEASE = @MOZ_MILESTONE_RELEASE@
Expand Down
4 changes: 0 additions & 4 deletions config/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,6 @@ ALL_TRASH = \
ALL_TRASH_DIRS = \
$(GARBAGE_DIRS) /no-such-file

ifdef QTDIR
GARBAGE += $(MOCSRCS)
endif

ifdef SIMPLE_PROGRAMS
GARBAGE += $(SIMPLE_PROGRAMS:%=%.$(OBJ_SUFFIX))
endif
Expand Down
51 changes: 0 additions & 51 deletions config/system-headers
Original file line number Diff line number Diff line change
Expand Up @@ -559,62 +559,11 @@ Pt.h
pthread.h
pwd.h
Python.h
qaction.h
qapplication.h
qcheckbox.h
qclipboard.h
qcolor.h
qcombobox.h
qcstring.h
qcursor.h
qdesktopwidget.h
qdir.h
QDOffscreen.h
qdragobject.h
qevent.h
qeventloop.h
qfiledialog.h
qfile.h
qfontdatabase.h
qfont.h
qfontmetrics.h
qhbox.h
qimage.h
qintdict.h
qlabel.h
qlayout.h
qlineedit.h
qmainwindow.h
qmenubar.h
qmessagebox.h
qmetaobject.h
qmime.h
qobject.h
qpaintdevicemetrics.h
qpainter.h
qpalette.h
qpixmap.h
qpopupmenu.h
qpushbutton.h
qregion.h
qscrollbar.h
qshared.h
qsocketnotifier.h
qstatusbar.h
qstring.h
qstringlist.h
qstyle.h
qtoolbar.h
qtooltip.h
Quickdraw.h
QuickDraw.h
QuickTimeComponents.h
quipu/attr.h
qvbox.h
qwidget.h
qwidgetlist.h
qwidgetplugin.h
qwindowdefs.h
rasdlg.h
raserror.h
ras.h
Expand Down
94 changes: 3 additions & 91 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,8 @@ NSS_VERSION=3
dnl Set the minimum version of toolkit libs used by mozilla
dnl ========================================================
GLIB_VERSION=1.2.0
GTK_VERSION=1.2.0
LIBIDL_VERSION=0.6.3
PERL_VERSION=5.006
QT_VERSION=3.2.0
QT_VERSION_NUM=320
LIBART_VERSION=2.3.4
CAIRO_VERSION=1.4.2
GLITZ_VERSION=0.4.0
Expand Down Expand Up @@ -4432,8 +4429,7 @@ MOZ_ARG_HEADER(Toolkit Options)
[ _DEFAULT_TOOLKIT=$enableval ],
[ _DEFAULT_TOOLKIT=$_PLATFORM_DEFAULT_TOOLKIT])

if test "$_DEFAULT_TOOLKIT" = "qt" \
-o "$_DEFAULT_TOOLKIT" = "photon" \
if test "$_DEFAULT_TOOLKIT" = "photon" \
-o "$_DEFAULT_TOOLKIT" = "cairo-windows" \
-o "$_DEFAULT_TOOLKIT" = "cairo-gtk2" \
-o "$_DEFAULT_TOOLKIT" = "cairo-beos" \
Expand All @@ -4446,7 +4442,7 @@ MOZ_ARG_HEADER(Toolkit Options)
MOZ_WIDGET_TOOLKIT=`echo "$_DEFAULT_TOOLKIT" | sed -e "s/,.*$//"`
else
if test "$no_x" != "yes"; then
AC_MSG_ERROR([Toolkit must be cairo-gtk2 or qt.])
AC_MSG_ERROR([Toolkit must be cairo-gtk2.])
else
AC_MSG_ERROR([Toolkit must be $_PLATFORM_DEFAULT_TOOLKIT (if supported).])
fi
Expand All @@ -4459,17 +4455,6 @@ dnl = Enable the toolkit as needed =
dnl ========================================================

case "$MOZ_WIDGET_TOOLKIT" in
qt)
MOZ_ENABLE_QT=1
if test "$_HAVE_FREETYPE2"; then
MOZ_ENABLE_FREETYPE2=1
fi
MOZ_ENABLE_XPRINT=1
TK_CFLAGS='$(MOZ_QT_CFLAGS)'
TK_LIBS='$(MOZ_QT_LDFLAGS)'
AC_DEFINE(MOZ_WIDGET_QT)
;;

photon)
MOZ_ENABLE_PHOTON=1
AC_DEFINE(MOZ_WIDGET_PHOTON)
Expand Down Expand Up @@ -4537,75 +4522,6 @@ if test "$MOZ_ENABLE_GTK2"
then
PKG_CHECK_MODULES(MOZ_GTK2, gtk+-2.0 >= 1.3.7 gdk-x11-2.0 glib-2.0 gobject-2.0)
fi

if test "$MOZ_ENABLE_QT"
then
MOZ_ARG_WITH_STRING(qtdir,
[ --with-qtdir=\$dir Specify Qt directory ],
[ QTDIR=$withval])

if test -z "$QTDIR"; then
QTDIR="/usr"
fi
QTINCDIR="/include/qt"
if test ! -d "$QTDIR$QTINCDIR"; then
QTINCDIR="/include/X11/qt"
fi
if test ! -d "$QTDIR$QTINCDIR"; then
QTINCDIR="/include"
fi

if test -x "$QTDIR/bin/moc"; then
HOST_MOC="$QTDIR/bin/moc"
else
AC_CHECK_PROGS(HOST_MOC, moc, "")
fi
if test -z "$HOST_MOC"; then
AC_MSG_ERROR([no acceptable moc preprocessor found])
fi
MOC=$HOST_MOC

QT_CFLAGS="-I${QTDIR}${QTINCDIR} -DQT_GENUINE_STR -DQT_NO_STL"
if test -z "$MOZ_DEBUG"; then
QT_CFLAGS="$QT_CFLAGS -DQT_NO_DEBUG -DNO_DEBUG"
fi
_SAVE_LDFLAGS=$LDFLAGS
QT_LDFLAGS=-L${QTDIR}/lib
LDFLAGS="$LDFLAGS $QT_LDFLAGS"
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_CHECK_LIB(qt, main, QT_LIB=-lqt,
AC_CHECK_LIB(qt-mt, main, QT_LIB=-lqt-mt,
AC_MSG_ERROR([Cannot find QT libraries.])))
LDFLAGS=$_SAVE_LDFLAGS
QT_LIBS="-L/usr/X11R6/lib $QT_LDFLAGS $QT_LIB -lXext -lX11"

MOZ_QT_LDFLAGS=$QT_LIBS
MOZ_QT_CFLAGS=$QT_CFLAGS

_SAVE_CXXFLAGS=$CXXFLAGS
_SAVE_LIBS=$LIBS

CXXFLAGS="$CXXFLAGS $QT_CFLAGS"
LIBS="$LIBS $QT_LIBS"

AC_MSG_CHECKING(Qt - version >= $QT_VERSION)
AC_TRY_COMPILE([#include <qglobal.h>],
[
#if (QT_VERSION < $QT_VERSION_NUM)
#error "QT_VERSION too old"
#endif
],result="yes",result="no")

AC_MSG_RESULT("$result")
if test "$result" = "no"; then
AC_MSG_ERROR([Qt Mozilla requires at least version $QT_VERSION of Qt])
fi
CXXFLAGS=$_SAVE_CXXFLAGS
LIBS=$_SAVE_LIBS

AC_LANG_RESTORE
fi
fi # COMPILE_ENVIRONMENT

AC_SUBST(MOZ_DEFAULT_TOOLKIT)
Expand Down Expand Up @@ -4650,16 +4566,13 @@ AC_SUBST(TK_CFLAGS)
AC_SUBST(TK_LIBS)

AC_SUBST(MOZ_ENABLE_GTK2)
AC_SUBST(MOZ_ENABLE_QT)
AC_SUBST(MOZ_ENABLE_PHOTON)
AC_SUBST(MOZ_ENABLE_COCOA)
AC_SUBST(MOZ_ENABLE_CAIRO_GFX)
AC_SUBST(MOZ_ENABLE_GLITZ)
AC_SUBST(MOZ_ENABLE_XREMOTE)
AC_SUBST(MOZ_GTK2_CFLAGS)
AC_SUBST(MOZ_GTK2_LIBS)
AC_SUBST(MOZ_QT_CFLAGS)
AC_SUBST(MOZ_QT_LDFLAGS)

AC_SUBST(MOC)

Expand All @@ -4669,8 +4582,7 @@ then
AC_DEFINE(MOZ_CAIRO_GFX)
fi

if test "$MOZ_ENABLE_QT" \
|| test "$MOZ_ENABLE_GTK2"
if test "$MOZ_ENABLE_GTK2"
then
AC_DEFINE(MOZ_X11)
MOZ_X11=1
Expand Down
13 changes: 0 additions & 13 deletions embedding/browser/qt/Makefile.in

This file was deleted.

32 changes: 0 additions & 32 deletions embedding/browser/qt/plugin/Makefile.in

This file was deleted.

Loading

0 comments on commit dd18ca6

Please sign in to comment.