Build Wintab support always on Windows. Don't require the Wintab SDK.
2007-01-19 Tor Lillqvist <tml@novell.com> Build Wintab support always on Windows. Don't require the Wintab SDK. * configure.in: Drop the --with-wintab option. Drop the HAVE_WINTAB feature test macro and Automake variable. * acconfig.h * config.h.win32.in: Drop HAVE_WINTAB. * gdk/win32/gdkevents-win32.c * gdk/win32/gdkinput.c * gdk/win32/gdkinput-win32.h * gdk/win32/gdkinput-win32.c * gdk/win32/gdkmain-win32.c: Make HAVE_WINTAB ifdef blocks unconditional. * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Try to load wintab32.dll dynamically here. If it is found look up the handful Wintab functions we use. (rest of file): Use these function pointers instead of calling the functions from wntab32x.lib. The code in wntab32x.lib did the same thing anyway: tried to load wintab32.dll, and looked up the addresses of the actual functions from it. * gdk/Makefile.am * gdk/win32/Makefile.am: Drop the libwntab32x hacks. * gdk/win32/wintab.h * gdk/win32/pktdef.h: New files. Copied from the Wintab SDK. Copyright blurb says: "The text and information contained in this file may be freely used, copied, or distributed without compensation or licensing restrictions." * README.win32: Update a bit. Remove the text about the Wintab SDK. svn path=/trunk/; revision=17186
This commit is contained in:
committed by
Tor Lillqvist
parent
f1ce05caa9
commit
f6b4585c98
37
configure.in
37
configure.in
@ -211,9 +211,6 @@ AC_ARG_ENABLE(visibility,
|
||||
AC_ARG_WITH(xinput,
|
||||
[AC_HELP_STRING([--with-xinput=@<:@no/yes@:>@], [support XInput])])
|
||||
|
||||
AC_ARG_WITH(wintab,
|
||||
[AC_HELP_STRING([--with-wintab=DIRECTORY],
|
||||
[use Wintab API with win32 backend])])
|
||||
if test "$platform_win32" = yes; then
|
||||
gdktarget=win32
|
||||
else
|
||||
@ -568,33 +565,6 @@ AC_CHECK_HEADERS(pwd.h, AC_DEFINE(HAVE_PWD_H))
|
||||
AC_CHECK_HEADERS(sys/time.h, AC_DEFINE(HAVE_SYS_TIME_H))
|
||||
AC_CHECK_HEADERS(unistd.h, AC_DEFINE(HAVE_UNISTD_H))
|
||||
|
||||
if test "${with_wintab+set}" = set && test $with_wintab != no; then
|
||||
AC_MSG_CHECKING([for wintab.h])
|
||||
saved_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -I$with_wintab/include"
|
||||
AC_TRY_COMPILE([#include <windows.h>
|
||||
#include <wintab.h>],
|
||||
[],
|
||||
[AC_MSG_RESULT(yes)
|
||||
AC_MSG_CHECKING([for wntab32x.lib])
|
||||
if test -f $with_wintab/lib/i386/wntab32x.lib ; then
|
||||
AC_MSG_RESULT(yes)
|
||||
have_wintab=yes
|
||||
AC_DEFINE(HAVE_WINTAB)
|
||||
WINTAB_LIB="$with_wintab/lib/i386/wntab32x.lib"
|
||||
AC_SUBST(WINTAB_LIB)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
CFLAGS="$saved_cflags"
|
||||
have_wintab=no
|
||||
fi
|
||||
],
|
||||
[AC_MSG_RESULT(no)
|
||||
CFLAGS="$saved_cflags"
|
||||
have_wintab=no])
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_WINTAB, test x$have_wintab = xyes)
|
||||
|
||||
saved_cflags="$CFLAGS"
|
||||
saved_ldflags="$LDFLAGS"
|
||||
|
||||
@ -1341,13 +1311,6 @@ else
|
||||
fi
|
||||
|
||||
if test "x$gdktarget" = "xwin32"; then
|
||||
# We start off with the libraries from Pango
|
||||
|
||||
if test x$have_wintab = xyes; then
|
||||
GDK_WIN32_EXTRA_CFLAGS="-I $with_wintab/include"
|
||||
AC_SUBST(GDK_WIN32_EXTRA_CFLAGS)
|
||||
fi
|
||||
|
||||
GDK_EXTRA_LIBS="$GDK_EXTRA_LIBS -lgdi32 -user32 -limm32 -lshell32 -lole32 -Wl,-luuid"
|
||||
AM_CONDITIONAL(USE_WIN32, true)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user