1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

implements export srslibrtmp. for bug #191

This commit is contained in:
winlin 2014-11-08 15:31:21 +08:00
parent 5554922820
commit d4d3d46317
7 changed files with 243 additions and 152 deletions

View file

@ -58,6 +58,8 @@ SRS_LOG_TRACE=RESERVED
# experts
# donot compile ssl, use system ssl(-lssl) if required.
SRS_USE_SYS_SSL=NO
# export the srs-librtmp to specified path, NO to disable it.
SRS_EXPORT_LIBRTMP=NO
#
################################################################
# presets
@ -182,6 +184,7 @@ Conflicts:
Experts:
--use-sys-ssl donot compile ssl, use system ssl(-lssl) if required.
--export-librtmp=<path> export srs-librtmp to specified path.
Workflow:
1. apply "Presets". if not specified, use default preset.
@ -263,6 +266,7 @@ function parse_user_option() {
--full) SRS_ENABLE_ALL=YES ;;
--use-sys-ssl) SRS_USE_SYS_SSL=YES ;;
--export-librtmp) SRS_EXPORT_LIBRTMP=${value} ;;
*)
echo "$0: error: invalid option \"$option\""
@ -696,6 +700,31 @@ function apply_user_detail_options() {
else
export SRS_JOBS="--jobs=${SRS_JOBS}"
fi
# disable almost all features for export srs-librtmp.
if [ $SRS_EXPORT_LIBRTMP != NO ]; then
SRS_HLS=NO
SRS_DVR=NO
SRS_NGINX=NO
SRS_SSL=NO
SRS_FFMPEG_TOOL=NO
SRS_TRANSCODE=NO
SRS_INGEST=NO
SRS_STAT=NO
SRS_HTTP_PARSER=NO
SRS_HTTP_CALLBACK=NO
SRS_HTTP_SERVER=NO
SRS_HTTP_API=NO
SRS_LIBRTMP=YES
SRS_RESEARCH=YES
SRS_UTEST=NO
SRS_GPERF=NO
SRS_GPERF_MC=NO
SRS_GPERF_MP=NO
SRS_GPERF_CP=NO
SRS_GPROF=NO
SRS_STATIC=NO
fi
}
apply_user_detail_options