gl: only link against gstegl if we are using egl

Assuming if we are building egl that the egl library is built
This commit is contained in:
Matthew Waters 2014-03-17 15:06:25 +01:00 committed by Tim-Philipp Müller
parent f98fee49c2
commit 9b5a5a3c37

View file

@ -49,9 +49,7 @@ libgstgl_@GST_API_VERSION@include_HEADERS = \
libgstgl_@GST_API_VERSION@_la_LIBADD = \
$(GST_PLUGINS_BASE_LIBS) \
$(top_builddir)/gst-libs/gst/egl/libgstegl-$(GST_API_VERSION).la \
-lgstvideo-$(GST_API_VERSION) \
-lgstegl-$(GST_API_VERSION) \
$(GST_BASE_LIBS) \
$(GST_LIBS) \
$(GL_LIBS)
@ -89,6 +87,7 @@ endif
if USE_EGL
libgstgl_@GST_API_VERSION@_la_SOURCES += egl/gstglcontext_egl.c \
egl/gstgldisplay_egl.c
libgstgl_@GST_API_VERSION@_la_LIBADD += $(top_builddir)/gst-libs/gst/egl/libgstegl-$(GST_API_VERSION).la
libgstgl_@GST_API_VERSION@include_HEADERS += egl/gstgldisplay_egl.h
noinst_HEADERS += egl/gstglcontext_egl.h
endif