mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-01-31 01:15:24 +01:00
cmake: remove Qt6::GuiPrivate dependency on WIN32 and APPLE
This commit is contained in:
@@ -110,8 +110,10 @@ disable_compiler_warnings_for_target(speex)
|
|||||||
if(ENABLE_QT_UI)
|
if(ENABLE_QT_UI)
|
||||||
find_package(Qt6 6.10.0 COMPONENTS CoreTools Core GuiTools Gui WidgetsTools Widgets LinguistTools REQUIRED)
|
find_package(Qt6 6.10.0 COMPONENTS CoreTools Core GuiTools Gui WidgetsTools Widgets LinguistTools REQUIRED)
|
||||||
|
|
||||||
if (Qt6_VERSION VERSION_GREATER_EQUAL 6.10.0)
|
if(NOT WIN32 AND NOT APPLE)
|
||||||
find_package(Qt6 COMPONENTS CorePrivate GuiPrivate WidgetsPrivate REQUIRED)
|
if (Qt6_VERSION VERSION_GREATER_EQUAL 6.10.0)
|
||||||
|
find_package(Qt6 COMPONENTS CorePrivate GuiPrivate WidgetsPrivate REQUIRED)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# The docking system for the debugger.
|
# The docking system for the debugger.
|
||||||
|
|||||||
@@ -289,11 +289,14 @@ target_link_libraries(pcsx2-qt PRIVATE
|
|||||||
PCSX2
|
PCSX2
|
||||||
Qt6::Core
|
Qt6::Core
|
||||||
Qt6::Gui
|
Qt6::Gui
|
||||||
Qt6::GuiPrivate
|
|
||||||
Qt6::Widgets
|
Qt6::Widgets
|
||||||
KDAB::kddockwidgets
|
KDAB::kddockwidgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(NOT WIN32 AND NOT APPLE)
|
||||||
|
target_link_libraries(pcsx2-qt PRIVATE Qt6::GuiPrivate)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Our Qt builds may have exceptions on, so force them off.
|
# Our Qt builds may have exceptions on, so force them off.
|
||||||
target_compile_definitions(pcsx2-qt PRIVATE QT_NO_EXCEPTIONS)
|
target_compile_definitions(pcsx2-qt PRIVATE QT_NO_EXCEPTIONS)
|
||||||
|
|
||||||
|
|||||||
@@ -26,8 +26,6 @@
|
|||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#include "common/RedtapeWindows.h"
|
#include "common/RedtapeWindows.h"
|
||||||
#elif !defined(APPLE)
|
|
||||||
#include <qpa/qplatformnativeinterface.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DisplaySurface::DisplaySurface()
|
DisplaySurface::DisplaySurface()
|
||||||
|
|||||||
Reference in New Issue
Block a user