]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8867: build using in tree libyuv to match required version and not impact system...
authorMichael Jerris <mike@jerris.com>
Wed, 24 Feb 2016 21:52:40 +0000 (16:52 -0500)
committerMichael Jerris <mike@jerris.com>
Wed, 24 Feb 2016 21:52:40 +0000 (16:52 -0500)
Makefile.am
configure.ac
src/mod/applications/mod_av/Makefile.am
src/mod/applications/mod_cv/Makefile.am
src/mod/applications/mod_fsv/Makefile.am
src/mod/applications/mod_mp4v2/Makefile.am
src/mod/codecs/mod_openh264/Makefile.am
src/mod/formats/mod_imagick/Makefile.am
src/mod/formats/mod_vlc/Makefile.am

index 44ec7a852ef844f870cec61245532ac558e1d7cf..e0a10b218ae3eb5b8313e34a9390e513375b7c2c 100644 (file)
@@ -115,9 +115,11 @@ CORE_CFLAGS  = $(AM_LIBAPR_CFLAGS) $(AM_LIBAPR_CPPFLAGS)
 CORE_CFLAGS += $(AM_LIBAPU_CPPFLAGS)
 CORE_CFLAGS += -I$(switch_srcdir)/libs/libtpl-1.5/src
 CORE_CFLAGS += -I$(switch_srcdir)/libs/srtp/include
+CORE_CFLAGS += -I$(switch_srcdir)/libs/libyuv/include
 CORE_CFLAGS += -I$(switch_srcdir)/libs/srtp/crypto/include -Ilibs/srtp/crypto/include
 CORE_CFLAGS += -I$(switch_builddir)/libs/spandsp/src -I$(switch_srcdir)/libs/spandsp/src 
 CORE_CFLAGS += -I$(switch_builddir)/libs/tiff-4.0.2/libtiff -I$(switch_srcdir)/libs/tiff-4.0.2/libtiff
+CORE_CFLAGS += -DSWITCH_HAVE_YUV
 
 APR_LIBS   = $(AM_LIBAPU_LIBS) $(AM_LIBAPR_LIBS)
 CORE_LIBS=
@@ -153,10 +155,6 @@ if HAVE_VPX
 CORE_CFLAGS += -DSWITCH_HAVE_VPX $(VPX_CFLAGS)
 endif
 
-if HAVE_YUV
-CORE_CFLAGS += -DSWITCH_HAVE_YUV $(YUV_CFLAGS)
-endif
-
 if HAVE_FREETYPE
 CORE_CFLAGS += -DSWITCH_HAVE_FREETYPE $(LIBFREETYPE_CFLAGS)
 endif
@@ -164,10 +162,44 @@ endif
 ##
 ## libfreeswitch
 ##
-noinst_LTLIBRARIES        = libfreeswitch_spandsp.la
+noinst_LTLIBRARIES        = libfreeswitch_spandsp.la libfreeswitch_libyuv.la
 libfreeswitch_spandsp_la_SOURCES = libs/spandsp/src/plc.c libs/spandsp/src/alloc.c libs/spandsp/src/bit_operations.c
 libfreeswitch_spandsp_la_CFLAGS  = -Ilibs/spandsp/src $(CORE_CFLAGS) $(AM_CFLAGS)
 CORE_LIBS+=libfreeswitch_spandsp.la
+
+libfreeswitch_libyuv_la_SOURCES = \
+    libs/libyuv/source/compare.cc           \
+    libs/libyuv/source/compare_common.cc    \
+    libs/libyuv/source/compare_gcc.cc       \
+    libs/libyuv/source/convert.cc           \
+    libs/libyuv/source/convert_argb.cc      \
+    libs/libyuv/source/convert_from.cc      \
+    libs/libyuv/source/convert_from_argb.cc \
+    libs/libyuv/source/convert_to_argb.cc   \
+    libs/libyuv/source/convert_to_i420.cc   \
+    libs/libyuv/source/cpu_id.cc            \
+    libs/libyuv/source/planar_functions.cc  \
+    libs/libyuv/source/rotate.cc            \
+    libs/libyuv/source/rotate_any.cc        \
+    libs/libyuv/source/rotate_argb.cc       \
+    libs/libyuv/source/rotate_common.cc     \
+    libs/libyuv/source/rotate_gcc.cc        \
+    libs/libyuv/source/rotate_mips.cc       \
+    libs/libyuv/source/row_any.cc           \
+    libs/libyuv/source/row_common.cc        \
+    libs/libyuv/source/row_mips.cc          \
+    libs/libyuv/source/row_gcc.cc           \
+    libs/libyuv/source/scale.cc             \
+    libs/libyuv/source/scale_any.cc         \
+    libs/libyuv/source/scale_argb.cc        \
+    libs/libyuv/source/scale_common.cc      \
+    libs/libyuv/source/scale_gcc.cc         \
+    libs/libyuv/source/scale_mips.cc        \
+    libs/libyuv/source/video_common.cc
+
+libfreeswitch_libyuv_la_CPPFLAGS = -O2 -fomit-frame-pointer -Ilibs/libyuv/include
+CORE_LIBS+=libfreeswitch_libyuv.la
+
 lib_LTLIBRARIES                 = libfreeswitch.la
 libfreeswitch_la_CFLAGS  = $(CORE_CFLAGS) $(SQLITE_CFLAGS) $(FREETYPE_CFLAGS) $(CURL_CFLAGS) $(PCRE_CFLAGS) $(SPEEX_CFLAGS) $(LIBEDIT_CFLAGS) $(openssl_CFLAGS) $(VPX_CFLAGS) $(AM_CFLAGS)
 libfreeswitch_la_LDFLAGS = -version-info 1:0:0 $(AM_LDFLAGS) $(PLATFORM_CORE_LDFLAGS) -no-undefined
index 37d49c4dd121f375eab6ae04f50d6d0d85137c2e..6e877320532742f1a62b08b5c62bf19c2a6c6f26 100644 (file)
@@ -785,12 +785,6 @@ if test "x$have_libz" = "xyes"  ; then
 APR_ADDTO([PLATFORM_CORE_LIBS], [-lz])
 fi
 
-PKG_CHECK_MODULES([YUV], [libyuv >= 0.0.1280],
-                        [AC_MSG_RESULT([yes]);AM_CONDITIONAL([HAVE_YUV],[true])],
-                        [AC_MSG_RESULT([no]);AM_CONDITIONAL([HAVE_YUV],[false])])
-
-APR_ADDTO([PLATFORM_CORE_LIBS], [${YUV_LIBS}])
-
 PKG_CHECK_MODULES([MPG123], [libmpg123 >= 1.20.1],[
   AM_CONDITIONAL([HAVE_MPG123],[true])],[
   AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_MPG123],[false])])
index cd5ffdb10751a26ba190e75a4ff931dc1a32e331..52c1c5340910dae821d916c4fc67ada0a0683e0c 100644 (file)
@@ -1,7 +1,6 @@
 include $(top_srcdir)/build/modmake.rulesam
 MODNAME=mod_av
 
-if HAVE_YUV
 if HAVE_VPX
 if HAVE_AVFORMAT
 
@@ -24,12 +23,3 @@ all: error
 error:
        $(error You must install libvpx2-dev to build mod_av)
 endif
-
-
-else
-install: error
-all: error
-error:
-       $(error You must install libyuv-dev to build mod_av)
-endif
-
index 6386d459713ba25821cc585532a1e0af196675b4..9f62055f6403ee1823128241a13b196ceb06cd57 100644 (file)
@@ -1,7 +1,6 @@
 include $(top_srcdir)/build/modmake.rulesam
 MODNAME=mod_cv
 
-if HAVE_YUV
 if HAVE_VPX
 if HAVE_OPENCV
 
@@ -24,12 +23,3 @@ all: error
 error:
        $(error You must install libvpx2-dev to build mod_cv)
 endif
-
-
-else
-install: error
-all: error
-error:
-       $(error You must install libyuv-dev to build mod_cv)
-endif
-
index 3b21b98405d34f413af25d10894da1c1501a6c2e..900d72bd7ceaa3e6a178e3353d874037ebb2c9ab 100644 (file)
@@ -1,7 +1,6 @@
 include $(top_srcdir)/build/modmake.rulesam
 MODNAME=mod_fsv
 
-if HAVE_YUV
 if HAVE_VPX
 
 mod_LTLIBRARIES = mod_fsv.la
@@ -16,13 +15,3 @@ all: error
 error:
        $(error You must install libvpx2-dev to build mod_fsv)
 endif
-
-
-else
-install: error
-all: error
-error:
-       $(error You must install libyuv-dev to build mod_fsv)
-endif
-
-
index 877dd45e12997359f68bc68090486cc241154f7c..7bd8ee9aeef6770fbe4f1a41eac45137fe923b69 100644 (file)
@@ -1,7 +1,6 @@
 include $(top_srcdir)/build/modmake.rulesam
 MODNAME=mod_mp4v2
 
-if HAVE_YUV
 if HAVE_VPX
 
 mod_LTLIBRARIES = mod_mp4v2.la
@@ -16,12 +15,3 @@ all: error
 error:
        $(error You must install libvpx2-dev to build mod_mp4v2)
 endif
-
-
-else
-install: error
-all: error
-error:
-       $(error You must install libyuv-dev to build mod_mp4v2)
-endif
-
index f7939ea3682e66eda240b86bacbd1740645f7494..f71b90e482a656ba11acd7a153d6ba9a7d31485c 100644 (file)
@@ -1,7 +1,6 @@
 include $(top_srcdir)/build/modmake.rulesam
 MODNAME=mod_openh264
 
-if HAVE_YUV
 if HAVE_VPX
 
 OPENH264_DIR=/usr/local/
@@ -18,12 +17,3 @@ all: error
 error:
        $(error You must install libvpx2-dev to build mod_openh264)
 endif
-
-
-else
-install: error
-all: error
-error:
-       $(error You must install libyuv-dev to build mod_openh264)
-endif
-
index c960d33d78a924ad360f1a341f779344ff0c2e2a..dcf49efebc458149d97503e612ccec7eccffa20d 100644 (file)
@@ -1,7 +1,6 @@
 include $(top_srcdir)/build/modmake.rulesam
 MODNAME=mod_imagick
 
-if HAVE_YUV
 if HAVE_VPX
 if HAVE_MAGICK
 
@@ -24,12 +23,3 @@ all: error
 error:
        $(error You must install libvpx2-dev to build mod_imagick)
 endif
-
-
-else
-install: error
-all: error
-error:
-       $(error You must install libyuv-dev to build mod_imagick)
-endif
-
index 16bda68ad5ad74ca79c71edfae232586097c037d..4c111d4793e60ddbf0bbabdd89203668aae3bceb 100644 (file)
@@ -1,7 +1,6 @@
 include $(top_srcdir)/build/modmake.rulesam
 MODNAME=mod_vlc
 
-if HAVE_YUV
 if HAVE_VPX
 if HAVE_VLC
 
@@ -24,11 +23,3 @@ all: error
 error:
        $(error You must install libvpx2-dev to build mod_vlc)
 endif
-
-else
-install: error
-all: error
-error:
-       $(error You must install libyuv-dev to build mod_vlc)
-endif
-