mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix bug of build script
This commit is contained in:
parent
23a1b29935
commit
90dee0924d
6 changed files with 96 additions and 4 deletions
|
@ -134,9 +134,12 @@ done
|
|||
# apply the default value when user donot specified.
|
||||
#####################################################################################
|
||||
# if http-xxxx specified, open the SRS_HTTP_PARSER
|
||||
if [ $SRS_HTTP_CALLBACK = YES ]; then SRS_HTTP_PARSER=YES; fi
|
||||
if [ $SRS_HTTP_SERVER = YES ]; then SRS_HTTP_PARSER=YES; fi
|
||||
if [ $SRS_HTTP_API = YES ]; then SRS_HTTP_PARSER=YES; fi
|
||||
__compile_http_parser=NO
|
||||
if [ $SRS_HTTP_CALLBACK = YES ]; then SRS_HTTP_PARSER=YES;__compile_http_parser=YES; fi
|
||||
if [ $SRS_HTTP_SERVER = YES ]; then SRS_HTTP_PARSER=YES;__compile_http_parser=YES; fi
|
||||
if [ $SRS_HTTP_API = YES ]; then SRS_HTTP_PARSER=YES;__compile_http_parser=YES; fi
|
||||
# if no http specified, disable http parser
|
||||
if [ $__compile_http_parser = NO ]; then SRS_HTTP_PARSER=NO; fi
|
||||
|
||||
# if transcode specified, try ffmpeg if possible.
|
||||
if [ $SRS_TRANSCODE = YES ]; then if [ $SRS_FFMPEG_TOOL = RESERVED ]; then SRS_FFMPEG_TOOL=YES; fi fi
|
||||
|
@ -169,6 +172,7 @@ if [ $SRS_ARM_UBUNTU12 = YES ]; then
|
|||
if [ $SRS_PI = RESERVED ]; then SRS_PI=NO; fi
|
||||
# for arm, always set to static link.
|
||||
SRS_STATIC=YES
|
||||
# defaults for x86/x64
|
||||
else
|
||||
if [ $SRS_HLS = RESERVED ]; then SRS_HLS=YES; fi
|
||||
if [ $SRS_DVR = RESERVED ]; then SRS_DVR=YES; fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue