From 15384e61e2903914087f41be28e2d8da28403ff3 Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 2 Apr 2020 12:33:58 +0800 Subject: [PATCH] Remove duplicated build for srtp2 --- trunk/auto/depends.sh | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/trunk/auto/depends.sh b/trunk/auto/depends.sh index 84b3d152f..11b5d9ea2 100755 --- a/trunk/auto/depends.sh +++ b/trunk/auto/depends.sh @@ -384,27 +384,6 @@ if [ $SRS_EXPORT_LIBRTMP_PROJECT = NO ]; then if [ ! -f ${SRS_OBJS}/st/libst.a ]; then echo "Build state-threads static lib failed."; exit -1; fi fi -##################################################################################### -# srtp -##################################################################################### -if [ $SRS_EXPORT_LIBRTMP_PROJECT = NO ]; then - # Patched ST from https://github.com/ossrs/state-threads/tree/srs - if [[ -f ${SRS_OBJS}/srtp2/lib/libsrtp2.a ]]; then - echo "The srtp2 is ok."; - else - echo "Building srtp2."; - ( - rm -rf ${SRS_OBJS}/srtp2 && cd ${SRS_OBJS} && - rm -rf libsrtp-2.0.0 && unzip -q ../3rdparty/libsrtp-2.0.0.zip && cd libsrtp-2.0.0 && - ./configure --prefix=`pwd`/_release && make ${SRS_JOBS} && make install && - cd .. && rm -f srtp2 && ln -sf libsrtp-2.0.0/_release srtp2 - ) - fi - # check status - ret=$?; if [[ $ret -ne 0 ]]; then echo "Build srtp2 failed, ret=$ret"; exit $ret; fi - if [ ! -f ${SRS_OBJS}/srtp2/lib/libsrtp2.a ]; then echo "Build srtp2 static lib failed."; exit -1; fi -fi - ##################################################################################### # nginx for HLS, nginx-1.5.0 #####################################################################################