mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
1b5d81bd77
And this way respect https://github.com/cgwalters/build-api
84 lines
1.7 KiB
Bash
Executable file
84 lines
1.7 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
# TODO be marter about per component flags if needed.
|
|
|
|
HELP="Helper configure script to build gst-devtools
|
|
|
|
You might also want to go to specific module directory and
|
|
build from there.
|
|
|
|
Options:
|
|
--------
|
|
|
|
-v, --validate: Build GstValidate
|
|
-c, --codecanalyzer: Build codecanalyzer
|
|
-m, --mediainfo: Build mediainfo
|
|
"
|
|
FLAGS=''
|
|
for i in "$@"
|
|
do
|
|
case $i in
|
|
-v|--validate)
|
|
VALIDATE=validate
|
|
shift
|
|
;;
|
|
-c|--codecanalyzer)
|
|
CODECANALYZER=codecanalyzer
|
|
shift
|
|
;;
|
|
-m|--mediainfo)
|
|
MEDIAINFO=mediainfo
|
|
shift
|
|
;;
|
|
-h|--help)
|
|
echo "$HELP"
|
|
exit
|
|
;;
|
|
|
|
*) # unknown option
|
|
FLAGS="$FLAGS $i"
|
|
;;
|
|
esac
|
|
done
|
|
|
|
|
|
if [ -z "$VALIDATE" ] && [ -z "$CODECANALYZER" ] && [ -z $MEDIAINFO ]
|
|
then
|
|
echo "No compoonent specified, building everything"
|
|
VALIDATE=validate
|
|
CODECANALYZER=codecanalyzer
|
|
MEDIAINFO=mediainfo
|
|
fi
|
|
|
|
BUILDDIR="$( cd "$( dirname "$(readlink -f ${BASH_SOURCE[0]})" )" && pwd )"
|
|
|
|
cd $BUILDDIR
|
|
echo "all:" > Makefile
|
|
for i in $VALIDATE $CODECANALYZER $MEDIAINFO
|
|
do
|
|
echo "Configuring $i with flags '$FLAGS'"
|
|
echo " cd $BUILDDIR/$i/ && make; cd $BUILDDIR" >> Makefile
|
|
cd "$BUILDDIR/$i/" && ./autogen.sh $FLAGS
|
|
cd $BUILDDIR
|
|
done
|
|
|
|
echo "" >> Makefile
|
|
echo "install:" >> Makefile
|
|
for i in $VALIDATE $CODECANALYZER $MEDIAINFO
|
|
do
|
|
echo " cd $BUILDDIR/$i/ && make install; cd $BUILDDIR" >> Makefile
|
|
done
|
|
|
|
echo "" >> Makefile
|
|
echo "clean:" >> Makefile
|
|
for i in $VALIDATE $CODECANALYZER $MEDIAINFO
|
|
do
|
|
echo " cd $BUILDDIR/$i/ && make clean; cd $BUILDDIR" >> Makefile
|
|
done
|
|
|
|
echo "" >> Makefile
|
|
echo "distclean:" >> Makefile
|
|
for i in $VALIDATE $CODECANALYZER $MEDIAINFO
|
|
do
|
|
echo " cd $BUILDDIR/$i/ && make distclean; cd $BUILDDIR" >> Makefile
|
|
done
|