if[$SRS_FFMPEG= RESERVED ]; then SRS_FFMPEG=NO; fi
if[$SRS_HTTP_CALLBACK= RESERVED ]; then SRS_HTTP_CALLBACK=NO; fi
if[$SRS_LIBRTMP= RESERVED ]; then SRS_LIBRTMP=NO; fi
if[$SRS_BWTC= RESERVED ]; then SRS_BWTC=NO; fi
if[$SRS_RESEARCH= RESERVED ]; then SRS_RESEARCH=NO; fi
if[$SRS_UTEST= RESERVED ]; then SRS_UTEST=NO; fi
if[$SRS_GPERF= RESERVED ]; then SRS_GPERF=NO; fi
if[$SRS_GPERF_MC= RESERVED ]; then SRS_GPERF_MC=NO; fi
if[$SRS_GPERF_MP= RESERVED ]; then SRS_GPERF_MP=NO; fi
if[$SRS_GPERF_CP= RESERVED ]; then SRS_GPERF_CP=NO; fi
if[$SRS_GPROF= RESERVED ]; then SRS_GPROF=NO; fi
if[$SRS_ARM_UBUNTU12= RESERVED ]; then SRS_ARM_UBUNTU12=NO; fi
else
if[$SRS_HLS= RESERVED ]; then SRS_HLS=YES; fi
if[$SRS_SSL= RESERVED ]; then SRS_SSL=YES; fi
if[$SRS_FFMPEG= RESERVED ]; then SRS_FFMPEG=YES; fi
if[$SRS_HTTP_CALLBACK= RESERVED ]; then SRS_HTTP_CALLBACK=YES; fi
if[$SRS_LIBRTMP= RESERVED ]; then SRS_LIBRTMP=YES; fi
if[$SRS_BWTC= RESERVED ]; then SRS_BWTC=NO; fi
if[$SRS_RESEARCH= RESERVED ]; then SRS_RESEARCH=NO; fi
if[$SRS_UTEST= RESERVED ]; then SRS_UTEST=YES; fi
if[$SRS_GPERF= RESERVED ]; then SRS_GPERF=NO; fi
if[$SRS_GPERF_MC= RESERVED ]; then SRS_GPERF_MC=NO; fi
if[$SRS_GPERF_MP= RESERVED ]; then SRS_GPERF_MP=NO; fi
if[$SRS_GPERF_CP= RESERVED ]; then SRS_GPERF_CP=NO; fi
if[$SRS_GPROF= RESERVED ]; then SRS_GPROF=NO; fi
if[$SRS_ARM_UBUNTU12= RESERVED ]; then SRS_ARM_UBUNTU12=NO; fi
fi
# parse the jobs for make
if[["" -eq SRS_JOBS ]]; then
export SRS_JOBS="--jobs"
...
...
@@ -132,6 +156,7 @@ if [ $help = yes ]; then
--with-gmp build memory profile for srs with gperf tools.
--with-gcp build cpu profile for srs with gperf tools.
--with-gprof build srs with gprof(GNU profile tool).
--with-arm-ubuntu12 build srs on ubuntu12 for armhf(v7cpu).
--without-ssl disable rtmp complex handshake.
--without-hls disable hls, rtmp streaming only.
...
...
@@ -146,6 +171,7 @@ if [ $help = yes ]; then
--without-gmp do not build memory profile for srs with gperf tools.
--without-gcp do not build cpu profile for srs with gperf tools.
--without-gprof do not build srs with gprof(GNU profile tool).
--without-arm-ubuntu12 do not build srs on ubuntu12 for armhf(v7cpu).
--jobs[=N] Allow N jobs at once; infinite jobs with no arg.
used for make in the configure, for example, to make ffmpeg.
...
...
@@ -181,6 +207,21 @@ if [ $__gperf_slow = YES ]; then if [ $SRS_GPROF = YES ]; then
echo"gmc/gmp/gcp not compatible with gprof, see: ./configure --help"; __check_ok=NO;
fi fi
# check arm, if arm enabled, only allow st/ssl/librtmp,
# user should disable all other features
if[$SRS_ARM_UBUNTU12= YES ]; then
if[$SRS_FFMPEG= YES ]; then echo"ffmpeg for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_HTTP_CALLBACK= YES ]; then echo"http-callback for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_BWTC= YES ]; then echo"bwtc for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_RESEARCH= YES ]; then echo"research for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_UTEST= YES ]; then echo"utest for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPERF= YES ]; then echo"gperf for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPERF_MC= YES ]; then echo"gmc for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPERF_MP= YES ]; then echo"gmp for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPERF_CP= YES ]; then echo"gcp for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPROF= YES ]; then echo"gprof for arm is not available, see: ./configure --help"; __check_ok=NO; fi
fi
# check variable neccessary
if[$SRS_HLS= RESERVED ]; then echo"you must specifies the hls, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_SSL= RESERVED ]; then echo"you must specifies the ssl, see: ./configure --help"; __check_ok=NO; fi
...
...
@@ -195,6 +236,7 @@ if [ $SRS_GPERF_MC = RESERVED ]; then echo "you must specifies the gperf-mc, see
if[$SRS_GPERF_MP= RESERVED ]; then echo"you must specifies the gperf-mp, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPERF_CP= RESERVED ]; then echo"you must specifies the gperf-cp, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPROF= RESERVED ]; then echo"you must specifies the gprof, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_ARM_UBUNTU12= RESERVED ]; then echo"you must specifies the arm-ubuntu12, see: ./configure --help"; __check_ok=NO; fi
if[$__check_ok= NO ]; then
exit 1;
fi
...
...
@@ -214,5 +256,6 @@ if [ $SRS_GPERF_MC = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-gmc"; el
if[$SRS_GPERF_MP= YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-gmp"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-gmp"; fi
if[$SRS_GPERF_CP= YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-gcp"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-gcp"; fi
if[$SRS_GPROF= YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-gprof"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-gprof"; fi
if[$SRS_ARM_UBUNTU12= YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-arm-ubuntu12"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-arm-ubuntu12"; fi