Add codecparsers submodule.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 11 Oct 2012 08:03:14 +0000 (10:03 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 11 Oct 2012 12:19:15 +0000 (14:19 +0200)
.gitmodules [new file with mode: 0644]
Makefile.am
autogen.sh
configure.ac
ext/Makefile.am [new file with mode: 0644]
ext/codecparsers [new submodule]

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..e40ceed
--- /dev/null
@@ -0,0 +1,3 @@
+[submodule "ext/codecparsers"]
+       path = ext/codecparsers
+       url = git://gitorious.org/vaapi/gstreamer-codecparsers.git
index a204514..08a5e2a 100644 (file)
@@ -2,7 +2,7 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 
 AUTOMAKE_OPTIONS = foreign
 
-SUBDIRS = debian.upstream gst-libs gst pkgconfig tests docs
+SUBDIRS = debian.upstream gst-libs gst pkgconfig tests docs ext
 
 # Extra clean files so that maintainer-clean removes *everything*
 MAINTAINERCLEANFILES = \
index 3d7ffd8..4314352 100755 (executable)
@@ -15,6 +15,17 @@ cd "$srcdir"
 
 mkdir -p m4
 
+GIT=`which git`
+if test -z "$GIT"; then
+    echo "*** No git found ***"
+    exit 1
+else
+    if test ! -f ext/codecparsers/autogen.sh; then
+        $GIT submodule init
+    fi
+    $GIT submodule update
+fi
+
 GTKDOCIZE=`which gtkdocize`
 if test -z "$GTKDOCIZE"; then
     echo "*** No gtk-doc support ***"
index 98ad413..eb97a7a 100644 (file)
@@ -530,6 +530,7 @@ debian.upstream/libgstvaapi-x11.install.in
     docs/reference/libs/libs-docs.xml
     docs/reference/plugins/Makefile
     docs/reference/plugins/plugins-docs.xml
+    ext/Makefile
     gst-libs/Makefile
     gst-libs/gst/Makefile
     gst-libs/gst/codecparsers/Makefile
diff --git a/ext/Makefile.am b/ext/Makefile.am
new file mode 100644 (file)
index 0000000..bad55d5
--- /dev/null
@@ -0,0 +1,29 @@
+EXTRA_DIST =
+
+codecparsers_srcdir = \
+       $(top_srcdir)/ext/codecparsers/gst-libs/gst/codecparsers
+
+codecparsers_source_c = \
+       gsth264parser.c         \
+       gstjpegparser.c         \
+       gstmpeg4parser.c        \
+       gstmpegvideoparser.c    \
+       gstvc1parser.c          \
+       parserutils.c           \
+       $(NULL)
+
+EXTRA_DIST += $(codecparsers_source_c:%.c=$(codecparsers_srcdir)/%.c)
+
+codecparsers_source_h = \
+       gsth264parser.h         \
+       gstjpegparser.h         \
+       gstmpeg4parser.h        \
+       gstmpegvideoparser.h    \
+       gstvc1parser.h          \
+       parserutils.h           \
+       $(NULL)
+
+EXTRA_DIST += $(codecparsers_source_h:%.h=$(codecparsers_srcdir)/%.h)
+
+# Extra clean files so that maintainer-clean removes *everything*
+MAINTAINERCLEANFILES = Makefile.in
diff --git a/ext/codecparsers b/ext/codecparsers
new file mode 160000 (submodule)
index 0000000..70dfc67
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 70dfc67bc6953363a4273bbd0381f09433cea36f