all repos — mgba @ 65d70f474deb78803859c6626da66222ff95a467

mGBA Game Boy Advance Emulator

All: Kludge buildfix for ports
Vicki Pfau vi@endrift.com
Fri, 19 May 2017 16:20:56 -0700
commit

65d70f474deb78803859c6626da66222ff95a467

parent

b5c350bc5bfdf3845779b430496712d7b6ebf004

1 files changed, 16 insertions(+), 4 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -303,6 +303,7 @@ set(DISABLE_DEPS ON CACHE BOOL "This platform cannot build with dependencies" FORCE)

endif() set(DISABLE_FRONTENDS ON) set(MINIMAL_CORE ON) + set(ENABLE_EXTRA ON) endif() check_function_exists(chmod HAVE_CHMOD)

@@ -664,19 +665,30 @@ list(APPEND TEST_SRC ${UTIL_TEST_SRC})

set(SRC ${CORE_SRC} ${VFS_SRC}) if(NOT MINIMAL_CORE) + set(ENABLE_EXTRA ON) if(M_CORE_GBA) list(APPEND SRC - ${GBA_RR_SRC} - ${GBA_EXTRA_SRC} ${GBA_SIO_SRC}) endif() if(M_CORE_GB) list(APPEND SRC - ${GB_EXTRA_SRC} ${GB_SIO_SRC}) endif() list(APPEND SRC - ${FEATURE_SRC} + ${FEATURE_SRC}) +endif() + +if(ENABLE_EXTRA) + if(M_CORE_GBA) + list(APPEND SRC + ${GBA_RR_SRC} + ${GBA_EXTRA_SRC}) + endif() + if(M_CORE_GB) + list(APPEND SRC + ${GB_EXTRA_SRC}) + endif() + list(APPEND SRC ${EXTRA_SRC}) endif()