Skip to content

Commit

Permalink
Remove Qt backend
Browse files Browse the repository at this point in the history
The Qt backend is substantially behind the SDL backend in feature support,
and the SDL backend now has support for the previously-Qt-specific features
(like colored cursors).

(The SDL backend has been the default for a while.)
  • Loading branch information
past-due committed Jan 24, 2019
1 parent b6de4e4 commit 0f76fee
Show file tree
Hide file tree
Showing 16 changed files with 4 additions and 2,729 deletions.
4 changes: 0 additions & 4 deletions Makefile.am
@@ -1,8 +1,4 @@
if BACKEND_QT
backend_subdir=lib/qtgame
else
backend_subdir=lib/sdl
endif

UTF8PROC_DEFINES = -DUTF8PROC_STATIC
AM_MAKEFLAGS = UTF8PROC_DEFINES=$(UTF8PROC_DEFINES)
Expand Down
24 changes: 4 additions & 20 deletions configure.ac
Expand Up @@ -77,21 +77,8 @@ AM_GNU_GETTEXT_VERSION([0.15])
PKG_PROG_PKG_CONFIG
AC_PROG_VERSION_CHECK([pkg-config], [0.9])

AC_MSG_CHECKING([for backend])
AC_ARG_WITH([backend],
AS_HELP_STRING([--with-backend=sdl/qt], [Backend rendering code to use [sdl]]),
[ backend=${withval} ], [ backend="sdl" ])
AM_CONDITIONAL([BACKEND_QT], test "$backend" = "qt")
AM_CONDITIONAL([BACKEND_SDL], test "$backend" = "sdl")

# Check for Qt
if test "$backend" = "qt"; then
AC_MSG_RESULT([Qt])
PKG_CHECK_MODULES(QT5, Qt5Core Qt5Gui Qt5Widgets Qt5Script >= 5.4 Qt5OpenGL Qt5X11Extras,,[:])
else
AC_MSG_RESULT([SDL])
PKG_CHECK_MODULES(QT5, Qt5Core Qt5Gui Qt5Widgets Qt5Script >= 5.4,,[:])
fi
PKG_CHECK_MODULES(QT5, Qt5Core Qt5Gui Qt5Widgets Qt5Script >= 5.4,,[:])

if test "$pkg_failed" = "yes" ; then
AC_MSG_ERROR([Qt 5.4 not found -- required!])
fi
Expand Down Expand Up @@ -413,9 +400,7 @@ fi

# Checks for modules:

if test "$backend" = "sdl"; then
PKG_CHECK_MODULES([SDL], [sdl2 >= 2.0.5])
fi
PKG_CHECK_MODULES([SDL], [sdl2 >= 2.0.5])
PKG_CHECK_MODULES([PNG], [libpng >= 1.2])
PKG_CHECK_MODULES([THEORA], [theora >= 1.0])
PKG_CHECK_MODULES([OPENAL], [openal >= 0.0.8])
Expand Down Expand Up @@ -516,7 +501,6 @@ AC_CONFIG_FILES([Makefile
lib/gamelib/Makefile
lib/ivis_opengl/Makefile
lib/netplay/Makefile
lib/qtgame/Makefile
lib/sdl/Makefile
lib/script/Makefile
lib/sequence/Makefile
Expand Down Expand Up @@ -559,4 +543,4 @@ AS_IF([test "x$with_videos" = "xyes"],[


AC_MSG_NOTICE()
AC_MSG_NOTICE(Backend used: ${backend})
AC_MSG_NOTICE(Backend used: SDL)
33 changes: 0 additions & 33 deletions lib/qtgame/Makefile.am

This file was deleted.

210 changes: 0 additions & 210 deletions lib/qtgame/macosx_screen_resolutions.cpp

This file was deleted.

56 changes: 0 additions & 56 deletions lib/qtgame/macosx_screen_resolutions.h

This file was deleted.

0 comments on commit 0f76fee

Please sign in to comment.