Changeset 4131
- Timestamp:
- May 17, 2012 11:23:41 AM (13 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure
r4108 r4131 724 724 with_external_pa 725 725 enable_oss 726 enable_video 726 727 enable_ext_sound 727 728 enable_small_filter … … 1381 1382 --disable-sound Exclude sound (i.e. use null sound) 1382 1383 --disable-oss Disable OSS audio (default: not disabled) 1384 --disable-video Disable video feature 1383 1385 --enable-ext-sound PJMEDIA will not provide any sound device backend 1384 1386 --disable-small-filter Exclude small filter in resampling … … 5672 5674 5673 5675 5676 5677 # Check whether --enable-video was given. 5678 if test "${enable_video+set}" = set; then : 5679 enableval=$enable_video; if test "$enable_video" = "no"; then 5680 #AC_DEFINE(PJMEDIA_HAS_VIDEO,0) 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Video is disabled" >&5 5682 $as_echo "Video is disabled" >&6; } 5683 enable_sdl="no" 5684 enable_ffmpeg="no" 5685 enable_v4l2="no" 5686 fi 5687 fi 5688 5689 5690 case $target in 5691 arm-apple-darwin*) 5692 LIBS="$LIBS -framework UIKit" 5693 ;; 5694 *darwin*) 5695 LIBS="$LIBS -framework Foundation -framework AppKit" 5696 ;; 5697 esac 5698 5674 5699 if test "$enable_video" = "no"; then 5675 5700 true; … … 5681 5706 5682 5707 SAVED_LIBS="$LIBS" 5683 LIBS="-framework AVFoundation -framework UIKit -frameworkCoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"5708 LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 5684 5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5685 5710 /* end confdefs.h. */ … … 5703 5728 if test "$ac_pjmedia_video_has_ios" = "yes"; then 5704 5729 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1" 5705 LIBS="$LIBS -framework AVFoundation -framework UIKit -frameworkCoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"5730 LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 5706 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5 5707 5732 $as_echo "Checking if AVFoundation framework is available... yes" >&6; } … … 5738 5763 if test "$ac_pjmedia_video_has_qt" = "yes"; then 5739 5764 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" 5740 LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -frameworkQuartzCore -framework OpenGL"5765 LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL" 5741 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5 5742 5767 $as_echo "Checking if QTKit framework is available... yes" >&6; } … … 6052 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5 6053 6078 $as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; } 6054 PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig6079 export PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig 6055 6080 fi 6056 6081 … … 6410 6435 6411 6436 LIBS="$LIBS $ac_ffmpeg_ldflags" 6412 PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH6437 export PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH 6413 6438 6414 6439 -
pjproject/trunk/aconfigure.ac
r4108 r4131 613 613 614 614 AC_SUBST(ac_pjmedia_video) 615 616 dnl # --disable-video option 617 AC_ARG_ENABLE(video, 618 AC_HELP_STRING([--disable-video], 619 [Disable video feature]), 620 [if test "$enable_video" = "no"; then 621 #AC_DEFINE(PJMEDIA_HAS_VIDEO,0) 622 AC_MSG_RESULT([Video is disabled]) 623 enable_sdl="no" 624 enable_ffmpeg="no" 625 enable_v4l2="no" 626 fi], 627 []) 628 629 case $target in 630 arm-apple-darwin*) 631 LIBS="$LIBS -framework UIKit" 632 ;; 633 *darwin*) 634 LIBS="$LIBS -framework Foundation -framework AppKit" 635 ;; 636 esac 637 615 638 if test "$enable_video" = "no"; then 616 639 true; … … 622 645 AC_SUBST(ac_ios_cflags) 623 646 SAVED_LIBS="$LIBS" 624 LIBS="-framework AVFoundation -framework UIKit -frameworkCoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"647 LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 625 648 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])],[ac_pjmedia_video_has_ios=yes],[ac_pjmedia_video_has_ios=no]) 626 649 LIBS="$SAVED_LIBS" 627 650 if test "$ac_pjmedia_video_has_ios" = "yes"; then 628 651 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1" 629 LIBS="$LIBS -framework AVFoundation -framework UIKit -frameworkCoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"652 LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 630 653 AC_MSG_RESULT([Checking if AVFoundation framework is available... yes]) 631 654 else … … 643 666 if test "$ac_pjmedia_video_has_qt" = "yes"; then 644 667 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" 645 LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -frameworkQuartzCore -framework OpenGL"668 LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL" 646 669 AC_MSG_RESULT([Checking if QTKit framework is available... yes]) 647 670 else … … 858 881 FFMPEG_PREFIX=$with_ffmpeg 859 882 AC_MSG_RESULT([Using ffmpeg prefix... $FFMPEG_PREFIX]) 860 PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig883 export PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig 861 884 fi 862 885 … … 957 980 958 981 LIBS="$LIBS $ac_ffmpeg_ldflags" 959 PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH982 export PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH 960 983 ] 961 984 )
Note: See TracChangeset
for help on using the changeset viewer.