forked from GStreamer/gst-devtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure
executable file
·84 lines (71 loc) · 1.7 KB
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/sh
# TODO be smarter 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 component 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