mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix script build bug
This commit is contained in:
parent
6ca9b774c1
commit
d28458d5fa
3 changed files with 42 additions and 7 deletions
|
@ -242,7 +242,7 @@ if [ ! -f ${SRS_OBJS}/st/libst.so ]; then echo "build st-1.9 failed."; exit -1;
|
|||
#####################################################################################
|
||||
# http-parser-2.1
|
||||
#####################################################################################
|
||||
if [ $SRS_HTTP_CALLBACK = YES ]; then
|
||||
if [ $SRS_HTTP_PARSER = YES ]; then
|
||||
if [[ -f ${SRS_OBJS}/hp/http_parser.h && -f ${SRS_OBJS}/hp/libhttp_parser.a ]]; then
|
||||
echo "http-parser-2.1 is ok.";
|
||||
else
|
||||
|
@ -262,6 +262,18 @@ if [ $SRS_HTTP_CALLBACK = YES ]; then
|
|||
if [[ ! -f ${SRS_OBJS}/hp/libhttp_parser.a ]]; then echo "build http-parser-2.1 failed"; exit -1; fi
|
||||
fi
|
||||
|
||||
if [ $SRS_HTTP_PARSER = YES ]; then
|
||||
echo "#define SRS_HTTP_PARSER" >> $SRS_AUTO_HEADERS_H
|
||||
else
|
||||
echo "#undef SRS_HTTP_PARSER" >> $SRS_AUTO_HEADERS_H
|
||||
fi
|
||||
|
||||
if [ $SRS_HTTP_SERVER = YES ]; then
|
||||
echo "#define SRS_HTTP_SERVER" >> $SRS_AUTO_HEADERS_H
|
||||
else
|
||||
echo "#undef SRS_HTTP_SERVER" >> $SRS_AUTO_HEADERS_H
|
||||
fi
|
||||
|
||||
#####################################################################################
|
||||
# nginx for HLS, nginx-1.5.0
|
||||
#####################################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue