Allow compilation of linux cli without glib since it does not need it. Probably there is a cleaner
way but since desmume still compiles fine with glib it is not regressing. Guillame take a look at this and remember we should take a serious look at configure.ac ;).
This commit is contained in:
parent
6d66840326
commit
b9f520a85a
|
@ -88,6 +88,7 @@ if test "x$osmesa" = "xyes" ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl - Check for GTK and/or libglade
|
dnl - Check for GTK and/or libglade
|
||||||
|
FOUND_GLIB=no
|
||||||
GLIB_VER=2.8
|
GLIB_VER=2.8
|
||||||
GTK_VER=2.6
|
GTK_VER=2.6
|
||||||
AC_CHECK_TOOL(HAVE_PKG, pkg-config)
|
AC_CHECK_TOOL(HAVE_PKG, pkg-config)
|
||||||
|
@ -95,8 +96,8 @@ AC_PROVIDE_IFELSE([PKG_PROG_PKG_CONFIG], [
|
||||||
if test ! "x$HAVE_PKG" = "x" ; then
|
if test ! "x$HAVE_PKG" = "x" ; then
|
||||||
PKG_CHECK_MODULES(GLIB,
|
PKG_CHECK_MODULES(GLIB,
|
||||||
glib-2.0 >= $GLIB_VER,
|
glib-2.0 >= $GLIB_VER,
|
||||||
HAVE_GLIB=yes,
|
FOUND_GLIB=yes,
|
||||||
HAVE_GLIB=no)
|
FOUND_GLIB=no)
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GTK,
|
PKG_CHECK_MODULES(GTK,
|
||||||
gtk+-2.0 >= $GTK_VER,
|
gtk+-2.0 >= $GTK_VER,
|
||||||
|
@ -134,6 +135,9 @@ AC_PROVIDE_IFELSE([PKG_PROG_PKG_CONFIG], [
|
||||||
echo "WARNING: pkg-config is not available therefore gtk and gtk-glade UIs are not available either."
|
echo "WARNING: pkg-config is not available therefore gtk and gtk-glade UIs are not available either."
|
||||||
])
|
])
|
||||||
|
|
||||||
|
dnl - set conditional for glib, needed to avoid commandline.cpp compilation for cli frontend since it depends on glib
|
||||||
|
AM_CONDITIONAL([HAVE_GLIB], [test "${FOUND_GLIB}" = "yes"])
|
||||||
|
|
||||||
dnl - If the gtkGLext package is available define the corresponding C macro
|
dnl - If the gtkGLext package is available define the corresponding C macro
|
||||||
if test "x$HAVE_GTKGLEXT" = "xyes"; then
|
if test "x$HAVE_GTKGLEXT" = "xyes"; then
|
||||||
AC_DEFINE([GTKGLEXT_AVAILABLE], [1])
|
AC_DEFINE([GTKGLEXT_AVAILABLE], [1])
|
||||||
|
|
|
@ -16,7 +16,7 @@ libdesmume_a_SOURCES = \
|
||||||
arm_instructions.cpp arm_instructions.h \
|
arm_instructions.cpp arm_instructions.h \
|
||||||
bios.cpp bios.h bits.h cp15.cpp cp15.h \
|
bios.cpp bios.h bits.h cp15.cpp cp15.h \
|
||||||
cflash.cpp cflash.h fs.h \
|
cflash.cpp cflash.h fs.h \
|
||||||
common.cpp common.h commandline.h commandline.cpp \
|
common.cpp common.h \
|
||||||
debug.cpp debug.h driver.h \
|
debug.cpp debug.h driver.h \
|
||||||
Disassembler.cpp Disassembler.h \
|
Disassembler.cpp Disassembler.h \
|
||||||
dscard.h fat.h FIFO.cpp FIFO.h \
|
dscard.h fat.h FIFO.cpp FIFO.h \
|
||||||
|
@ -53,6 +53,9 @@ libdesmume_a_SOURCES = \
|
||||||
cheatSystem.cpp cheatSystem.h \
|
cheatSystem.cpp cheatSystem.h \
|
||||||
texcache.cpp texcache.h rasterize.cpp rasterize.h \
|
texcache.cpp texcache.h rasterize.cpp rasterize.h \
|
||||||
version.h
|
version.h
|
||||||
|
if HAVE_GLIB
|
||||||
|
libdesmume_a_SOURCES += commandline.h commandline.cpp
|
||||||
|
endif
|
||||||
if HAVE_GDB_STUB
|
if HAVE_GDB_STUB
|
||||||
libdesmume_a_SOURCES += gdbstub.h
|
libdesmume_a_SOURCES += gdbstub.h
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue