move gtk,cli ports to frontend/posix directory

This commit is contained in:
zeromus 2016-08-17 01:23:14 -05:00
parent 602da31591
commit 23ae2f8a60
79 changed files with 261 additions and 46 deletions

View File

@ -1,5 +0,0 @@
EXTRA_DIST = README.LIN README.MAC README.WIN dsm.txt dsv.txt autogen.sh \
$(PO_FILES_IN)
DISTCLEANFILES = $(PO_FILES)
SUBDIRS = $(PO_DIR) src

View File

@ -1,4 +0,0 @@
#!/bin/sh
# intltoolize is optionnal as it's only required for the gtk-glade UI.
autoreconf --install --force --verbose

View File

@ -1,14 +1,14 @@
include $(top_srcdir)/src/desmume.mk
include desmume.mk
AM_CPPFLAGS += $(SDL_CFLAGS) $(GTHREAD_CFLAGS) $(X_CFLAGS) $(ALSA_CFLAGS) $(LIBAGG_CFLAGS) $(LIBSOUNDTOUCH_CFLAGS)
EXTRA_DIST = build.bat instruction_tabdef.inc thumb_tabdef.inc cocoa
EXTRA_DIST = instruction_tabdef.inc thumb_tabdef.inc cocoa
if HAVE_GDB_STUB
SUBDIRS = . gdbstub $(UI_DIR)
else
SUBDIRS = . $(UI_DIR)
endif
DIST_SUBDIRS = . gdbstub cli gtk gtk-glade
#DIST_SUBDIRS = . gdbstub cli gtk gtk-glade
noinst_LIBRARIES = libdesmume.a
libdesmume_a_SOURCES = \
armcpu.cpp armcpu.h \

View File

@ -1,11 +0,0 @@
SUBDIRS = doc
include $(top_srcdir)/src/desmume.mk
AM_CPPFLAGS += $(SDL_CFLAGS) $(ALSA_CFLAGS) $(LIBAGG_CFLAGS) $(GLIB_CFLAGS) $(GTHREAD_CFLAGS) $(LIBSOUNDTOUCH_CFLAGS)
bin_PROGRAMS = desmume-cli
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) $(LIBSOUNDTOUCH_LIBS)
if HAVE_GDB_STUB
desmume_cli_LDADD += ../gdbstub/libgdbstub.a
endif

View File

@ -1,3 +0,0 @@
AM_CFLAGS =
AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/libretro-common/include
AM_LDFLAGS =

View File

@ -0,0 +1,226 @@
include desmume.mk
# TODO: readd gdbstub. just do it as sources, no autotools cruft
AM_CPPFLAGS += $(SDL_CFLAGS) $(GTHREAD_CFLAGS) $(X_CFLAGS) $(ALSA_CFLAGS) $(LIBAGG_CFLAGS) $(LIBSOUNDTOUCH_CFLAGS)
# from old stuff
# EXTRA_DIST = README.LIN README.MAC README.WIN dsm.txt dsv.txt autogen.sh $(PO_FILES_IN)
# DISTCLEANFILES = $(PO_FILES)
# SUBDIRS = $(PO_DIR) src
EXTRA_DIST = instruction_tabdef.inc thumb_tabdef.inc cocoa
if HAVE_GDB_STUB
SUBDIRS = . $(UI_DIR)
else
SUBDIRS = . $(UI_DIR)
endif
#DIST_SUBDIRS = . cli gtk gtk-glade
SUBDIRS += $(PO_DIR)
noinst_LIBRARIES = libdesmume.a
libdesmume_a_SOURCES = \
../../armcpu.cpp ../../armcpu.h \
../../arm_instructions.cpp \
../../agg2d.h ../../agg2d.inl \
../../bios.cpp ../../bios.h ../../bits.h ../../cp15.cpp ../../cp15.h \
../../commandline.h ../../commandline.cpp \
../../common.cpp ../../common.h \
../../debug.cpp ../../debug.h \
../../Database.cpp ../../Database.h ../../Disassembler.cpp ../../Disassembler.h \
../../emufile.h ../../emufile.cpp ../../encrypt.h ../../encrypt.cpp ../../FIFO.cpp ../../FIFO.h \
../../firmware.cpp ../../firmware.h ../../GPU.cpp ../../GPU.h \
../../GPU_osd.h \
../../instructions.h \
../../mem.h ../../mc.cpp ../../mc.h \
../../path.cpp ../../path.h \
../../readwrite.cpp ../../readwrite.h \
../../wifi.cpp ../../wifi.h \
../../mic.h \
../../MMU.cpp ../../MMU.h ../../MMU_timing.h ../../NDSSystem.cpp ../../NDSSystem.h ../../registers.h \
../../OGLRender.h ../../OGLRender_3_2.h \
../../ROMReader.cpp ../../ROMReader.h \
../../render3D.cpp ../../render3D.h \
../../rtc.cpp ../../rtc.h \
../../saves.cpp ../../saves.h \
../../slot1.cpp ../../slot1.h \
../../slot2.cpp ../../slot2.h \
../../SPU.cpp ../../SPU.h \
../../matrix.cpp ../../matrix.h \
../../gfx3d.cpp ../../gfx3d.h \
../../thumb_instructions.cpp ../../types.h \
../../movie.cpp ../../movie.h \
../../PACKED.h ../../PACKED_END.h \
../../utils/advanscene.cpp ../../utils/advanscene.h \
../../utils/datetime.cpp ../../utils/datetime.h \
../../utils/ConvertUTF.c ../../utils/ConvertUTF.h ../../utils/guid.cpp ../../utils/guid.h \
../../utils/emufat.cpp ../../utils/emufat.h utils/emufat_types.h \
../../utils/fsnitro.cpp ../../utils/fsnitro.h \
../../utils/md5.cpp ../../utils/md5.h utils/valuearray.h ../../utils/xstring.cpp ../../utils/xstring.h \
../../utils/decrypt/crc.cpp ../../utils/decrypt/crc.h ../../utils/decrypt/decrypt.cpp \
../../utils/decrypt/decrypt.h ../../utils/decrypt/header.cpp ../../utils/decrypt/header.h \
../../utils/task.cpp ../../utils/task.h \
../../utils/vfat.h ../../utils/vfat.cpp \
../../utils/dlditool.cpp \
../../utils/libfat/bit_ops.h \
../../utils/libfat/cache.cpp \
../../utils/libfat/cache.h \
../../utils/libfat/common.h \
../../utils/libfat/directory.cpp \
../../utils/libfat/directory.h \
../../utils/libfat/disc.cpp \
../../utils/libfat/disc.h \
../../utils/libfat/disc_io.h \
../../utils/libfat/fat.h \
../../utils/libfat/fatdir.cpp \
../../utils/libfat/fatdir.h \
../../utils/libfat/fatfile.cpp \
../../utils/libfat/fatfile.h \
../../utils/libfat/filetime.cpp \
../../utils/libfat/filetime.h \
../../utils/libfat/file_allocation_table.cpp \
../../utils/libfat/file_allocation_table.h \
../../utils/libfat/libfat.cpp \
../../utils/libfat/libfat_pc.h \
../../utils/libfat/libfat_public_api.cpp \
../../utils/libfat/libfat_public_api.h \
../../utils/libfat/lock.cpp \
../../utils/libfat/lock.h \
../../utils/libfat/mem_allocate.h \
../../utils/libfat/partition.cpp \
../../utils/libfat/partition.h \
../../utils/tinyxml/tinystr.cpp \
../../utils/tinyxml/tinystr.h \
../../utils/tinyxml/tinyxml.cpp \
../../utils/tinyxml/tinyxml.h \
../../utils/tinyxml/tinyxmlerror.cpp \
../../utils/tinyxml/tinyxmlparser.cpp \
../../utils/glcorearb.h \
../../addons/slot2_auto.cpp ../../addons/slot2_mpcf.cpp ../../addons/slot2_paddle.cpp ../../addons/slot2_gbagame.cpp ../../addons/slot2_none.cpp ../../addons/slot2_rumblepak.cpp ../../addons/slot2_guitarGrip.cpp ../../addons/slot2_expMemory.cpp ../../addons/slot2_piano.cpp ../../addons/slot2_passme.cpp ../../addons/slot1_none.cpp ../../addons/slot1_r4.cpp ../../addons/slot1_retail_nand.cpp ../../addons/slot1_retail_auto.cpp ../../addons/slot1_retail_mcrom.cpp ../../addons/slot1_retail_mcrom_debug.cpp ../../addons/slot1comp_mc.cpp ../../addons/slot1comp_mc.h ../../addons/slot1comp_rom.h ../../addons/slot1comp_rom.cpp ../../addons/slot1comp_protocol.h ../../addons/slot1comp_protocol.cpp \
../../cheatSystem.cpp ../../cheatSystem.h \
../../texcache.cpp ../../texcache.h ../../rasterize.cpp ../../rasterize.h \
../../metaspu/metaspu.cpp ../../metaspu/metaspu.h \
../../filter/2xsai.cpp ../../filter/bilinear.cpp ../../filter/epx.cpp ../../filter/filter.h \
../../filter/hq2x.cpp ../../filter/hq2x.h \
../../filter/hq3x.cpp ../../filter/hq3x.dat \
../../filter/hq4x.cpp ../../filter/hq4x.dat \
../../filter/interp.h ../../filter/lq2x.cpp ../../filter/lq2x.h ../../filter/scanline.cpp \
../../filter/videofilter.cpp ../../filter/videofilter.h \
../../filter/xbrz.cpp ../../filter/xbrz.h \
../../version.cpp ../../version.h \
../../desmume_config.cpp ../../desmume_config.h \
../../libretro-common/compat/compat_getopt.c \
../../libretro-common/file/file_path.c \
../../libretro-common/compat/compat_strl.c \
../../libretro-common/features/features_cpu.c \
../../libretro-common/file/retro_dirent.c \
../../libretro-common/file/retro_stat.c \
../../libretro-common/rthreads/async_job.c \
../../libretro-common/rthreads/rsemaphore.c \
../../libretro-common/rthreads/rthreads.c
if HAVE_JIT
libdesmume_a_SOURCES += \
../../arm_jit.cpp ../../arm_jit.h ../../instruction_attributes.h \
../../utils/AsmJit/AsmJit.h \
../../utils/AsmJit/Config.h \
../../utils/AsmJit/core.h \
../../utils/AsmJit/x86.h \
../../utils/AsmJit/core/apibegin.h \
../../utils/AsmJit/core/apiend.h \
../../utils/AsmJit/core/assembler.cpp \
../../utils/AsmJit/core/assembler.h \
../../utils/AsmJit/core/assert.cpp \
../../utils/AsmJit/core/assert.h \
../../utils/AsmJit/core/buffer.cpp \
../../utils/AsmJit/core/buffer.h \
../../utils/AsmJit/core/build.h \
../../utils/AsmJit/core/compiler.cpp \
../../utils/AsmJit/core/compiler.h \
../../utils/AsmJit/core/compilercontext.cpp \
../../utils/AsmJit/core/compilercontext.h \
../../utils/AsmJit/core/compilerfunc.cpp \
../../utils/AsmJit/core/compilerfunc.h \
../../utils/AsmJit/core/compileritem.cpp \
../../utils/AsmJit/core/compileritem.h \
../../utils/AsmJit/core/context.cpp \
../../utils/AsmJit/core/context.h \
../../utils/AsmJit/core/cpuinfo.cpp \
../../utils/AsmJit/core/cpuinfo.h \
../../utils/AsmJit/core/defs.cpp \
../../utils/AsmJit/core/defs.h \
../../utils/AsmJit/core/func.cpp \
../../utils/AsmJit/core/func.h \
../../utils/AsmJit/core/intutil.h \
../../utils/AsmJit/core/lock.h \
../../utils/AsmJit/core/logger.cpp \
../../utils/AsmJit/core/logger.h \
../../utils/AsmJit/core/memorymanager.cpp \
../../utils/AsmJit/core/memorymanager.h \
../../utils/AsmJit/core/memorymarker.cpp \
../../utils/AsmJit/core/memorymarker.h \
../../utils/AsmJit/core/operand.cpp \
../../utils/AsmJit/core/operand.h \
../../utils/AsmJit/core/podvector.h \
../../utils/AsmJit/core/stringbuilder.cpp \
../../utils/AsmJit/core/stringbuilder.h \
../../utils/AsmJit/core/stringutil.cpp \
../../utils/AsmJit/core/stringutil.h \
../../utils/AsmJit/core/virtualmemory.cpp \
../../utils/AsmJit/core/virtualmemory.h \
../../utils/AsmJit/core/zonememory.cpp \
../../utils/AsmJit/core/zonememory.h \
../../utils/AsmJit/x86/x86assembler.cpp \
../../utils/AsmJit/x86/x86assembler.h \
../../utils/AsmJit/x86/x86compiler.cpp \
../../utils/AsmJit/x86/x86compiler.h \
../../utils/AsmJit/x86/x86compilercontext.cpp \
../../utils/AsmJit/x86/x86compilercontext.h \
../../utils/AsmJit/x86/x86compilerfunc.cpp \
../../utils/AsmJit/x86/x86compilerfunc.h \
../../utils/AsmJit/x86/x86compileritem.cpp \
../../utils/AsmJit/x86/x86compileritem.h \
../../utils/AsmJit/x86/x86cpuinfo.cpp \
../../utils/AsmJit/x86/x86cpuinfo.h \
../../utils/AsmJit/x86/x86defs.cpp \
../../utils/AsmJit/x86/x86defs.h \
../../utils/AsmJit/x86/x86func.cpp \
../../utils/AsmJit/x86/x86func.h \
../../utils/AsmJit/x86/x86operand.cpp \
../../utils/AsmJit/x86/x86operand.h \
../../utils/AsmJit/x86/x86util.cpp \
../../utils/AsmJit/x86/x86util.h
endif
if HAVE_GL
libdesmume_a_SOURCES += ../../OGLRender.cpp ../../OGLRender_3_2.cpp
endif
if HAVE_OPENAL
libdesmume_a_SOURCES += ../../mic_openal.cpp
else
if HAVE_ALSA
libdesmume_a_SOURCES += ../../mic_alsa.cpp
else
libdesmume_a_SOURCES += ../../mic.cpp
endif
endif
if HAVE_LIBSOUNDTOUCH
libdesmume_a_SOURCES += ../../metaspu/SndOut.cpp ../../metaspu/SndOut.h ../../metaspu/Timestretcher.cpp
endif
if HAVE_LIBAGG
libdesmume_a_SOURCES += ../../aggdraw.cpp ../../aggdraw.h ../../GPU_osd.cpp
else
libdesmume_a_SOURCES += ../../GPU_osd_stub.cpp
endif
if HAVE_LUA
AM_CPPFLAGS += $(LUA_CFLAGS)
libdesmume_a_SOURCES += ../../lua-engine.cpp
endif
if HAVE_GDB_STUB
libdesmume_a_SOURCES += ../../gdbstub.h
libdesmume_a_SOURCES += ../../gdbstub/gdbstub.h
endif

