mirror of https://github.com/mgba-emu/mgba.git
All: Cleanup and buildfixing
This commit is contained in:
parent
716a245397
commit
3021996a49
|
@ -54,8 +54,10 @@ file(GLOB UTIL_TEST_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/test/*.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 GBA_SIO_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/sio/lockstep.c)
|
||||
file(GLOB GBA_EXTRA_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/extra/*.c)
|
||||
file(GLOB GB_SIO_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gb/sio/lockstep.c)
|
||||
file(GLOB GB_RENDERER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gb/renderers/*.c)
|
||||
file(GLOB GB_EXTRA_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gb/extra/*.c)
|
||||
file(GLOB THIRD_PARTY_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/third-party/inih/*.c)
|
||||
file(GLOB EXTRA_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/feature/*.c)
|
||||
set(CORE_VFS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/vfs/vfs-mem.c)
|
||||
|
@ -600,7 +602,7 @@ if(M_CORE_GB)
|
|||
list(APPEND DEBUGGER_SRC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/lr35902/debugger/cli-debugger.c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/lr35902/debugger/debugger.c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/gb/extra/cli.c)
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/gb/debugger/cli.c)
|
||||
list(APPEND TEST_SRC
|
||||
${LR35902_TEST_SRC}
|
||||
${GB_TEST_SRC})
|
||||
|
@ -617,7 +619,7 @@ if(M_CORE_GBA)
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/src/arm/debugger/cli-debugger.c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/arm/debugger/debugger.c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/arm/debugger/memory-debugger.c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/gba/extra/cli.c)
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/gba/debugger/cli.c)
|
||||
list(APPEND TEST_SRC
|
||||
${ARM_TEST_SRC}
|
||||
${GBA_TEST_SRC})
|
||||
|
@ -670,6 +672,7 @@ if(NOT MINIMAL_CORE)
|
|||
endif()
|
||||
if(M_CORE_GB)
|
||||
list(APPEND SRC
|
||||
${GB_EXTRA_SRC}
|
||||
${GB_SIO_SRC})
|
||||
endif()
|
||||
list(APPEND SRC
|
||||
|
|
|
@ -147,8 +147,10 @@ struct mCore {
|
|||
void (*enableVideoLayer)(struct mCore*, size_t id, bool enable);
|
||||
void (*enableAudioChannel)(struct mCore*, size_t id, bool enable);
|
||||
|
||||
#ifndef MINIMAL_CORE
|
||||
void (*startVideoLog)(struct mCore*, struct mVideoLogContext*);
|
||||
void (*endVideoLog)(struct mCore*);
|
||||
#endif
|
||||
};
|
||||
|
||||
#if !defined(MINIMAL_CORE) || MINIMAL_CORE < 2
|
||||
|
|
|
@ -12,7 +12,9 @@ CXX_GUARD_START
|
|||
|
||||
struct mCore;
|
||||
struct mCore* GBCoreCreate(void);
|
||||
#ifndef MINIMAL_CORE
|
||||
struct mCore* GBVideoLogPlayerCreate(void);
|
||||
#endif
|
||||
|
||||
CXX_GUARD_END
|
||||
|
||||
|
|
|
@ -12,7 +12,9 @@ CXX_GUARD_START
|
|||
|
||||
struct mCore;
|
||||
struct mCore* GBACoreCreate(void);
|
||||
#ifndef MINIMAL_CORE
|
||||
struct mCore* GBAVideoLogPlayerCreate(void);
|
||||
#endif
|
||||
|
||||
CXX_GUARD_END
|
||||
|
||||
|
|
|
@ -747,8 +747,10 @@ struct mCore* GBCoreCreate(void) {
|
|||
core->listAudioChannels = _GBCoreListAudioChannels;
|
||||
core->enableVideoLayer = _GBCoreEnableVideoLayer;
|
||||
core->enableAudioChannel = _GBCoreEnableAudioChannel;
|
||||
#ifndef MINIMAL_CORE
|
||||
core->startVideoLog = _GBCoreStartVideoLog;
|
||||
core->endVideoLog = _GBCoreEndVideoLog;
|
||||
#endif
|
||||
return core;
|
||||
}
|
||||
|
||||
|
|
|
@ -766,8 +766,10 @@ struct mCore* GBACoreCreate(void) {
|
|||
core->listAudioChannels = _GBACoreListAudioChannels;
|
||||
core->enableVideoLayer = _GBACoreEnableVideoLayer;
|
||||
core->enableAudioChannel = _GBACoreEnableAudioChannel;
|
||||
#ifndef MINIMAL_CORE
|
||||
core->startVideoLog = _GBACoreStartVideoLog;
|
||||
core->endVideoLog = _GBACoreEndVideoLog;
|
||||
#endif
|
||||
return core;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue