All: Cleanup and buildfixing

This commit is contained in:
Vicki Pfau 2017-04-18 17:13:11 -07:00
parent 716a245397
commit 3021996a49
10 changed files with 15 additions and 2 deletions

View File

@ -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 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_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_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_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_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 THIRD_PARTY_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/third-party/inih/*.c)
file(GLOB EXTRA_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/feature/*.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) 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 list(APPEND DEBUGGER_SRC
${CMAKE_CURRENT_SOURCE_DIR}/src/lr35902/debugger/cli-debugger.c ${CMAKE_CURRENT_SOURCE_DIR}/src/lr35902/debugger/cli-debugger.c
${CMAKE_CURRENT_SOURCE_DIR}/src/lr35902/debugger/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 list(APPEND TEST_SRC
${LR35902_TEST_SRC} ${LR35902_TEST_SRC}
${GB_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/cli-debugger.c
${CMAKE_CURRENT_SOURCE_DIR}/src/arm/debugger/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/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 list(APPEND TEST_SRC
${ARM_TEST_SRC} ${ARM_TEST_SRC}
${GBA_TEST_SRC}) ${GBA_TEST_SRC})
@ -670,6 +672,7 @@ if(NOT MINIMAL_CORE)
endif() endif()
if(M_CORE_GB) if(M_CORE_GB)
list(APPEND SRC list(APPEND SRC
${GB_EXTRA_SRC}
${GB_SIO_SRC}) ${GB_SIO_SRC})
endif() endif()
list(APPEND SRC list(APPEND SRC

View File

@ -147,8 +147,10 @@ struct mCore {
void (*enableVideoLayer)(struct mCore*, size_t id, bool enable); void (*enableVideoLayer)(struct mCore*, size_t id, bool enable);
void (*enableAudioChannel)(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 (*startVideoLog)(struct mCore*, struct mVideoLogContext*);
void (*endVideoLog)(struct mCore*); void (*endVideoLog)(struct mCore*);
#endif
}; };
#if !defined(MINIMAL_CORE) || MINIMAL_CORE < 2 #if !defined(MINIMAL_CORE) || MINIMAL_CORE < 2

View File

@ -12,7 +12,9 @@ CXX_GUARD_START
struct mCore; struct mCore;
struct mCore* GBCoreCreate(void); struct mCore* GBCoreCreate(void);
#ifndef MINIMAL_CORE
struct mCore* GBVideoLogPlayerCreate(void); struct mCore* GBVideoLogPlayerCreate(void);
#endif
CXX_GUARD_END CXX_GUARD_END

View File

@ -12,7 +12,9 @@ CXX_GUARD_START
struct mCore; struct mCore;
struct mCore* GBACoreCreate(void); struct mCore* GBACoreCreate(void);
#ifndef MINIMAL_CORE
struct mCore* GBAVideoLogPlayerCreate(void); struct mCore* GBAVideoLogPlayerCreate(void);
#endif
CXX_GUARD_END CXX_GUARD_END

View File

@ -747,8 +747,10 @@ struct mCore* GBCoreCreate(void) {
core->listAudioChannels = _GBCoreListAudioChannels; core->listAudioChannels = _GBCoreListAudioChannels;
core->enableVideoLayer = _GBCoreEnableVideoLayer; core->enableVideoLayer = _GBCoreEnableVideoLayer;
core->enableAudioChannel = _GBCoreEnableAudioChannel; core->enableAudioChannel = _GBCoreEnableAudioChannel;
#ifndef MINIMAL_CORE
core->startVideoLog = _GBCoreStartVideoLog; core->startVideoLog = _GBCoreStartVideoLog;
core->endVideoLog = _GBCoreEndVideoLog; core->endVideoLog = _GBCoreEndVideoLog;
#endif
return core; return core;
} }

View File

@ -766,8 +766,10 @@ struct mCore* GBACoreCreate(void) {
core->listAudioChannels = _GBACoreListAudioChannels; core->listAudioChannels = _GBACoreListAudioChannels;
core->enableVideoLayer = _GBACoreEnableVideoLayer; core->enableVideoLayer = _GBACoreEnableVideoLayer;
core->enableAudioChannel = _GBACoreEnableAudioChannel; core->enableAudioChannel = _GBACoreEnableAudioChannel;
#ifndef MINIMAL_CORE
core->startVideoLog = _GBACoreStartVideoLog; core->startVideoLog = _GBACoreStartVideoLog;
core->endVideoLog = _GBACoreEndVideoLog; core->endVideoLog = _GBACoreEndVideoLog;
#endif
return core; return core;
} }