Ignore:
Timestamp:
Sep 24, 2014 4:01:34 AM (8 years ago)
Author:
ming
Message:

Re #1790: Initial basic implementation of Android OpenGL renderer

To use it, app has to specify PJMEDIA_HAS_VIDEO to 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r4892 r4928  
    706706else 
    707707 case $target in 
     708  *android*) 
     709        ac_pjmedia_video=android_os 
     710        AC_SUBST(ac_pjmedia_video_has_android) 
     711        AC_SUBST(ac_android_cflags) 
     712        SAVED_LIBS="$LIBS" 
     713        LIBS="-lGLESv2 -lEGL -landroid" 
     714        AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])],[ac_pjmedia_video_has_android=yes],[ac_pjmedia_video_has_android=no]) 
     715        LIBS="$SAVED_LIBS" 
     716        if test "$ac_pjmedia_video_has_android" = "yes"; then 
     717          ac_android_cflags="-DPJMEDIA_VIDEO_DEV_HAS_ANDROID_OPENGL=1" 
     718          LIBS="$LIBS -lGLESv2 -lEGL -landroid" 
     719          AC_MSG_RESULT([Checking if OpenGL ES 2 is available... yes]) 
     720        else 
     721          AC_MSG_RESULT([Checking if OpenGL ES 2 is available... no]) 
     722        fi 
     723        ;; 
    708724  arm-apple-darwin*) 
    709725        ac_pjmedia_video=iphone_os 
Note: See TracChangeset for help on using the changeset viewer.