summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-10-18 14:07:07 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-10-18 14:22:56 +0200
commit2025ab9bbd21ed240d6fa531b950c104ccaf5b69 (patch)
treec3e83604da51e6d80c42f3d2e18c5daba9d76c4e
parentf952d7a556b6ff502016c1dc71e09af0140f0652 (diff)
eglglessink: Integrate into the build system
-rw-r--r--configure.ac31
-rw-r--r--ext/Makefile.am8
-rw-r--r--ext/eglgles/Makefile.am2
3 files changed, 39 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 82f4afc72..e38083f85 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1593,6 +1593,36 @@ AG_GST_CHECK_FEATURE(RSVG, [rsvg decoder], rsvg, [
AC_SUBST(RSVG_LIBS)
])
+dnl *** eglgles ***
+translit(dnm, m, l) AM_CONDITIONAL(USE_EGLGLES, true)
+AG_GST_CHECK_FEATURE(EGLGLES, [eglgles sink], eglgles, [
+ HAVE_EGLGLES="no"
+ PKG_CHECK_MODULES(EGLGLES, egl glesv2, HAVE_EGLGLES="yes", [
+ HAVE_EGLGLES="no"
+ old_LIBS=$LIBS
+ old_CFLAGS=$CFLAGS
+ AC_CHECK_LIB([GLESv2], [glEnable],
+ [
+ AC_CHECK_HEADER([GLES2/gl2.h],
+ [
+ AC_CHECK_LIB([EGL], [eglGetProcAddress],
+ [
+ AC_CHECK_HEADER([EGL/egl.h],
+ [
+ HAVE_EGLGLES="yes"
+ EGLGLES_LIBS="-lGLESv2 -lEGL"
+ EGLGLES_CFLAGS=""
+ ])
+ ])
+ ])
+ ])
+ LIBS=$old_LIBS
+ CFLAGS=$old_CFLAGS
+ ])
+ AC_SUBST(EGLGLES_CFLAGS)
+ AC_SUBST(EGLGLES_LIBS)
+])
+
dnl *** timidity ***
translit(dnm, m, l) AM_CONDITIONAL(USE_TIMIDITY, true)
AG_GST_CHECK_FEATURE(TIMIDITY, [timidity midi soft synth plugin], timidity, [
@@ -2236,6 +2266,7 @@ ext/directfb/Makefile
ext/wayland/Makefile
ext/divx/Makefile
ext/dts/Makefile
+ext/eglgles/Makefile
ext/faac/Makefile
ext/faad/Makefile
ext/flite/Makefile
diff --git a/ext/Makefile.am b/ext/Makefile.am
index 6bd70443a..af4599731 100644
--- a/ext/Makefile.am
+++ b/ext/Makefile.am
@@ -112,6 +112,12 @@ else
DTS_DIR=
endif
+if USE_EGLGLES
+EGLGLES_DIR=eglgles
+else
+EGLGLES_DIR=
+endif
+
if USE_RESINDVD
RESINDVD_DIR = resindvd
else
@@ -425,6 +431,7 @@ SUBDIRS=\
$(DIVX_DIR) \
$(DTS_DIR) \
$(RESINDVD_DIR) \
+ $(EGLGLES_DIR) \
$(FAAC_DIR) \
$(FAAD_DIR) \
$(FLITE_DIR) \
@@ -496,6 +503,7 @@ DIST_SUBDIRS = \
lv2 \
dts \
divx \
+ eglgles \
modplug \
mimic \
mpeg2enc \
diff --git a/ext/eglgles/Makefile.am b/ext/eglgles/Makefile.am
index af79dfd57..2573247ab 100644
--- a/ext/eglgles/Makefile.am
+++ b/ext/eglgles/Makefile.am
@@ -14,8 +14,6 @@ libgsteglglessink_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) \
-lgstinterfaces-$(GST_MAJORMINOR)
libgsteglglessink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-if !GST_PLUGIN_BUILD_STATIC
libgsteglglessink_la_LIBTOOLFLAGS = --tag=disable-static
-endif
noinst_HEADERS = gsteglglessink.h video_platform_wrapper.h