all repos — mgba @ 70b01f99adac07384cf131553e870bd1ecb34373

mGBA Game Boy Advance Emulator

Libretro: Force 5-6-5 build for Libretro core
Jeffrey Pfau jeffrey@endrift.com
Sun, 08 Mar 2015 21:05:26 -0700
commit

70b01f99adac07384cf131553e870bd1ecb34373

parent

a000f219db86e17722c87fc58a44602f6ce98292

1 files changed, 7 insertions(+), 6 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -301,6 +301,13 @@ target_link_libraries(${BINARY_NAME} m ${DEBUGGER_LIB} ${OS_LIB} ${DEPENDENCY_LIB})

install(TARGETS ${BINARY_NAME} DESTINATION lib COMPONENT lib${BINARY_NAME}) set_target_properties(${BINARY_NAME} PROPERTIES VERSION ${LIB_VERSION_STRING} SOVERSION ${LIB_VERSION_ABI}) +if(BUILD_LIBRETRO) + add_definitions(-DCOLOR_16_BIT -DCOLOR_5_6_5) + file(GLOB RETRO_SRC ${CMAKE_SOURCE_DIR}/src/platform/libretro/*.c) + add_library(${BINARY_NAME}-libretro SHARED ${RETRO_SRC}) + target_link_libraries(${BINARY_NAME}-libretro ${BINARY_NAME} m ${DEBUGGER_LIB} ${OS_LIB} ${DEPENDENCY_LIB}) +endif() + if(BUILD_SDL) add_definitions(-DBUILD_SDL) add_subdirectory(${CMAKE_SOURCE_DIR}/src/platform/sdl ${CMAKE_BINARY_DIR}/sdl)

@@ -308,12 +315,6 @@ endif()

if(BUILD_QT) add_subdirectory(${CMAKE_SOURCE_DIR}/src/platform/qt ${CMAKE_BINARY_DIR}/qt) -endif() - -if(BUILD_LIBRETRO) - file(GLOB RETRO_SRC ${CMAKE_SOURCE_DIR}/src/platform/libretro/*.c) - add_library(${BINARY_NAME}-libretro SHARED ${RETRO_SRC}) - target_link_libraries(${BINARY_NAME}-libretro ${BINARY_NAME} m ${DEBUGGER_LIB} ${OS_LIB} ${DEPENDENCY_LIB}) endif() if(BUILD_PERF)