Avoid to link wxlibs with frontends that does not use them
The only frontend that may use wxwidgets library is the gtk one so there is no need to link the others against a tons of wxwidgets libs when calling configure with --enable-wxwidgets.
This commit is contained in:
parent
1f745442b8
commit
1721251fcb
|
@ -220,11 +220,9 @@ if test "x$wxwidget" = "xyes" ; then
|
||||||
m4_include(wxwin.m4)
|
m4_include(wxwin.m4)
|
||||||
AM_PATH_WXCONFIG([2.4.0], wxwin=1)
|
AM_PATH_WXCONFIG([2.4.0], wxwin=1)
|
||||||
if test "x$wxwin" = "x1"; then
|
if test "x$wxwin" = "x1"; then
|
||||||
CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
|
AC_SUBST(WX_CPPFLAGS)
|
||||||
CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
|
AC_SUBST(WX_LIBS)
|
||||||
CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
|
AC_DEFINE([WANT_WX])
|
||||||
LIBS="$LIBS $WX_LIBS"
|
|
||||||
AC_DEFINE([HAVE_WX])
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ libdesmume_a_SOURCES = \
|
||||||
bios.cpp bios.h bits.h cp15.cpp cp15.h \
|
bios.cpp bios.h bits.h cp15.cpp cp15.h \
|
||||||
commandline.h commandline.cpp \
|
commandline.h commandline.cpp \
|
||||||
common.cpp common.h \
|
common.cpp common.h \
|
||||||
debug.cpp debug.h driver.cpp driver.h \
|
debug.cpp debug.h \
|
||||||
Disassembler.cpp Disassembler.h \
|
Disassembler.cpp Disassembler.h \
|
||||||
emufile.h emufile.cpp fat.h FIFO.cpp FIFO.h \
|
emufile.h emufile.cpp fat.h FIFO.cpp FIFO.h \
|
||||||
firmware.cpp firmware.h GPU.cpp GPU.h \
|
firmware.cpp firmware.h GPU.cpp GPU.h \
|
||||||
|
@ -55,10 +55,6 @@ libdesmume_a_SOURCES = \
|
||||||
version.cpp version.h \
|
version.cpp version.h \
|
||||||
desmume_config.cpp desmume_config.h
|
desmume_config.cpp desmume_config.h
|
||||||
|
|
||||||
if HAVE_WX
|
|
||||||
libdesmume_a_SOURCES += wxdlg/wxdlg3dViewer.cpp
|
|
||||||
endif
|
|
||||||
|
|
||||||
if HAVE_OPENAL
|
if HAVE_OPENAL
|
||||||
libdesmume_a_SOURCES += mic_openal.cpp
|
libdesmume_a_SOURCES += mic_openal.cpp
|
||||||
else
|
else
|
||||||
|
|
|
@ -4,7 +4,7 @@ include $(top_srcdir)/src/desmume.mk
|
||||||
AM_CPPFLAGS += $(SDL_CFLAGS) $(ALSA_CFLAGS) $(LIBAGG_CFLAGS) $(GLIB_CFLAGS) $(GTHREAD_CFLAGS)
|
AM_CPPFLAGS += $(SDL_CFLAGS) $(ALSA_CFLAGS) $(LIBAGG_CFLAGS) $(GLIB_CFLAGS) $(GTHREAD_CFLAGS)
|
||||||
|
|
||||||
bin_PROGRAMS = desmume-cli
|
bin_PROGRAMS = desmume-cli
|
||||||
desmume_cli_SOURCES = main.cpp ../sndsdl.cpp ../ctrlssdl.h ../ctrlssdl.cpp
|
desmume_cli_SOURCES = main.cpp ../sndsdl.cpp ../ctrlssdl.h ../ctrlssdl.cpp ../driver.h ../driver.cpp
|
||||||
desmume_cli_LDADD = ../libdesmume.a $(SDL_LIBS) $(ALSA_LIBS) $(LIBAGG_LIBS) $(GLIB_LIBS) $(GTHREAD_LIBS)
|
desmume_cli_LDADD = ../libdesmume.a $(SDL_LIBS) $(ALSA_LIBS) $(LIBAGG_LIBS) $(GLIB_LIBS) $(GTHREAD_LIBS)
|
||||||
if HAVE_GDB_STUB
|
if HAVE_GDB_STUB
|
||||||
desmume_cli_LDADD += ../gdbstub/libgdbstub.a
|
desmume_cli_LDADD += ../gdbstub/libgdbstub.a
|
||||||
|
|
|
@ -26,7 +26,8 @@ desmume_glade_SOURCES = \
|
||||||
dTools/callbacks_dtools.h \
|
dTools/callbacks_dtools.h \
|
||||||
dTools/dTools_display.h \
|
dTools/dTools_display.h \
|
||||||
gdk_3Demu.cpp gdk_3Demu.h \
|
gdk_3Demu.cpp gdk_3Demu.h \
|
||||||
../sndsdl.h ../sndsdl.cpp ../ctrlssdl.h ../ctrlssdl.cpp
|
../sndsdl.h ../sndsdl.cpp ../ctrlssdl.h ../ctrlssdl.cpp \
|
||||||
|
../driver.h ../driver.cpp
|
||||||
|
|
||||||
desmume_glade_LDADD = ../libdesmume.a \
|
desmume_glade_LDADD = ../libdesmume.a \
|
||||||
$(SDL_LIBS) $(GTKGLEXT_LIBS) $(LIBGLADE_LIBS) \
|
$(SDL_LIBS) $(GTKGLEXT_LIBS) $(LIBGLADE_LIBS) \
|
||||||
|
|
|
@ -15,6 +15,7 @@ desmume_SOURCES = \
|
||||||
tools/ioregsView.cpp tools/ioregsView.h \
|
tools/ioregsView.cpp tools/ioregsView.h \
|
||||||
../sndsdl.cpp \
|
../sndsdl.cpp \
|
||||||
../ctrlssdl.h ../ctrlssdl.cpp \
|
../ctrlssdl.h ../ctrlssdl.cpp \
|
||||||
|
../driver.h ../driver.cpp \
|
||||||
osmesa_3Demu.cpp osmesa_3Demu.h \
|
osmesa_3Demu.cpp osmesa_3Demu.h \
|
||||||
cheatsGTK.h cheatsGTK.cpp \
|
cheatsGTK.h cheatsGTK.cpp \
|
||||||
main.cpp main.h
|
main.cpp main.h
|
||||||
|
@ -26,6 +27,11 @@ endif
|
||||||
if HAVE_LIBOSMESA
|
if HAVE_LIBOSMESA
|
||||||
desmume_LDADD += $(OSMESA_LIBS)
|
desmume_LDADD += $(OSMESA_LIBS)
|
||||||
endif
|
endif
|
||||||
|
if HAVE_WX
|
||||||
|
AM_CPPFLAGS += -DHAVE_WX=1 $(WX_CPPFLAGS)
|
||||||
|
desmume_LDADD += $(WX_LIBS)
|
||||||
|
desmume_SOURCES += ../wxdlg/wxdlg3dViewer.cpp
|
||||||
|
endif
|
||||||
|
|
||||||
UPDATE_DESKTOP = \
|
UPDATE_DESKTOP = \
|
||||||
appsdir=$(DESTDIR)$(datadir)/applications ; \
|
appsdir=$(DESTDIR)$(datadir)/applications ; \
|
||||||
|
|
Loading…
Reference in New Issue