openh264/testbin/AutoBuild_Linux.sh

70 lines
1.5 KiB
Bash
Raw Normal View History

2013-12-09 13:56:50 +01:00
#!/bin/bash
2013-12-29 08:54:10 +01:00
CurDir="${PWD}"
2013-12-09 13:56:50 +01:00
2013-12-29 08:54:10 +01:00
if [ "$(basename ${CurDir})" != "testbin" ]; then
usage="This file must located in ../testbin/ based on our code structure"
echo ${usage}
exit 1
fi
EncoderMakeDir="../codec/build/linux/enc"
DecoderMakeDir="../codec/build/linux/dec"
VPMakeDir="../processing/build/linux"
2013-12-09 13:56:50 +01:00
2013-12-29 08:54:10 +01:00
CodecBinDir="../codec/build/linux/bin"
2013-12-09 13:56:50 +01:00
VPBinDir="../bin/linux"
MakefileLogFile="${CurDir}/CodecVPBuild.log"
#************************************************
#call Encoder make file
echo "encoder building....."
cd ${EncoderMakeDir}
make clean >${MakefileLogFile}
make >>${MakefileLogFile}
cd ${CurDir}
cd ${CodecBinDir}
2013-12-29 08:54:10 +01:00
if [[ ! -e welsenc.a ]] || [[ ! -e welsenc.so ]] || [[ ! -e welsenc.exe ]]; then
echo "encoder build failed!"
2013-12-09 13:56:50 +01:00
else
2013-12-29 08:54:10 +01:00
echo "encoder build success!"
2013-12-09 13:56:50 +01:00
fi
#************************************************
#call Decoder make file
echo "decoder building....."
cd ${CurDir}
cd ${DecoderMakeDir}
make clean >>${MakefileLogFile}
make >>${MakefileLogFile}
cd ${CurDir}
cd ${CodecBinDir}
2013-12-29 08:54:10 +01:00
if [[ ! -e welsdec.a ]] || [[ ! -e welsdec.so ]] || [[ ! -e welsdec.exe ]]; then
echo "decoder build failed!"
2013-12-09 13:56:50 +01:00
else
2013-12-29 08:54:10 +01:00
echo "decoder build success!"
2013-12-09 13:56:50 +01:00
fi
#************************************************
#call VP make file
echo "VP building....."
cd ${CurDir}
cd ${VPMakeDir}
make clean >>${MakefileLogFile}
make >>${MakefileLogFile}
cd ${CurDir}
cd ${VPBinDir}
2013-12-29 08:54:10 +01:00
if [ ! -e libwelsvp.so ]; then
echo "VP build failed!"
2013-12-09 13:56:50 +01:00
else
2013-12-29 08:54:10 +01:00
echo "VP build success!"
2013-12-09 13:56:50 +01:00
fi
cd ${CurDir}
2013-12-29 08:54:10 +01:00
echo "executables available in ../bin/linux"
echo "log file stored in ./CodecVPBuild.log"