summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorAnton <anton@picapica.im>2026-08-16 03:28:51 +0400
committerAnton <anton@picapica.im>2026-08-16 03:28:51 +0400
commit1b7b9d46c84c38cbf2df293113a687481e205585 (patch)
tree59f95bc2900e5e12141d40777e332ce4e2ee91d6 /Makefile.am
parentad95ec8759777c4b8df0dcd66fd8200d24e912b1 (diff)
downloadpica-pica-1b7b9d46c84c38cbf2df293113a687481e205585.tar.gz
pica-pica-1b7b9d46c84c38cbf2df293113a687481e205585.zip
pica-client: VAAPI on X11, two codepaths
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 88e9853..fa97f67 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -203,6 +203,21 @@ pica_client_pica_client_LDADD += $(VAAPI_LIBS) -lGL
MOCFLAGS += -DHAVE_VAAPI
endif
+# Drawing a decoded surface in an X11 session, where Qt's OpenGL contexts come
+# from GLX and cannot import DMA-BUF handles: the driver draws the surface
+# straight onto the widget's X window instead.
+if PICA_VAAPI_X11
+pica_client_pica_client_SOURCES += \
+pica-client/vaapix11widget.cpp \
+pica-client/vaapix11widget.h
+
+nodist_pica_client_pica_client_SOURCES += moc_vaapix11widget.cpp
+
+pica_client_pica_client_CPPFLAGS += $(VAAPI_X11_CFLAGS)
+pica_client_pica_client_LDADD += $(VAAPI_X11_LIBS)
+MOCFLAGS += -DHAVE_VAAPI_X11
+endif
+
pkgpicaclientdir = ${datarootdir}/pica-client
dist_pkgpicaclient_DATA = \
dhparam4096.pem \