From 3307f91dcfb239fe12eb4dbeda96660488e4e184 Mon Sep 17 00:00:00 2001 From: riccardom Date: Sat, 11 Jul 2009 18:45:54 +0000 Subject: [PATCH] More makefile work for libagg, disable libagg dependant stuff until it compiles. --- desmume/configure.ac | 3 ++- desmume/src/Makefile.am | 4 +++- desmume/src/gtk/Makefile.am | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/desmume/configure.ac b/desmume/configure.ac index 06cc21719..c4425c54a 100644 --- a/desmume/configure.ac +++ b/desmume/configure.ac @@ -164,7 +164,8 @@ if test "x$HAVE_ALSA" = "xno"; then AC_DEFINE([FAKE_MIC]) fi -AM_CONDITIONAL([HAVE_LIBAGG], [test "${HAVE_LIBAGG}" = "yes"]) +dnl - disabled until it compiles +AM_CONDITIONAL([HAVE_LIBAGG], [test "${HAVE_LIBAGG}x" = "yes"]) 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"]) diff --git a/desmume/src/Makefile.am b/desmume/src/Makefile.am index 6a5e797fc..43ae81305 100644 --- a/desmume/src/Makefile.am +++ b/desmume/src/Makefile.am @@ -11,7 +11,6 @@ SUBDIRS = . $(UI_DIR) endif DIST_SUBDIRS = . gdbstub cli cocoa gtk gtk-glade windows noinst_LIBRARIES = libdesmume.a -INCLUDES = -I@top_srcdir@/src/agg/include libdesmume_a_SOURCES = \ armcpu.cpp armcpu.h ARM9.h \ arm_instructions.cpp arm_instructions.h \ @@ -60,6 +59,9 @@ libdesmume_a_SOURCES += mic_alsa.cpp else libdesmume_a_SOURCES += mic.cpp endif +if HAVE_LIBAGG +libdesmume_a_SOURCES += aggdraw.cpp +endif if HAVE_LUA libdesmume_a_SOURCES += lua-engine.cpp endif diff --git a/desmume/src/gtk/Makefile.am b/desmume/src/gtk/Makefile.am index a233bf213..484c56bc7 100644 --- a/desmume/src/gtk/Makefile.am +++ b/desmume/src/gtk/Makefile.am @@ -20,7 +20,7 @@ desmume_SOURCES = \ cheatsGTK.h cheatsGTK.cpp \ main.cpp main.h desmume_LDADD = ../libdesmume.a \ - $(SDL_LIBS) $(GTK_LIBS) $(GTHREAD_LIBS) $(ALSA_LIBS) + $(SDL_LIBS) $(GTK_LIBS) $(GTHREAD_LIBS) $(ALSA_LIBS) $(LIBAGG_LIBS) if HAVE_GDB_STUB desmume_LDADD += ../gdbstub/libgdbstub.a endif