cmake: build eglconvenience

Change-Id: Iba578190feb06953bfcba62978d2ba5b7ff35cb7
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Albert Astals Cid 2019-02-11 14:18:32 +01:00
parent 324bf0f344
commit 553254ba50
2 changed files with 41 additions and 0 deletions

View File

@ -33,6 +33,10 @@ if(QT_FEATURE_kms)
add_subdirectory(kmsconvenience) add_subdirectory(kmsconvenience)
endif() endif()
if(QT_FEATURE_egl)
add_subdirectory(eglconvenience)
endif()
if(APPLE) if(APPLE)
add_subdirectory(clipboard) add_subdirectory(clipboard)
add_subdirectory(graphics) add_subdirectory(graphics)

View File

@ -0,0 +1,37 @@
# Generated from eglconvenience.pro.
find_package(OpenGL)
#####################################################################
## EglSupport Module:
#####################################################################
add_qt_module(EglSupport
STATIC
SOURCES
qeglconvenience.cpp qeglconvenience_p.h
qeglstreamconvenience.cpp qeglstreamconvenience_p.h
qt_egl_p.h
DEFINES
QT_NO_CAST_FROM_ASCII
QT_EGL_NO_X11
LIBRARIES
Qt::CorePrivate
Qt::GuiPrivate
OpenGL::EGL
${CMAKE_DL_LIBS}
)
## Scopes:
#####################################################################
extend_target(EglSupport CONDITION QT_FEATURE_opengl
SOURCES
qeglpbuffer.cpp qeglpbuffer_p.h
qeglplatformcontext.cpp qeglplatformcontext_p.h
)
extend_target(EglSupport CONDITION QT_FEATURE_xlib
SOURCES
qxlibeglintegration.cpp qxlibeglintegration_p.h
)