mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
srs-librtmp: add make ssl/nossl support for sample
This commit is contained in:
parent
b7a62ba131
commit
f24f27deb9
8 changed files with 282 additions and 20 deletions
9
trunk/configure
vendored
Executable file → Normal file
9
trunk/configure
vendored
Executable file → Normal file
|
@ -39,6 +39,13 @@ echo "" >> $SRS_AUTO_HEADERS_H
|
|||
#####################################################################################
|
||||
|
||||
#####################################################################################
|
||||
# srs-librtmp sample entry
|
||||
SrsLibrtmpSampleEntry="nossl"
|
||||
if [ $SRS_SSL = YES ]; then
|
||||
SrsLibrtmpSampleEntry="ssl"
|
||||
fi
|
||||
|
||||
# makefile
|
||||
echo "generate Makefile"
|
||||
SRS_MAKEFILE="Makefile"
|
||||
cat << END > ${SRS_MAKEFILE}
|
||||
|
@ -86,7 +93,7 @@ librtmp: _prepare_dir
|
|||
|
||||
librtmp-sample:
|
||||
@echo "build the srs-librtmp sample"
|
||||
(cd research/librtmp; make)
|
||||
(cd research/librtmp; make ${SrsLibrtmpSampleEntry})
|
||||
@echo "srs-librtmp sample build success"
|
||||
|
||||
# the ./configure will generate it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue