summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2014-09-24 04:01:34 +0000
committerLiong Sauw Ming <ming@teluu.com>2014-09-24 04:01:34 +0000
commit4d9808a6a48bd7ad4617709a2a1dbb6891deb963 (patch)
treec371e06b95eaabd5ddce3a5a96b5b47d8a7ee388 /aconfigure.ac
parent76631c2519ae0dc653828d2eda184271cedd5aae (diff)
Re #1790: Initial basic implementation of Android OpenGL renderer
To use it, app has to specify PJMEDIA_HAS_VIDEO to 1 git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4928 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac16
1 files changed, 16 insertions, 0 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index b7bf92e0..83386423 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -705,6 +705,22 @@ if test "$enable_video" = "no"; then
true;
else
case $target in
+ *android*)
+ ac_pjmedia_video=android_os
+ AC_SUBST(ac_pjmedia_video_has_android)
+ AC_SUBST(ac_android_cflags)
+ SAVED_LIBS="$LIBS"
+ LIBS="-lGLESv2 -lEGL -landroid"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])],[ac_pjmedia_video_has_android=yes],[ac_pjmedia_video_has_android=no])
+ LIBS="$SAVED_LIBS"
+ if test "$ac_pjmedia_video_has_android" = "yes"; then
+ ac_android_cflags="-DPJMEDIA_VIDEO_DEV_HAS_ANDROID_OPENGL=1"
+ LIBS="$LIBS -lGLESv2 -lEGL -landroid"
+ AC_MSG_RESULT([Checking if OpenGL ES 2 is available... yes])
+ else
+ AC_MSG_RESULT([Checking if OpenGL ES 2 is available... no])
+ fi
+ ;;
arm-apple-darwin*)
ac_pjmedia_video=iphone_os
AC_SUBST(ac_pjmedia_video_has_ios)