2
# modify pkg-config libs for opengl based on if we found GLES or not
3
if (${COMPIZ_CURRENT_PLUGIN} STREQUAL "opengl")
5
set (PKGCONFIG_LIBS "-lGLESv2 -lEGL")
7
set (PKGCONFIG_LIBS "-lGL")
9
endif (${COMPIZ_CURRENT_PLUGIN} STREQUAL "opengl")
11
# if plugin is using opengl plugin check for GLES library and set correct define
12
if (NOT "${${_PLUGIN}_PLUGINDEPS}" STREQUAL "")
13
string (REGEX MATCH "opengl" opengl_found ${${_PLUGIN}_PLUGINDEPS})
15
if (opengl_found STREQUAL "opengl")
17
set (${_PLUGIN}_CFLAGSADD ${${_PLUGIN}_CFLAGSADD} " -DUSE_GLES")
18
string (REPLACE ";" " " ${_PLUGIN}_CFLAGSADD ${${_PLUGIN}_CFLAGSADD})
20
endif (opengl_found STREQUAL "opengl")
21
endif (NOT "${${_PLUGIN}_PLUGINDEPS}" STREQUAL "")