all repos — mgba @ 4dae440670da59c1381d476ee71d93b9e3c93c76

mGBA Game Boy Advance Emulator

Move SDL/OpenGL dependencies into the SDL port
Jeffrey Pfau jeffrey@endrift.com
Thu, 30 Jan 2014 23:58:48 -0800
commit

4dae440670da59c1381d476ee71d93b9e3c93c76

parent

8e3d1046250687c7e40b65cfa32c8e7354f79aca

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

jump to
M CMakeLists.txtCMakeLists.txt

@@ -20,7 +20,7 @@ add_definitions(-D_WIN32_WINNT=0x0600)

file(GLOB OS_SRC ${CMAKE_SOURCE_DIR}/src/platform/windows/*.c) else() add_definitions(-DUSE_PTHREADS) - set(PLATFORM_LIBRARY "${PLATFORM_LIBRARY};pthread") + set(OS_LIBRARY "${OS_LIBRARY};pthread") file(GLOB OS_SRC ${CMAKE_SOURCE_DIR}/src/platform/posix/*.c) endif()

@@ -58,15 +58,15 @@

if(BUILD_PERF) set(MAIN_SRC ${CMAKE_SOURCE_DIR}/src/platform/perf-main.c) if(UNIX AND NOT APPLE) - set(EXTRA_LIB ${EXTRA_LIB} rt) + set(PLATFORM_LIB "${PLATFORM_LIB};rt") endif() endif() -add_library(${BINARY_NAME} SHARED ${ARM_SRC} ${GBA_SRC} ${DEBUGGER_SRC} ${RENDERER_SRC} ${UTIL_SRC} ${PLATFORM_SRC} ${OS_SRC}) -target_link_libraries(${BINARY_NAME} m ${DEBUGGER_LIB} ${PLATFORM_LIBRARY} ${OPENGL_LIBRARY} ${EXTRA_LIB}) +add_library(${BINARY_NAME} SHARED ${ARM_SRC} ${GBA_SRC} ${DEBUGGER_SRC} ${RENDERER_SRC} ${UTIL_SRC} ${OS_SRC}) +target_link_libraries(${BINARY_NAME} m ${DEBUGGER_LIB} ${OS_LIB}) -add_executable(${BINARY_NAME}-bin WIN32 ${MAIN_SRC}) -target_link_libraries(${BINARY_NAME}-bin ${BINARY_NAME}) +add_executable(${BINARY_NAME}-bin WIN32 ${PLATFORM_SRC} ${MAIN_SRC}) +target_link_libraries(${BINARY_NAME}-bin ${BINARY_NAME} ${PLATFORM_LIBRARY} ${OPENGL_LIBRARY}) set_target_properties(${BINARY_NAME}-bin PROPERTIES OUTPUT_NAME ${BINARY_NAME}) if(BUILD_QT)