Merge pull request #1340 from Sonicadvance1/EGL-fixes

Remove hard dependencies of GLX and libGL from Dolphin.
This commit is contained in:
skidau 2014-10-22 13:15:46 +11:00
commit 5d4b4c793a
2 changed files with 7 additions and 3 deletions

View File

@ -88,8 +88,13 @@ if(WIN32)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(SRCS ${SRCS} GLInterface/AGL.cpp)
elseif(USE_X11)
set(SRCS ${SRCS} GLInterface/GLX.cpp
GLInterface/X11_Util.cpp)
if (NOT USE_EGL)
set(SRCS ${SRCS} GLInterface/GLX.cpp)
# GLX has a hard dependency on libGL.
# Make sure to link to it if using GLX.
set(LIBS ${LIBS} ${OPENGL_LIBRARIES})
endif()
set(SRCS ${SRCS} GLInterface/X11_Util.cpp)
endif()
set(SRCS ${SRCS} GLInterface/GLInterface.cpp)

View File

@ -25,7 +25,6 @@ set(LIBS videocommon
SOIL
common
${X11_LIBRARIES}
${OPENGL_LIBRARIES}
${wxWidgets_LIBRARIES})
add_dolphin_library(videosoftware "${SRCS}" "${LIBS}")