use gst-common submodule

This is 'the' big change in gstreamer-vaapi autoconf. Now it uses the official
GStreamer common submodule.

The documentation generation has been disable temporarily since it needs a
major rework, which will be done in the following commit.
Signed-off-by: default avatarVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
parent 8defb243
EMPTY FILE
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} ACLOCAL_AMFLAGS = -I m4 -I common/m4 ${ACLOCAL_FLAGS}
AUTOMAKE_OPTIONS = foreign SUBDIRS = gst-libs gst tests common
SUBDIRS = gst-libs gst tests docs DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
# Extra clean files so that maintainer-clean removes *everything* # Extra clean files so that maintainer-clean removes *everything*
MAINTAINERCLEANFILES = \ MAINTAINERCLEANFILES = \
$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \ $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \ $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \ $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
$(srcdir)/gtk-doc.make $(srcdir)/m4/gtk-doc.m4 \ $(srcdir)/autoregen.sh $(srcdir)/INSTALL \
$(NULL) $(NULL)
-include $(top_srcdir)/git.mk -include $(top_srcdir)/git.mk
#!/bin/sh #!/bin/sh
#
# gstreamer-vaapi autogen.sh
#
# Run this to generate all the initial makefiles, etc.
#
# This file has been generated from common/autogen.sh.in via common/update-autogen
PROJECT="gstreamer-vaapi"
test -n "$srcdir" || srcdir="`dirname \"$0\"`" test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=. test -n "$srcdir" || srcdir=.
if ! test -f "$srcdir/configure.ac"; then olddir=`pwd`
echo "Failed to find the top-level $PROJECT directory"
exit 1
fi
olddir="`pwd`"
cd "$srcdir" cd "$srcdir"
mkdir -p m4 package=gstreamer-vaapi
srcfile=gstreamer-vaapi.doap
GIT=`which git` # Make sure we have common
if test -z "$GIT"; then if test ! -f common/gst-autogen.sh;
echo "*** No git found ***" then
exit 1 echo "+ Setting up common submodule"
else git submodule init
submodule_init="no" fi
for ext_module in codecparsers; do git submodule update
if test ! -f ext/${ext_module}/autogen.sh; then
submodule_init="yes" # source helper functions
fi if test ! -f common/gst-autogen.sh;
done then
if test "$submodule_init" = "yes"; then echo There is something wrong with your source tree.
$GIT submodule init echo You are missing common/gst-autogen.sh
exit 1
fi
. common/gst-autogen.sh
# install pre-commit hook for doing clean commits
if test ! \( -x .git/hooks/pre-commit -a -L .git/hooks/pre-commit \);
then
rm -f .git/hooks/pre-commit
if ! ln -s ../../common/hooks/pre-commit.hook .git/hooks/pre-commit 2> /dev/null
then
echo "Failed to create commit hook symlink, copying instead ..."
cp common/hooks/pre-commit.hook .git/hooks/pre-commit
fi fi
$GIT submodule update
fi fi
GTKDOCIZE=`which gtkdocize` # GNU gettext automake support doesn't get along with git.
if test -z "$GTKDOCIZE"; then # https://bugzilla.gnome.org/show_bug.cgi?id=661128
echo "*** No gtk-doc support ***" if test -d po ; then
echo "EXTRA_DIST =" > gtk-doc.make touch -t 200001010000 po/gstreamer-vaapi-1.0.pot
else
gtkdocize || exit $?
fi fi
AUTORECONF=`which autoreconf` CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-gtk-doc'
if test -z "$AUTORECONF"; then
echo "*** No autoreconf found ***" if test "x$package" = "xgstreamer"; then
CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --enable-docbook --enable-failing-tests --enable-poisoning"
elif test "x$package" = "xgst-plugins-bad"; then
CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-player-tests"
fi
autogen_options $@
printf "+ check for build tools"
if test -z "$NOCHECK"; then
echo
printf " checking for autoreconf ... "
echo
which "autoreconf" 2>/dev/null || {
echo "not found! Please install the autoconf package."
exit 1
}
printf " checking for pkg-config ... "
echo
which "pkg-config" 2>/dev/null || {
echo "not found! Please install pkg-config."
exit 1 exit 1
}
else else
autoreconf -v --install || exit $? echo ": skipped version checks"
fi fi
cd "$olddir" # if no arguments specified then this will be printed
if test -z "$*" && test -z "$NOCONFIGURE"; then
echo "+ checking for autogen.sh options"
echo " This autogen script will automatically run ./configure as:"
echo " ./configure $CONFIGURE_DEF_OPT"
echo " To pass any additional options, please specify them on the $0"
echo " command line."
fi
toplevel_check $srcfile
if test -z "$NO_CONFIGURE"; then # autopoint
$srcdir/configure "$@" && echo "Now type 'make' to compile $PROJECT." if test -d po && grep ^AM_GNU_GETTEXT_VERSION configure.ac >/dev/null ; then
tool_run "autopoint" "--force"
fi fi
# aclocal
if test -f acinclude.m4; then rm acinclude.m4; fi
autoreconf --force --install || exit 1
test -n "$NOCONFIGURE" && {
echo "+ skipping configure stage for package $package, as requested."
echo "+ autogen.sh done."
exit 0
}
cd "$olddir"
echo "+ running configure ... "
test ! -z "$CONFIGURE_DEF_OPT" && echo " default flags: $CONFIGURE_DEF_OPT"
test ! -z "$CONFIGURE_EXT_OPT" && echo " external flags: $CONFIGURE_EXT_OPT"
echo
echo "$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT
"$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT || {
echo " configure failed"
exit 1
}
echo "Now type 'make' to compile $package."
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment