forked from shenhzou654321/EasyHLS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildit
executable file
·40 lines (37 loc) · 1.23 KB
/
Buildit
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
#!/bin/sh
usage()
{
echo "**************build stream from rtsp demo******************"
echo "1. build 32bit program ./Buildit rtsp i386 [target in i386]"
echo "2. build 64bit program ./Buildit rtsp x64 [target in x64]"
echo "3. clean up ./Buildit rtsp clean"
echo "-----------------------------------------------------------"
echo "**************build stream from sdk demo******************"
echo "4. build 32bit program ./Buildit sdk i386 [target in i386]"
echo "5. clean up ./Buildit sdk clean"
echo "-----------------------------------------------------------"
}
build()
{
if [ "$1" = "clean" ] ; then
make -f nbproject/Makefile-arm.mk QMAKE= SUBPROJECTS= .clean-conf
make -f nbproject/Makefile-i386.mk QMAKE= SUBPROJECTS= .clean-conf
make -f nbproject/Makefile-x64.mk QMAKE= SUBPROJECTS= .clean-conf
make -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf
elif [ "$1" = "x64" ] ; then
make -f nbproject/Makefile-x64.mk QMAKE= SUBPROJECTS= .build-conf
elif [ "$1" = "i386" ] ; then
make -f nbproject/Makefile-i386.mk QMAKE= SUBPROJECTS= .build-conf
else
usage;
fi
}
if [ "$1" = "rtsp" ] ; then
cd EasyHLS_RTSP
build $2;
elif [ "$1" = "sdk" ] ; then
cd EasyHLS_SDK
build $2;
else
usage;
fi