diff options
Diffstat (limited to 'src/opengl/opengl.pro')
-rw-r--r-- | src/opengl/opengl.pro | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/src/opengl/opengl.pro b/src/opengl/opengl.pro index d6011cf2f9..2d2ed15899 100644 --- a/src/opengl/opengl.pro +++ b/src/opengl/opengl.pro @@ -11,7 +11,7 @@ unix:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui include(../qbase.pri) -!win32:!embedded:!mac:CONFIG += x11 +!wayland:!win32:!embedded:!mac:CONFIG += x11 contains(QT_CONFIG, opengl):CONFIG += opengl contains(QT_CONFIG, opengles1):CONFIG += opengles1 contains(QT_CONFIG, opengles2):CONFIG += opengles2 @@ -111,6 +111,40 @@ x11 { LIBS_PRIVATE += $$QMAKE_LIBS_DYNLOAD } +wayland { + contains(QT_CONFIG, egl) { + SOURCES += qgl_waylandegl.cpp \ + qglpixelbuffer_egl.cpp \ + qgl_egl.cpp \ + qpixmapdata_waylandgl_egl.cpp \ + qwindowsurface_waylandgl.cpp + + HEADERS += qgl_egl_p.h \ + qpixmapdata_waylandgl_p.h \ + qwindowsurface_waylandgl_p.h + + } else { + SOURCES += qgl_wayland.cpp \ + qglpixelbuffer_wayland.cpp + } + + contains(QT_CONFIG, fontconfig) { + contains(QT_CONFIG, system-freetype) { + embedded:CONFIG += opentype + # pull in the proper freetype2 include directory + include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri) + LIBS_PRIVATE += -lfreetype + } else { + ### Note: how does this compile with a non-system freetype? + # This probably does not compile + } + } else { + DEFINES *= QT_NO_FREETYPE + } + + LIBS_PRIVATE += $$QMAKE_LIBS_DYNLOAD +} + mac { OBJECTIVE_SOURCES += qgl_mac.mm \ qglpixelbuffer_mac.mm |