[gnome-games/glchess-vala] Work with latest GTK+3
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/glchess-vala] Work with latest GTK+3
- Date: Wed, 22 Dec 2010 23:01:21 +0000 (UTC)
commit d9aadbbcf3972dd96d674c2aca7dbb2508a4e127
Author: Robert Ancell <robert ancell canonical com>
Date: Thu Dec 23 10:00:50 2010 +1100
Work with latest GTK+3
configure.in | 28 ++++------------------------
glchess/src/Makefile.am | 2 +-
2 files changed, 5 insertions(+), 25 deletions(-)
---
diff --git a/configure.in b/configure.in
index cd71112..c26c9c0 100644
--- a/configure.in
+++ b/configure.in
@@ -111,6 +111,8 @@ AC_SUBST([gamelist])
need_cxx=no
need_rsvg=no
need_guile=no
+need_opengl=no
+need_glx=no
need_python=no
need_clutter=no
need_gio_2_26=no
@@ -137,10 +139,6 @@ for game in $gamelist; do
*) ;;
esac
case $game in
- glchess) need_gdk_x11=yes ;;
- *) ;;
- esac
- case $game in
glchess) need_opengl=yes ;;
*) ;;
esac
@@ -601,7 +599,7 @@ case "$with_gtk" in
LIBCANBERRA_GTK_REQUIRED=0
LIBCANBERRA_GTK_PKGS="libcanberra-gtk >= $LIBCANBERRA_GTK_REQUIRED"
;;
- 3.0) GTK_REQUIRED=2.91.6
+ 3.0) GTK_REQUIRED=2.91.7
RSVG_REQUIRED=2.32.0
LIBCANBERRA_GTK_REQUIRED=0.26
LIBCANBERRA_GTK_PKGS="libcanberra-gtk3 >= $LIBCANBERRA_GTK_REQUIRED"
@@ -705,24 +703,6 @@ fi
AM_CONDITIONAL([HAVE_RSVG],[test "$have_rsvg" = "yes"])
-# Check for GDK X11
-
-have_gdk_x11=no
-if test "$need_gdk_x11" = "yes"; then
- have_gdk_x11=yes
-
- # Errors out if GDK X11 is not found
- PKG_CHECK_MODULES([GDK_X11],[
- gdk-x11-$GTK_API_VERSION x11])
-
- AC_SUBST([GDK_X11_CFLAGS])
- AC_SUBST([GDK_X11_LIBS])
-
- AC_DEFINE([HAVE_GDK_X11],[1],[Define if GDK X11 is available])
-fi
-
-AM_CONDITIONAL([HAVE_GDK_X11],[test "$have_gdk_x11" = "yes"])
-
# Check for OpenGL
have_opengl=no
@@ -749,7 +729,7 @@ if test "$need_glx" = "yes"; then
# Errors out if GLX is not found
PKG_CHECK_MODULES([GLX],[
- gl])
+ gl x11])
AC_SUBST([GLX_CFLAGS])
AC_SUBST([GLX_LIBS])
diff --git a/glchess/src/Makefile.am b/glchess/src/Makefile.am
index 7e5df58..eeabd96 100644
--- a/glchess/src/Makefile.am
+++ b/glchess/src/Makefile.am
@@ -4,6 +4,7 @@ glchess_SOURCES = \
3ds.vala \
glchess.vala \
ai-profile.vala \
+ chess-bitboard.vala \
chess-engine.vala \
chess-engine-cecp.vala \
chess-engine-uci.vala \
@@ -18,7 +19,6 @@ glchess_CFLAGS = \
-DPKGDATADIR=\"@datadir@/glchess\" \
$(GMODULE_CFLAGS) \
$(GTK_CFLAGS) \
- $(GDK_X11_CFLAGS) \
$(GLX_CFLAGS) \
$(OPENGL_CFLAGS) \
$(RSVG_CFLAGS) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]