mirror of https://github.com/mgba-emu/mgba.git
All: Rearrange some directories to make more sense
This commit is contained in:
parent
df8cddb289
commit
93e5b6da7b
|
@ -39,21 +39,20 @@ file(GLOB GBA_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/*.c)
|
|||
file(GLOB GB_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gb/*.c)
|
||||
file(GLOB GBA_CHEATS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/cheats/*.c)
|
||||
file(GLOB GBA_RR_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/rr/*.c)
|
||||
file(GLOB GBA_SV_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/supervisor/*.c)
|
||||
file(GLOB GBA_CTX_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/context/*.c)
|
||||
file(GLOB GBA_EXTRA_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/extra/*.c)
|
||||
file(GLOB UTIL_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/*.[cSs] ${CMAKE_CURRENT_SOURCE_DIR}/src/core/*.c)
|
||||
file(GLOB GUI_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/gui/*.c ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/gui/*.c)
|
||||
file(GLOB GUI_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/gui/*.c ${CMAKE_CURRENT_SOURCE_DIR}/src/feature/gui/*.c)
|
||||
file(GLOB GBA_RENDERER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/renderers/*.c)
|
||||
file(GLOB SIO_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/sio/lockstep.c)
|
||||
file(GLOB GB_RENDERER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gb/renderers/*.c)
|
||||
file(GLOB THIRD_PARTY_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/third-party/inih/*.c)
|
||||
set(CLI_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/commandline.c)
|
||||
set(CLI_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/feature/commandline.c)
|
||||
set(CORE_VFS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/vfs/vfs-mem.c)
|
||||
set(VFS_SRC)
|
||||
source_group("ARM core" FILES ${ARM_SRC})
|
||||
source_group("LR35902 core" FILES ${LR35902_SRC})
|
||||
source_group("GBA board" FILES ${GBA_SRC} ${GBA_RENDERER_SRC} ${SIO_SRC})
|
||||
source_group("GBA extra" FILES ${GBA_CHEATS_SRC} ${GBA_CTX_SRC} ${GBA_SV_SRC} ${GBA_RR_SRC})
|
||||
source_group("GBA extra" FILES ${GBA_CHEATS_SRC} ${GBA_EXTRA_SRC} ${GBA_RR_SRC})
|
||||
source_group("GB board" FILES ${GB_SRC})
|
||||
source_group("Utilities" FILES ${UTIL_SRC})
|
||||
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
||||
|
@ -327,7 +326,7 @@ if(USE_CLI_DEBUGGER)
|
|||
list(APPEND FEATURES CLI_DEBUGGER)
|
||||
list(APPEND DEBUGGER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/debugger/cli-debugger.c)
|
||||
list(APPEND DEBUGGER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/debugger/parser.c)
|
||||
list(APPEND DEBUGGER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/supervisor/cli.c)
|
||||
list(APPEND DEBUGGER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/extra/cli.c)
|
||||
include_directories(AFTER ${LIBEDIT_INCLUDE_DIRS})
|
||||
link_directories(${LIBEDIT_LIBRARY_DIRS})
|
||||
set(DEBUGGER_LIB ${LIBEDIT_LIBRARIES})
|
||||
|
@ -350,7 +349,7 @@ if(USE_FFMPEG)
|
|||
endif()
|
||||
include_directories(AFTER ${LIBAVCODEC_INCLUDE_DIRS} ${LIBAVFORMAT_INCLUDE_DIRS} ${LIBAVRESAMPLE_INCLUDE_DIRS} ${LIBAVUTIL_INCLUDE_DIRS} ${LIBSWSCALE_INCLUDE_DIRS})
|
||||
link_directories(${LIBAVCODEC_LIBRARY_DIRS} ${LIBAVFORMAT_LIBRARY_DIRS} ${LIBAVRESAMPLE_LIBRARY_DIRS} ${LIBAVUTIL_LIBRARY_DIRS} ${LIBSWSCALE_LIBRARY_DIRS})
|
||||
list(APPEND FEATURE_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/platform/ffmpeg/ffmpeg-encoder.c")
|
||||
list(APPEND FEATURE_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/feature/ffmpeg/ffmpeg-encoder.c")
|
||||
string(REGEX MATCH "^[0-9]+" LIBAVCODEC_VERSION_MAJOR ${libavcodec_VERSION})
|
||||
string(REGEX MATCH "^[0-9]+" LIBAVFORMAT_VERSION_MAJOR ${libavformat_VERSION})
|
||||
string(REGEX MATCH "^[0-9]+" LIBAVRESAMPLE_VERSION_MAJOR ${libavresample_VERSION})
|
||||
|
@ -375,7 +374,7 @@ if(USE_MAGICK)
|
|||
list(APPEND FEATURES MAGICK)
|
||||
include_directories(AFTER ${MAGICKWAND_INCLUDE_DIRS})
|
||||
link_directories(${MAGICKWAND_LIBRARY_DIRS})
|
||||
list(APPEND FEATURE_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/platform/imagemagick/imagemagick-gif-encoder.c")
|
||||
list(APPEND FEATURE_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/feature/imagemagick/imagemagick-gif-encoder.c")
|
||||
list(APPEND DEPENDENCY_LIB ${MAGICKWAND_LIBRARIES})
|
||||
string(REGEX MATCH "^[0-9]+\\.[0-9]+" MAGICKWAND_VERSION_PARTIAL ${MagickWand_VERSION})
|
||||
if(${MAGICKWAND_VERSION_PARTIAL} EQUAL "6.7")
|
||||
|
@ -503,7 +502,6 @@ if(M_CORE_GBA)
|
|||
${ARM_SRC}
|
||||
${GBA_SRC}
|
||||
${GBA_CHEATS_SRC}
|
||||
${GBA_CTX_SRC}
|
||||
${DEBUGGER_SRC}
|
||||
${GBA_RENDERER_SRC})
|
||||
if(NOT M_CORE_GB)
|
||||
|
@ -540,7 +538,7 @@ if(NOT MINIMAL_CORE)
|
|||
if(M_CORE_GBA)
|
||||
list(APPEND SRC
|
||||
${GBA_RR_SRC}
|
||||
${GBA_SV_SRC}
|
||||
${GBA_EXTRA_SRC}
|
||||
${SIO_SRC})
|
||||
endif()
|
||||
list(APPEND SRC
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "util/patch.h"
|
||||
#include "util/vfs.h"
|
||||
|
||||
#include "platform/commandline.h"
|
||||
#include "feature/commandline.h"
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
#ifdef USE_CLI_DEBUGGER
|
||||
#include "debugger/cli-debugger.h"
|
||||
#include "gba/supervisor/cli.h"
|
||||
#endif
|
||||
|
||||
#ifdef USE_GDB_STUB
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
|
||||
#include "core/config.h"
|
||||
#include "core/core.h"
|
||||
#include "feature/gui/gui-runner.h"
|
||||
#include "feature/gui/remap.h"
|
||||
#include "gba/gba.h"
|
||||
#include "gba/gui/gui-runner.h"
|
||||
#include "gba/gui/remap.h"
|
||||
#include "util/gui/file-select.h"
|
||||
#include "util/gui/menu.h"
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
#include "gui-runner.h"
|
||||
|
||||
#include "core/core.h"
|
||||
#include "gba/gui/gui-config.h"
|
||||
#include "feature/gui/gui-config.h"
|
||||
#include "gba/input.h"
|
||||
#include "gba/interface.h"
|
||||
#include "gba/serialize.h"
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include "util/common.h"
|
||||
|
||||
#include "gba/gui/remap.h"
|
||||
#include "feature/gui/remap.h"
|
||||
#include "gba/hardware.h"
|
||||
#include "util/circle-buffer.h"
|
||||
#include "util/gui.h"
|
|
@ -8,10 +8,10 @@
|
|||
#include "core/core.h"
|
||||
#include "core/log.h"
|
||||
#include "gba/gba.h"
|
||||
#include "gba/context/overrides.h"
|
||||
#include "gba/extra/cli.h"
|
||||
#include "gba/overrides.h"
|
||||
#include "gba/renderers/video-software.h"
|
||||
#include "gba/serialize.h"
|
||||
#include "gba/supervisor/cli.h"
|
||||
#include "util/memory.h"
|
||||
#include "util/patch.h"
|
||||
#include "util/vfs.h"
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
|
||||
#include "gba/bios.h"
|
||||
#include "gba/cheats.h"
|
||||
#include "gba/context/overrides.h"
|
||||
#include "gba/io.h"
|
||||
#include "gba/overrides.h"
|
||||
#include "gba/rr/rr.h"
|
||||
#include "gba/serialize.h"
|
||||
#include "gba/sio.h"
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
|
||||
#ifdef M_CORE_GBA
|
||||
#include "gba/gba.h"
|
||||
#include "gba/gui/gui-runner.h"
|
||||
#include "gba/input.h"
|
||||
#include "gba/video.h"
|
||||
#endif
|
||||
#ifdef M_CORE_GB
|
||||
#include "gb/gb.h"
|
||||
#endif
|
||||
#include "feature/gui/gui-runner.h"
|
||||
#include "util/gui.h"
|
||||
#include "util/gui/file-select.h"
|
||||
#include "util/gui/font.h"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// This source file is placed into the public domain.
|
||||
#include "core/core.h"
|
||||
#include "platform/commandline.h"
|
||||
#include "feature/commandline.h"
|
||||
#include "util/socket.h"
|
||||
|
||||
#define DEFAULT_PORT 13721
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include "psp2-context.h"
|
||||
|
||||
#include "gba/gba.h"
|
||||
#include "gba/gui/gui-runner.h"
|
||||
#include "feature/gui/gui-runner.h"
|
||||
#include "util/gui.h"
|
||||
#include "util/gui/font.h"
|
||||
#include "util/gui/file-select.h"
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
#include "gb/gb.h"
|
||||
#endif
|
||||
|
||||
#include "feature/gui/gui-runner.h"
|
||||
#include "gba/input.h"
|
||||
#include "gba/gui/gui-runner.h"
|
||||
|
||||
#include "util/circle-buffer.h"
|
||||
#include "util/memory.h"
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
#include <QMenu>
|
||||
|
||||
extern "C" {
|
||||
#include "gba/context/overrides.h"
|
||||
#include "platform/commandline.h"
|
||||
#include "gba/overrides.h"
|
||||
#include "feature/commandline.h"
|
||||
}
|
||||
|
||||
using namespace QGBA;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
extern "C" {
|
||||
#include "core/config.h"
|
||||
#include "util/configuration.h"
|
||||
#include "platform/commandline.h"
|
||||
#include "feature/commandline.h"
|
||||
}
|
||||
|
||||
class QAction;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <QIcon>
|
||||
|
||||
extern "C" {
|
||||
#include "platform/commandline.h"
|
||||
#include "feature/commandline.h"
|
||||
#include "util/nointro.h"
|
||||
#include "util/socket.h"
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include "ui_GIFView.h"
|
||||
|
||||
extern "C" {
|
||||
#include "platform/imagemagick/imagemagick-gif-encoder.h"
|
||||
#include "feature/imagemagick/imagemagick-gif-encoder.h"
|
||||
}
|
||||
|
||||
namespace QGBA {
|
||||
|
|
|
@ -25,7 +25,7 @@ extern "C" {
|
|||
#include "gba/core.h"
|
||||
#include "gba/gba.h"
|
||||
#include "gba/serialize.h"
|
||||
#include "gba/sharkport.h"
|
||||
#include "gba/extra/sharkport.h"
|
||||
#endif
|
||||
#ifdef M_CORE_GB
|
||||
#include "gb/gb.h"
|
||||
|
|
|
@ -19,9 +19,9 @@ extern "C" {
|
|||
#include "core/core.h"
|
||||
#include "core/thread.h"
|
||||
#include "gba/cheats.h"
|
||||
#include "gba/context/overrides.h"
|
||||
#include "gba/hardware.h"
|
||||
#include "gba/input.h"
|
||||
#include "gba/overrides.h"
|
||||
#ifdef BUILD_SDL
|
||||
#include "sdl-events.h"
|
||||
#endif
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "ui_OverrideView.h"
|
||||
|
||||
extern "C" {
|
||||
#include "gba/context/overrides.h"
|
||||
#include "gba/overrides.h"
|
||||
}
|
||||
|
||||
struct mCoreThread;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
extern "C" {
|
||||
#include "core/core.h"
|
||||
#include "gba/supervisor/export.h"
|
||||
#include "gba/extra/export.h"
|
||||
#include "util/vfs.h"
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include "ui_VideoView.h"
|
||||
|
||||
extern "C" {
|
||||
#include "platform/ffmpeg/ffmpeg-encoder.h"
|
||||
#include "feature/ffmpeg/ffmpeg-encoder.h"
|
||||
}
|
||||
|
||||
namespace QGBA {
|
||||
|
|
|
@ -41,7 +41,7 @@ extern "C" {
|
|||
#ifdef M_CORE_GB
|
||||
#include "gb/gb.h"
|
||||
#endif
|
||||
#include "platform/commandline.h"
|
||||
#include "feature/commandline.h"
|
||||
#include "util/nointro.h"
|
||||
#include "util/vfs.h"
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include "gb/gb.h"
|
||||
#include "gb/video.h"
|
||||
#endif
|
||||
#include "platform/commandline.h"
|
||||
#include "feature/commandline.h"
|
||||
#include "util/configuration.h"
|
||||
#include "util/vfs.h"
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "gba/gba.h"
|
||||
#include "gba/serialize.h"
|
||||
|
||||
#include "platform/commandline.h"
|
||||
#include "feature/commandline.h"
|
||||
#include "util/memory.h"
|
||||
#include "util/string.h"
|
||||
#include "util/vfs.h"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "gba/renderers/video-software.h"
|
||||
#include "gba/serialize.h"
|
||||
|
||||
#include "platform/commandline.h"
|
||||
#include "feature/commandline.h"
|
||||
#include "util/socket.h"
|
||||
#include "util/string.h"
|
||||
#include "util/vfs.h"
|
||||
|
|
|
@ -15,9 +15,9 @@
|
|||
#include "util/common.h"
|
||||
|
||||
#include "core/core.h"
|
||||
#include "feature/gui/gui-runner.h"
|
||||
#include "gba/audio.h"
|
||||
#include "gba/gba.h"
|
||||
#include "gba/gui/gui-runner.h"
|
||||
#include "gba/input.h"
|
||||
#include "util/gui.h"
|
||||
#include "util/gui/file-select.h"
|
||||
|
|
Loading…
Reference in New Issue