Merge pull request #1589 from lioncash/x11
VideoOGL: Move X11 wxWidgets utilities to DolphinWX
This commit is contained in:
commit
dcdd4e51f6
|
@ -48,6 +48,13 @@ set(GUI_SRCS
|
||||||
WiimoteConfigDiag.cpp
|
WiimoteConfigDiag.cpp
|
||||||
WxUtils.cpp)
|
WxUtils.cpp)
|
||||||
|
|
||||||
|
set(NOGUI_SRCS MainNoGUI.cpp)
|
||||||
|
|
||||||
|
if(USE_X11)
|
||||||
|
set(GUI_SRCS ${GUI_SRCS} X11Utils.cpp)
|
||||||
|
set(NOGUI_SRCS ${NOGUI_SRCS} X11Utils.cpp)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(WXLIBS ${wxWidgets_LIBRARIES} dl)
|
set(WXLIBS ${wxWidgets_LIBRARIES} dl)
|
||||||
|
|
||||||
list(APPEND LIBS core uicommon)
|
list(APPEND LIBS core uicommon)
|
||||||
|
@ -56,12 +63,9 @@ if(ANDROID)
|
||||||
list(APPEND LIBS png)
|
list(APPEND LIBS png)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
set(ANDROID_SRCS Android/ButtonManager.cpp
|
set(ANDROID_SRCS Android/ButtonManager.cpp
|
||||||
MainAndroid.cpp)
|
MainAndroid.cpp)
|
||||||
|
|
||||||
set(NOGUI_SRCS MainNoGUI.cpp)
|
|
||||||
|
|
||||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
if(wxWidgets_FOUND)
|
if(wxWidgets_FOUND)
|
||||||
list(APPEND WXLIBS
|
list(APPEND WXLIBS
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
||||||
#include "VideoBackends/OGL/GLInterface/X11Utils.h"
|
#include "DolphinWX/X11Utils.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class wxBoxSizer;
|
class wxBoxSizer;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include "InputCommon/GCPadStatus.h"
|
#include "InputCommon/GCPadStatus.h"
|
||||||
|
|
||||||
#if defined(HAVE_X11) && HAVE_X11
|
#if defined(HAVE_X11) && HAVE_X11
|
||||||
#include "VideoBackends/OGL/GLInterface/X11Utils.h"
|
#include "DolphinWX/X11Utils.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Class declarations
|
// Class declarations
|
||||||
|
|
|
@ -101,7 +101,7 @@ void Host_ShowVideoConfig(void*, const std::string&, const std::string&) {}
|
||||||
|
|
||||||
#if HAVE_X11
|
#if HAVE_X11
|
||||||
#include <X11/keysym.h>
|
#include <X11/keysym.h>
|
||||||
#include "VideoBackends/OGL/GLInterface/X11Utils.h"
|
#include "DolphinWX/X11Utils.h"
|
||||||
|
|
||||||
class PlatformX11 : public Platform
|
class PlatformX11 : public Platform
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#include "Core/ConfigManager.h"
|
#include "Core/ConfigManager.h"
|
||||||
#include "Core/Core.h"
|
#include "Core/Core.h"
|
||||||
#include "Core/CoreParameter.h"
|
#include "Core/CoreParameter.h"
|
||||||
#include "VideoBackends/OGL/GLInterface/X11Utils.h"
|
#include "DolphinWX/X11Utils.h"
|
||||||
|
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
|
|
|
@ -35,7 +35,7 @@ elseif(USE_X11)
|
||||||
# Make sure to link to it if using GLX.
|
# Make sure to link to it if using GLX.
|
||||||
set(LIBS ${LIBS} ${OPENGL_LIBRARIES})
|
set(LIBS ${LIBS} ${OPENGL_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
set(SRCS ${SRCS} GLInterface/X11_Util.cpp GLInterface/X11Utils.cpp)
|
set(SRCS ${SRCS} GLInterface/X11_Util.cpp)
|
||||||
set(LIBS ${LIBS} ${XRANDR_LIBRARIES})
|
set(LIBS ${LIBS} ${XRANDR_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue