Fix static build without Wayland
This commit is contained in:
parent
993e1e052e
commit
8540bd0b60
2 changed files with 10 additions and 10 deletions
10
external/qt/CMakeLists.txt
vendored
10
external/qt/CMakeLists.txt
vendored
|
|
@ -42,7 +42,7 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
)
|
||||
endif()
|
||||
|
||||
if (Qt5WaylandClient_FOUND)
|
||||
if (NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
|
||||
target_link_libraries(external_qt INTERFACE Qt5::WaylandClient)
|
||||
|
||||
target_include_directories(external_qt SYSTEM
|
||||
|
|
@ -80,7 +80,7 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
if (Qt5WaylandClient_FOUND)
|
||||
if (NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
|
||||
target_include_directories(external_qt SYSTEM
|
||||
INTERFACE
|
||||
${qt_loc}/include/QtWaylandClient
|
||||
|
|
@ -115,7 +115,7 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
if (Qt5WaylandClient_FOUND)
|
||||
if (NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
|
||||
target_compile_definitions(external_qt
|
||||
INTERFACE
|
||||
QT_WAYLANDCLIENT_LIB
|
||||
|
|
@ -206,7 +206,7 @@ else()
|
|||
endif()
|
||||
set(qt_libs_waylandclient)
|
||||
set(qt_libs_waylandclient_plugins)
|
||||
if (Qt5WaylandClient_FOUND)
|
||||
if (NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
|
||||
set(qt_libs_waylandclient lib/${qt_lib_prefix}Qt5WaylandClient)
|
||||
set(qt_libs_waylandclient_plugins
|
||||
plugins/platforms/${qt_lib_prefix}qwayland-generic
|
||||
|
|
@ -281,7 +281,7 @@ else()
|
|||
xcb-keysyms
|
||||
z
|
||||
)
|
||||
if (Qt5WaylandClient_FOUND)
|
||||
if (NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
|
||||
target_link_libraries(external_qt
|
||||
INTERFACE
|
||||
desktop-app::linux_wayland_helper
|
||||
|
|
|
|||
10
external/qt/qt6/CMakeLists.txt
vendored
10
external/qt/qt6/CMakeLists.txt
vendored
|
|
@ -30,7 +30,7 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
target_link_libraries(external_qt INTERFACE Qt6::DBus)
|
||||
endif()
|
||||
|
||||
if (Qt6WaylandClient_FOUND)
|
||||
if (NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
|
||||
target_link_libraries(external_qt INTERFACE Qt6::WaylandClient)
|
||||
|
||||
target_include_directories(external_qt SYSTEM
|
||||
|
|
@ -62,7 +62,7 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
if (Qt6WaylandClient_FOUND)
|
||||
if (NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
|
||||
target_include_directories(external_qt SYSTEM
|
||||
INTERFACE
|
||||
${qt_loc}/include/QtWaylandClient
|
||||
|
|
@ -93,7 +93,7 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
if (Qt6WaylandClient_FOUND)
|
||||
if (NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
|
||||
target_compile_definitions(external_qt
|
||||
INTERFACE
|
||||
QT_WAYLANDCLIENT_LIB
|
||||
|
|
@ -178,7 +178,7 @@ else()
|
|||
endif()
|
||||
set(qt_libs_waylandclient)
|
||||
set(qt_libs_waylandclient_plugins)
|
||||
if (Qt6WaylandClient_FOUND)
|
||||
if (NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
|
||||
set(qt_libs_waylandclient
|
||||
lib/${qt_lib_prefix}Qt6WaylandEglClientHwIntegration
|
||||
lib/${qt_lib_prefix}Qt6WaylandClient
|
||||
|
|
@ -252,7 +252,7 @@ else()
|
|||
xcb-keysyms
|
||||
z
|
||||
)
|
||||
if (Qt6WaylandClient_FOUND)
|
||||
if (NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
|
||||
target_link_libraries(external_qt
|
||||
INTERFACE
|
||||
desktop-app::linux_wayland_helper
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue