configure.ac: Import top-level include directory
authorEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 10 Sep 2012 15:08:00 +0000 (17:08 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 10 Sep 2012 15:08:00 +0000 (17:08 +0200)
And fixup all includes

18 files changed:
configure.ac
ext/ffmpeg/gstffmpeg.c
ext/ffmpeg/gstffmpeg.h
ext/ffmpeg/gstffmpegaudioresample.c
ext/ffmpeg/gstffmpegcodecmap.c
ext/ffmpeg/gstffmpegcodecmap.h
ext/ffmpeg/gstffmpegdec.c
ext/ffmpeg/gstffmpegdeinterlace.c
ext/ffmpeg/gstffmpegdemux.c
ext/ffmpeg/gstffmpegenc.c
ext/ffmpeg/gstffmpegmux.c
ext/ffmpeg/gstffmpegprotocol.c
ext/ffmpeg/gstffmpegscale.c
ext/ffmpeg/gstffmpegutils.h
ext/ffmpeg/gstffmpegviddec.c
ext/ffmpeg/gstffmpegvidenc.c
ext/libpostproc/gstpostproc.c
ext/libswscale/gstffmpegscale.c

index 7f9abdd..4c565b3 100644 (file)
@@ -268,11 +268,7 @@ else
   AC_MSG_NOTICE([Using local Libav snapshot])
   
   dnl libgstlibav.la: include dirs
-  LIBAV_CFLAGS="-I \$(top_srcdir)/gst-libs/ext/libav/libavutil \
-                -I \$(top_srcdir)/gst-libs/ext/libav/libavformat \
-                 -I \$(top_srcdir)/gst-libs/ext/libav/libavcodec \
-                -I \$(top_srcdir)/gst-libs/ext/libav \
-                -I \$(top_builddir)/gst-libs/ext/libav \
+  LIBAV_CFLAGS="-I \$(top_srcdir)/gst-libs/ext/libav \
                  -Wno-deprecated-declarations"
 
   dnl libgstlibav.la: libs to statically link to        
@@ -280,11 +276,7 @@ else
                \$(top_builddir)/gst-libs/ext/libav/libavcodec/libavcodec.a \
                \$(top_builddir)/gst-libs/ext/libav/libavutil/libavutil.a"
   dnl
-  POSTPROC_CFLAGS="-I \$(top_srcdir)/gst-libs/ext/libav/libpostproc    \
-                   -I \$(top_srcdir)/gst-libs/ext/libav/libavutil      \
-                   -I \$(top_srcdir)/gst-libs/ext/libav/libavcodec     \
-                   -I \$(top_srcdir)/gst-libs/ext/libav        \
-                  -I \$(top_builddir)/gst-libs/ext/libav \
+  POSTPROC_CFLAGS="-I \$(top_srcdir)/gst-libs/ext/libav/ \
                    -Wno-deprecated-declarations"
 
   dnl libgstpostproc.la: libs to statically link to
@@ -292,10 +284,7 @@ else
                 \$(top_builddir)/gst-libs/ext/libav/libavutil/libavutil.a"
                                 
   dnl
-  SWSCALE_CFLAGS="-I \$(top_srcdir)/gst-libs/ext/libav/libswscale      \
-                  -I \$(top_srcdir)/gst-libs/ext/libav/libavutil       \
-                  -I \$(top_srcdir)/gst-libs/ext/libav         \
-                  -I \$(top_builddir)/gst-libs/ext/libav \
+  SWSCALE_CFLAGS="-I \$(top_srcdir)/gst-libs/ext/libav \
                   -Wno-deprecated-declarations"
 
   dnl libgstswscale.la: libs to statically link to
index a0e79d0..f9340d2 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include <gst/gst.h>
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <avcodec.h>
-#include <avformat.h>
-#else
+
 #include <libavcodec/avcodec.h>
 #include <libavformat/avformat.h>
-#endif
 
 #include "gstffmpeg.h"
 #include "gstffmpegutils.h"
index 22ebc07..0ad05f3 100644 (file)
 #ifndef __GST_FFMPEG_H__
 #define __GST_FFMPEG_H__
 
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <avcodec.h>
-#include <avformat.h>
-#else
 #include <libavcodec/avcodec.h>
 #include <libavformat/avformat.h>
-#endif
 
 #include <gst/gst.h>
 
index b3b28a7..6c425bc 100644 (file)
 #include "config.h"
 #endif
 
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <avcodec.h>
-#else
 #include <libavcodec/avcodec.h>
-#endif
 
 #include <gst/gst.h>
 #include <gst/base/gstbasetransform.h>
index 0df3c2d..553b780 100644 (file)
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+
+#include <string.h>
+
 #include <gst/gst.h>
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <avcodec.h>
-#else
 #include <libavcodec/avcodec.h>
-#endif
-#include <string.h>
 
 #include "gstffmpeg.h"
 #include "gstffmpegcodecmap.h"
index 2039631..52e5bec 100644 (file)
 #ifndef __GST_FFMPEG_CODECMAP_H__
 #define __GST_FFMPEG_CODECMAP_H__
 
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <avcodec.h>
-#else
 #include <libavcodec/avcodec.h>
-#endif
 #include <gst/gst.h>
 #include <gst/audio/audio.h>
 #include <gst/video/video.h>
index c9c8281..813f39c 100644 (file)
 #include <assert.h>
 #include <string.h>
 
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <avcodec.h>
-#else
 #include <libavcodec/avcodec.h>
-#endif
 
 #include <gst/gst.h>
 
index 69e1724..04ae9ab 100644 (file)
 #  include "config.h"
 #endif
 
-#ifdef HAVE_LIBAV_UNINSTALLED
-#  include <avcodec.h>
-#else
-#  include <libavcodec/avcodec.h>
-#endif
+#include <libavcodec/avcodec.h>
 
 #include <gst/gst.h>
 #include <gst/video/video.h>
index 72735e2..caf38e0 100644 (file)
 #endif
 
 #include <string.h>
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <avformat.h>
-#ifdef HAVE_AVI_H
-#include <avi.h>
-#endif
-#else
+
 #include <libavformat/avformat.h>
-#ifdef HAVE_AVI_H
-#include <ffmpeg/avi.h>
-#endif
-#endif
+/* #include <ffmpeg/avi.h> */
 #include <gst/gst.h>
 
 #include "gstffmpeg.h"
index ee32c99..8052b44 100644 (file)
 #include <glib/gstdio.h>
 #include <errno.h>
 
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <avcodec.h>
-#else
 #include <libavcodec/avcodec.h>
-#endif
 
 #include <gst/gst.h>
 
index 41e6e3f..a8186b7 100644 (file)
 #endif
 
 #include <string.h>
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <avformat.h>
-#else
-#include <libavformat/avformat.h>
-#endif
 
+#include <libavformat/avformat.h>
 #include <gst/gst.h>
 #include <gst/base/gstcollectpads.h>
 
index fc2aa97..0ec6672 100644 (file)
 #endif
 #include <string.h>
 #include <errno.h>
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <avformat.h>
-#else
+
 #include <libavformat/avformat.h>
-#endif
 
 #include <gst/gst.h>
 
index 385a379..2c13c57 100644 (file)
 #include "config.h"
 #endif
 
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <avcodec.h>
-#else
-#include <ffmpeg/avcodec.h>
-#endif
+#include <libavcodec/avcodec.h>
 
 #include <gst/gst.h>
 #include <gst/base/gstbasetransform.h>
index b517ca3..0efa730 100644 (file)
 #include "config.h"
 #endif
 
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <mathematics.h>
-#include <avcodec.h>
-#else
 #include <libavcodec/avcodec.h>
-#endif
+#include <libavutil/mathematics.h>
 
 #include <gst/gst.h>
 
index 32fde39..e57fa81 100644 (file)
 #include <assert.h>
 #include <string.h>
 
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <avcodec.h>
-#else
 #include <libavcodec/avcodec.h>
-#endif
 
 #include <gst/gst.h>
 #include <gst/video/video.h>
index 4204e08..145b195 100644 (file)
 #include <glib/gstdio.h>
 #include <errno.h>
 
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <avcodec.h>
-#else
 #include <libavcodec/avcodec.h>
-#endif
 
 #include <gst/gst.h>
 #include <gst/video/gstvideometa.h>
index 8f9bb91..1898f2c 100644 (file)
 #include <orc/orc.h>
 #endif
 
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <avcodec.h>
-#include <postprocess.h>
-#else
 #include <libavcodec/avcodec.h>
 #include <libpostproc/postprocess.h>
-#endif
 
 
 typedef struct _PostProcDetails PostProcDetails;
index 31849ba..ce980a8 100644 (file)
 #include "config.h"
 #endif
 
-#ifdef HAVE_LIBAV_UNINSTALLED
-#include <swscale.h>
-#else
 #include <libswscale/swscale.h>
-#endif
 
 #include <gst/gst.h>
 #include <gst/base/gstbasetransform.h>