Files
Andrew Rabert f204676e4b Fix some qt6 builds
- Fixes build and package for at least Ubuntu 24.04
- Defaulted to building and statically linking mpvqt as most platforms
  lack packages for it.
- Workaround mpvqt requiring qt>=6.5 for wayland support with a few
  workarounds when statically building.
- Additionally, default to xcb on qt<6.5 due to mpvqt using qt>=6.5
  fetures for wayland. Wayland can be forced, but seems to give black
  video.
2025-11-23 02:09:33 -05:00

27 lines
548 B
C++

// Compatibility header for Qt < 6.5 that lacks QWaylandApplication
#ifndef QT_WAYLAND_COMPAT_H
#define QT_WAYLAND_COMPAT_H
#include <QtCore/qglobal.h>
#if QT_VERSION < QT_VERSION_CHECK(6, 5, 0)
#include <QtCore/qnativeinterface.h>
#include <QtGui/qguiapplication.h>
struct wl_display;
namespace QNativeInterface {
struct Q_GUI_EXPORT QWaylandApplication
{
QT_DECLARE_NATIVE_INTERFACE(QWaylandApplication, 1, QGuiApplication)
virtual wl_display *display() const = 0;
};
}
#endif // QT_VERSION < 6.5.0
#endif // QT_WAYLAND_COMPAT_H