View File

@ -0,0 +1,3 @@
#!/bin/sh
autoreconf --install --force --verbose

View File

@ -0,0 +1,8 @@
SUBDIRS = doc
include ../desmume.mk
AM_CPPFLAGS += $(SDL_CFLAGS) $(ALSA_CFLAGS) $(LIBAGG_CFLAGS) $(GLIB_CFLAGS) $(GTHREAD_CFLAGS) $(LIBSOUNDTOUCH_CFLAGS)
bin_PROGRAMS = desmume-cli
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) $(LIBSOUNDTOUCH_LIBS)

View File

@ -13,6 +13,8 @@ case $host in
esac
AC_SUBST(desmume_arch)
AC_CONFIG_AUX_DIR([.])
AM_INIT_AUTOMAKE([1.10 subdir-objects tar-pax foreign])
dnl -- make sure we have a c++ compiler
@ -360,14 +362,15 @@ dnl -- set maintainer mode
AM_MAINTAINER_MODE
AC_SUBST(USE_MAINTAINER_MODE)
dnl -- TODO: readd gdbstub. just do it as sources, no autotools cruft
dnl --- Finally, output all the makefiles
AC_CONFIG_FILES([Makefile
src/Makefile
src/cli/Makefile
src/cli/doc/Makefile
src/gtk/Makefile
src/gtk/doc/Makefile
src/gdbstub/Makefile
cli/Makefile
cli/doc/Makefile
gtk/Makefile
gtk/doc/Makefile
])
AC_OUTPUT

View File

@ -0,0 +1,7 @@
AM_CFLAGS =
AM_CPPFLAGS = -I$(top_srcdir)/../../../src/ -I$(top_srcdir)/../../../src/libretro-common/include
#add this so that frontends can use "../types.h" for instance (they were built expecting to be in subdirectories of the main desmume dir
AM_CPPFLAGS += -I$(top_srcdir)/../../../src/frontend
AM_LDFLAGS =

View File

@ -1,5 +1,5 @@
SUBDIRS = doc
include $(top_srcdir)/src/desmume.mk
include ../desmume.mk
AM_CPPFLAGS += $(SDL_CFLAGS) $(GTK_CFLAGS) $(GTHREAD_CFLAGS) $(ALSA_CFLAGS) $(LIBAGG_CFLAGS) $(LIBSOUNDTOUCH_CFLAGS)
@ -18,24 +18,15 @@ desmume_SOURCES = \
desmume.h desmume.cpp \
dTool.h dToolsList.cpp \
tools/ioregsView.cpp tools/ioregsView.h \
../sndsdl.cpp \
../ctrlssdl.h ../ctrlssdl.cpp \
../driver.h ../driver.cpp \
../../../sndsdl.cpp \
../../../ctrlssdl.h ../../../ctrlssdl.cpp \
../../../driver.h ../../../driver.cpp \
osmesa_3Demu.cpp osmesa_3Demu.h \
glx_3Demu.cpp glx_3Demu.h \
cheatsGTK.h cheatsGTK.cpp \
../filter/hq2x.cpp ../filter/hq2x.h \
../filter/hq4x.cpp ../filter/hq4x.h \
../filter/2xsai.cpp ../filter/bilinear.cpp \
../filter/epx.cpp ../filter/lq2x.cpp \
../filter/scanline.cpp \
../filter/videofilter.cpp ../filter/videofilter.h \
main.cpp main.h
desmume_LDADD = ../libdesmume.a \
$(SDL_LIBS) $(GTK_LIBS) $(GTHREAD_LIBS) $(ALSA_LIBS) $(LIBAGG_LIBS) $(LIBSOUNDTOUCH_LIBS)
if HAVE_GDB_STUB
desmume_LDADD += ../gdbstub/libgdbstub.a
endif
if HAVE_LIBOSMESA
desmume_LDADD += $(OSMESA_LIBS)
else

View File

@ -1,4 +1,4 @@
include $(top_srcdir)/src/desmume.mk
include ../frontend/posix/desmume.mk
noinst_LIBRARIES = libgdbstub.a
libgdbstub_a_SOURCES = gdbstub.cpp gdbstub_internal.h