Add support for building libplasma with GLES2

Review Request #100705 - Created Feb. 21, 2011 and submitted

Information
Jammy Zhou
kdelibs
master
Reviewers
kdelibs, plasma
After build kwin with GLES2 code path, the kwin binary still has dependency on libGL.so, which is introduced by libplasma.so. Then we also need to add GLES2 support to libplasma, so that kwin/plasma only has dependency on libGLESv2.so in this case. 

The new option "BUILD_PLASMA_WITH_OPENGLES" added in attached patch is disabled by default, and distributions can turn it on when do packaging for OpenGL ES2.0 support.
After turn the "BUILD_PLASMA_WITH_OPENGLES" option on, kwin-gles has no dependency on libGL.so now. And by default, libplasma still depends on libGL.so when run ldd.
Martin Flöser
Jammy Zhou
Jammy Zhou
Review request changed

Change Summary:

Update the patch to remove direct OpenGL dependency for libplasma. The OpenGL usage in libplasma should better go through libQtOpenGL,which can be enabled for desktop OpenGL or OpenGL ES2.0

Diff:

Revision 2 (+9 -24)

Show changes

Marco Martin
to me seems good.
filling the background of black is something that eventually should do a reimplementation.
Loading...